Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <app-header></app-header>
- <router-outlet></router-outlet>
- <app-footer></app-footer>
- import { RouterModule, Routes } from '@angular/router';
- const appRoutes: Routes = [
- { path: 'crisis-center', component: CrisisListComponent },
- { path: 'hero/:id', component: HeroDetailComponent },
- {
- path: 'heroes',
- component: HeroListComponent,
- data: { title: 'Heroes List' }
- },
- { path: '',
- redirectTo: '/heroes',
- pathMatch: 'full'
- },
- { path: '**', component: PageNotFoundComponent }
- ];
- @NgModule({
- imports: [
- RouterModule.forRoot(
- appRoutes,
- { enableTracing: true } // <-- debugging purposes only
- )
- // other imports here
- ],
- ...
- })
- export class AppModule { }
Add Comment
Please, Sign In to add comment