i399exng2/app/routes.ts

10 lines
332 B
TypeScript
Raw Normal View History

2017-04-29 11:26:20 +03:00
import { Routes } from '@angular/router';
import { ListComponent } from './list/list.cmp';
import { ViewComponent } from './view/view.cmp';
export const routes: Routes = [
{ path: 'list', component: ListComponent },
{ path: 'view/:id', component: ViewComponent },
{ path: '', redirectTo: 'list', pathMatch: 'full' }
];