César Calvo
2017-03-15 199b9ae1c2818713bbb1a33831c46fb505e997d4
securis/src/main/webapp/src/app/app.routes.ts
....@@ -1,13 +1,23 @@
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 { LoginFormComponent } from './login.form.component';
68
79 const routes: Routes = [
810 // {path: '', redirectTo: '/packs', pathMatch: 'full'},
9
- {path: 'packs', component: PackListComponent },
10
- {path: 'login', component: LoginFormComponent }
11
+ {path: 'menu', component: MenuComponent,
12
+ children: [
13
+ {path: 'packs', component: PackListComponent }
14
+ ]
15
+ },
16
+ {path: 'nomenu', component: NoMenuComponent,
17
+ children: [
18
+ {path: 'login', component: LoginFormComponent }
19
+ ]
20
+ }
1121 ];
1222 /* {path: 'product', component: DashboardProductComponent, children: [
1323 {path: '', component: ProductOverviewComponent},