Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const routes: Routes = [
- {
- path: '',
- children: [
- {
- path: 'red',
- component: RedComponent
- },
- {
- path: 'blue',
- component: BlueComponent
- },
- ]
- },
- {
- path: '**',
- redirectTo: '/'
- }
- ];
- @NgModule({
- imports: [RouterModule.forRoot(routes)],
- exports: [RouterModule]
- })
- export class AppRoutingModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement