overflow-webapp/src/app/app-routing.module.ts
crusader 7e49148732 ing
2018-01-29 15:28:28 +09:00

16 lines
527 B
TypeScript

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{ path: '', loadChildren: './pages/pages.module#PagesModule' },
{ path: 'auth', loadChildren: './pages/auth/auth.module#AuthModule' },
{ path: 'errors', loadChildren: './pages/errors/errors.module#ErrorsModule' },
{ path: '**', redirectTo: 'errors/404' }
];
@NgModule({
imports: [RouterModule.forRoot(routes, {useHash: true})],
exports: [RouterModule],
})
export class AppRoutingModule { }