16 lines
527 B
TypeScript
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 { }
|