| .. | .. |
|---|
| 1 | 1 | import { Routes, RouterModule } from '@angular/router'; |
|---|
| 2 | 2 | |
|---|
| 3 | 3 | import { HomeComponent } from './home.component'; |
|---|
| 4 | +import { MenuComponent } from './menu.component'; |
|---|
| 5 | +import { NoMenuComponent } from './nomenu.component'; |
|---|
| 4 | 6 | import { PackListComponent } from './pack.list.component'; |
|---|
| 5 | 7 | import { LicenseListComponent } from './license.list.component'; |
|---|
| 6 | 8 | import { LoginFormComponent } from './login.form.component'; |
|---|
| 7 | 9 | |
|---|
| 8 | 10 | const routes: Routes = [ |
|---|
| 9 | 11 | // {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 | + |
|---|
| 15 | 26 | ]; |
|---|
| 16 | 27 | /* {path: 'product', component: DashboardProductComponent, children: [ |
|---|
| 17 | 28 | {path: '', component: ProductOverviewComponent}, |
|---|