Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const appRoutes: Routes = [
- { // first layout (here is the first and for now the only one router-outlet
- path: '',
- children: [
- { path: '', component: SiteComponent, pathMatch: 'full' },
- { path: 'install', component: InstallationComponent, canActivate: [ InstallationAuth ] },
- { path: 'login', component: LoginComponent, canActivate: [ LoginAuth ] },
- { path: 'register', component: RegisterComponent },
- { path: 'reset', component: ResetComponent, canActivate: [ LoginAuth ] }
- ]
- },
- { //second layout (personnel should have it's own router-outlet
- path: 'personnel',
- children: [
- { path: '', component: PersonnelComponent, canActivate: [ PersonnelAuth ]},
- { path: 'users', component: UsersComponent, outlet: 'personnel' }
- ]
- }
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement