rsanchez
2017-03-16 ced422b8511c42cfc4174ffc818a0dba4d79e294
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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: 'public',  component: NoMenuComponent, children: [
    {path: 'login', component: LoginFormComponent }
  ]
  },
  {path: '', component: MenuComponent,
    children: [
        {path: 'packs', children: [
          {path: '', component: PackListComponent },
          {path: ':id/licenses', component: LicenseListComponent },
        ]}
    ]
  },
];
/*    {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 });