| .. | .. |
|---|
| 2 | 2 | |
|---|
| 3 | 3 | import { HomeComponent } from './home.component'; |
|---|
| 4 | 4 | import { PackListComponent } from './pack.list.component'; |
|---|
| 5 | +import { LicenseListComponent } from './license.list.component'; |
|---|
| 5 | 6 | import { LoginFormComponent } from './login.form.component'; |
|---|
| 6 | 7 | |
|---|
| 7 | 8 | const routes: Routes = [ |
|---|
| 8 | 9 | // {path: '', redirectTo: '/packs', pathMatch: 'full'}, |
|---|
| 9 | | - {path: 'packs', component: PackListComponent }, |
|---|
| 10 | + {path: 'packs', children: [ |
|---|
| 11 | + {path: '', component: PackListComponent }, |
|---|
| 12 | + {path: ':id/licenses', component: LicenseListComponent }, |
|---|
| 13 | + ]}, |
|---|
| 10 | 14 | {path: 'login', component: LoginFormComponent } |
|---|
| 11 | 15 | ]; |
|---|
| 12 | 16 | /* {path: 'product', component: DashboardProductComponent, children: [ |
|---|