| .. | .. |
|---|
| 4 | 4 | import { MenuComponent } from './menu.component'; |
|---|
| 5 | 5 | import { NoMenuComponent } from './nomenu.component'; |
|---|
| 6 | 6 | import { PackListComponent } from './pack.list.component'; |
|---|
| 7 | +import { LicenseListComponent } from './license.list.component'; |
|---|
| 7 | 8 | import { LoginFormComponent } from './login.form.component'; |
|---|
| 8 | 9 | |
|---|
| 9 | 10 | const routes: Routes = [ |
|---|
| 10 | 11 | // {path: '', redirectTo: '/packs', pathMatch: 'full'}, |
|---|
| 11 | 12 | {path: 'menu', component: MenuComponent, |
|---|
| 12 | 13 | children: [ |
|---|
| 13 | | - {path: 'packs', component: PackListComponent } |
|---|
| 14 | + {path: 'packs', children: [ |
|---|
| 15 | + {path: '', component: PackListComponent }, |
|---|
| 16 | + {path: ':id/licenses', component: LicenseListComponent }, |
|---|
| 17 | + ]} |
|---|
| 14 | 18 | ] |
|---|
| 15 | 19 | }, |
|---|
| 16 | 20 | {path: 'nomenu', component: NoMenuComponent, |
|---|
| .. | .. |
|---|
| 18 | 22 | {path: 'login', component: LoginFormComponent } |
|---|
| 19 | 23 | ] |
|---|
| 20 | 24 | } |
|---|
| 25 | + |
|---|
| 21 | 26 | ]; |
|---|
| 22 | 27 | /* {path: 'product', component: DashboardProductComponent, children: [ |
|---|
| 23 | 28 | {path: '', component: ProductOverviewComponent}, |
|---|