| .. | .. |
|---|
| 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 { LoginFormComponent } from './login.form.component'; |
|---|
| 6 | 8 | |
|---|
| 7 | 9 | const routes: Routes = [ |
|---|
| 8 | 10 | // {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 | + } |
|---|
| 11 | 21 | ]; |
|---|
| 12 | 22 | /* {path: 'product', component: DashboardProductComponent, children: [ |
|---|
| 13 | 23 | {path: '', component: ProductOverviewComponent}, |
|---|