mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-13 13:08:51 +01:00
- NgaModule - module wrapper for all ng2-admin custom features - Ng Module per page - async components load - menu moved (again) to a separate file (as now each module has its own route file) - no need to import Ba* directives into the pages which have NgaModule in the import statement
19 lines
511 B
TypeScript
19 lines
511 B
TypeScript
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { Forms } from './forms.component';
|
|
import { Inputs } from './components/inputs/inputs.component';
|
|
import { Layouts } from './components/layouts/layouts.component';
|
|
|
|
// noinspection TypeScriptValidateTypes
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: Forms,
|
|
children: [
|
|
{ path: 'inputs', component: Inputs },
|
|
{ path: 'layouts', component: Layouts }
|
|
]
|
|
}
|
|
];
|
|
|
|
export const routing = RouterModule.forChild(routes);
|