mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
chore: base layout
This commit is contained in:
parent
1fb884a633
commit
d82d691681
19 changed files with 195 additions and 44 deletions
20
src/app/app-routing.module.ts
Normal file
20
src/app/app-routing.module.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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 {
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue