blob: 38bc92619ff5963f235389927277c171e96834d5 [file] [log] [blame]
Michael Landoed64b5e2017-06-09 03:19:04 +03001import { RouterModule, Route } from '@angular/router';
2import { ModuleWithProviders } from '@angular/core';
3// import { Page1Component } from "./pages/page1/page1.component";
4// import { Page2Component } from "./pages/page2/page2.component";
5import { PageNotFoundComponent } from "./pages/page404/page404.component";
6
7const 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
15export const routing: ModuleWithProviders = RouterModule.forRoot(
16 routes,
17 {
18 useHash: true
19 }
20);