js/example-app/app/app-routing.module.ts

13 lines
404 B
TypeScript
Raw Normal View History

2018-03-17 15:03:13 +00:00
import { NgModule } from '@angular/core';
import { Routes, RouterModule, PreloadAllModules } from '@angular/router';
const routes: Routes = [
{ path: 'auth', loadChildren: './pages/auth/auth-page.module#AuthPageModule' },
];
@NgModule({
imports: [RouterModule.forRoot(routes, {useHash: true, preloadingStrategy: PreloadAllModules})],
exports: [RouterModule],
})
export class AppRoutingModule { }