rsanchez
2017-03-15 259d989404ffbb541b26d7fb687581e2b57111ae
securis/src/main/webapp/src/app/app.routes.ts
....@@ -1,17 +1,28 @@
11 import { Routes, RouterModule } from '@angular/router';
22
33 import { HomeComponent } from './home.component';
4
+import { MenuComponent } from './menu.component';
5
+import { NoMenuComponent } from './nomenu.component';
46 import { PackListComponent } from './pack.list.component';
57 import { LicenseListComponent } from './license.list.component';
68 import { LoginFormComponent } from './login.form.component';
79
810 const routes: Routes = [
911 // {path: '', redirectTo: '/packs', pathMatch: 'full'},
10
- {path: 'packs', children: [
11
- {path: '', component: PackListComponent },
12
- {path: ':id/licenses', component: LicenseListComponent },
13
- ]},
14
- {path: 'login', component: LoginFormComponent }
12
+ {path: 'menu', component: MenuComponent,
13
+ children: [
14
+ {path: 'packs', children: [
15
+ {path: '', component: PackListComponent },
16
+ {path: ':id/licenses', component: LicenseListComponent },
17
+ ]}
18
+ ]
19
+ },
20
+ {path: 'nomenu', component: NoMenuComponent,
21
+ children: [
22
+ {path: 'login', component: LoginFormComponent }
23
+ ]
24
+ }
25
+
1526 ];
1627 /* {path: 'product', component: DashboardProductComponent, children: [
1728 {path: '', component: ProductOverviewComponent},