Skip to content

Instantly share code, notes, and snippets.

@israeljrs
Created February 18, 2019 16:16
Show Gist options
  • Save israeljrs/0a5103d03b4c6c908a448d5d0306e0bd to your computer and use it in GitHub Desktop.
Save israeljrs/0a5103d03b4c6c908a448d5d0306e0bd to your computer and use it in GitHub Desktop.
Modulo de exemplo para home do projeto
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomePageComponent } from './home-page/home-page.component';
const routes: Routes = [
{ path: '', component: HomePageComponent },
{ path: '**', redirectTo: '' }
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment