Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 1 | import { RouterModule, Route } from '@angular/router'; |
| 2 | import { ModuleWithProviders } from '@angular/core'; |
| 3 | // import { Page1Component } from "./pages/page1/page1.component"; |
| 4 | // import { Page2Component } from "./pages/page2/page2.component"; |
| 5 | import { PageNotFoundComponent } from "./pages/page404/page404.component"; |
| 6 | |
| 7 | const routes: Route[] = [ |
| 8 | // { path: 'page1', component: Page1Component }, |
| 9 | // { path: 'page2', component: Page2Component }, |
| 10 | // { path: '', pathMatch: 'full', redirectTo: 'page1'}, |
| 11 | { path: '**', component: PageNotFoundComponent } |
| 12 | /*{ loadChildren: './pages/dashboard/dashboard.module#DashboardModule', path: 'dashboard' }*/ |
| 13 | ]; |
| 14 | |
| 15 | export const routing: ModuleWithProviders = RouterModule.forRoot( |
| 16 | routes, |
| 17 | { |
| 18 | useHash: true |
| 19 | } |
| 20 | ); |