import { Routes, RouterModule } from '@angular/router'; import { AppComponent } from './app.component'; import { PackListComponent } from './pack.list.component'; const routes: Routes = [ {path: '', redirectTo: '/packs', pathMatch: 'full'}, {path: 'packs', component: PackListComponent }, ]; /* {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 });