Revision 51793
Added by Myrto Koukouli almost 6 years ago
adminPg.routing.ts | ||
---|---|---|
7 | 7 |
|
8 | 8 |
const adminRoutes: Routes = [ |
9 | 9 |
{ |
10 |
path: 'admin',
|
|
10 |
path: '', |
|
11 | 11 |
component: AdminPgComponent, |
12 |
canActivate: [AuthGuardService], |
|
13 | 12 |
children: [ |
14 | 13 |
{ |
15 | 14 |
path: '', |
... | ... | |
26 | 25 |
} |
27 | 26 |
] |
28 | 27 |
} |
29 |
] |
|
28 |
];
|
|
30 | 29 |
|
31 | 30 |
@NgModule ({ |
32 | 31 |
imports: [RouterModule.forChild(adminRoutes)], |
Also available in: Unified diff
added redirection to landing when route was not found