import { Routes, RouterModule } from '@angular/router'; import { HomeComponent } from './home.component'; import { MenuComponent } from './menu.component'; import { NoMenuComponent } from './nomenu.component'; import { PackListComponent } from './pack.list.component'; import { LicenseListComponent } from './license.list.component'; import { LoginFormComponent } from './login.form.component'; const routes: Routes = [ // {path: '', redirectTo: '/packs', pathMatch: 'full'}, {path: 'menu', component: MenuComponent, children: [ {path: 'packs', children: [ {path: '', component: PackListComponent }, {path: ':id/licenses', component: LicenseListComponent }, ]} ] }, {path: 'nomenu', component: NoMenuComponent, children: [ {path: 'login', component: LoginFormComponent } ] } ]; /* {path: 'product', component: DashboardProductComponent, children: [ {path: '', component: ProductOverviewComponent}, {path: 'stats', component: ProductStatsComponent}, {path: 'features', children: [ {path: '', component: ProductFeaturesComponent}, {path: 'add', component: FeaturesFormComponent}, {path: ':id/delete', component: FeaturesFormComponent}, {path: ':id/edit', component: FeaturesFormComponent}, ]}, ]}, */ export const appRoutingProviders: any[] = [ ]; export const appRoutes: any = RouterModule.forRoot(routes, { useHash: true });