1
|
import { ModuleWithProviders } from '@angular/core';
|
2
|
import { Routes, RouterModule } from '@angular/router';
|
3
|
import {ClaimsAdminComponent} from './claimPages/claims/claimsAdmin.component';
|
4
|
import {HomeComponent} from './home/home.component';
|
5
|
const appRoutes: Routes = [
|
6
|
{ path: '',
|
7
|
pathMatch: 'full',
|
8
|
redirectTo: 'home' },
|
9
|
{ path: 'claims', component: ClaimsAdminComponent },
|
10
|
{ path: 'home', component: HomeComponent }
|
11
|
|
12
|
];
|
13
|
|
14
|
|
15
|
// ,
|
16
|
// {
|
17
|
// path: 'heroes',
|
18
|
// component: HeroListComponent,
|
19
|
// data: {
|
20
|
// title: 'Heroes List'
|
21
|
// }
|
22
|
// },
|
23
|
// { path: 'hero/:id', component: HeroDetailComponent },
|
24
|
// { path: '**', component: PageNotFoundComponent }
|
25
|
// export const appRoutingProviders: any[] = [
|
26
|
//
|
27
|
// ];
|
28
|
|
29
|
export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);
|