30 lines
802 B
TypeScript
30 lines
802 B
TypeScript
import { ModuleWithProviders } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
import {ClaimsAdminComponent} from './claimPages/claims/claimsAdmin.component';
|
|
import {HomeComponent} from './home/home.component';
|
|
const appRoutes: Routes = [
|
|
{ path: '',
|
|
pathMatch: 'full',
|
|
redirectTo: 'home' },
|
|
{ path: 'claims', component: ClaimsAdminComponent },
|
|
{ path: 'home', component: HomeComponent }
|
|
|
|
];
|
|
|
|
|
|
// ,
|
|
// {
|
|
// path: 'heroes',
|
|
// component: HeroListComponent,
|
|
// data: {
|
|
// title: 'Heroes List'
|
|
// }
|
|
// },
|
|
// { path: 'hero/:id', component: HeroDetailComponent },
|
|
// { path: '**', component: PageNotFoundComponent }
|
|
// export const appRoutingProviders: any[] = [
|
|
//
|
|
// ];
|
|
|
|
export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);
|