mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
21 lines
501 B
TypeScript
21 lines
501 B
TypeScript
|
|
import { ExtraOptions, RouterModule, Routes } from '@angular/router';
|
||
|
|
import { NgModule } from '@angular/core';
|
||
|
|
|
||
|
|
const routes: Routes = [
|
||
|
|
// {path: 'admin'}
|
||
|
|
{path: 'pages', loadChildren: 'app/pages/pages.module#PagesModule'},
|
||
|
|
{path: '', redirectTo: 'pages', pathMatch: 'full'},
|
||
|
|
{path: '**', redirectTo: 'pages'}
|
||
|
|
];
|
||
|
|
|
||
|
|
const config: ExtraOptions = {
|
||
|
|
useHash: true
|
||
|
|
};
|
||
|
|
|
||
|
|
@NgModule({
|
||
|
|
imports: [RouterModule.forRoot(routes, config)],
|
||
|
|
exports: [RouterModule]
|
||
|
|
})
|
||
|
|
export class AppRoutingModule {
|
||
|
|
}
|