mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-31 22:58:49 +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
23 lines
794 B
TypeScript
23 lines
794 B
TypeScript
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { Maps } from './maps.component';
|
|
import { BubbleMaps } from './components/bubbleMaps/bubbleMaps.component';
|
|
import { GoogleMaps } from './components/googleMaps/googleMaps.component';
|
|
import { LeafletMaps } from './components/leafletMaps/leafletMaps.component';
|
|
import { LineMaps } from './components/lineMaps/lineMaps.component';
|
|
|
|
// noinspection TypeScriptValidateTypes
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
component: Maps,
|
|
children: [
|
|
{ path: 'bubblemaps', component: BubbleMaps },
|
|
{ path: 'googlemaps', component: GoogleMaps },
|
|
{ path: 'leafletmaps', component: LeafletMaps },
|
|
{ path: 'linemaps', component: LineMaps }
|
|
]
|
|
}
|
|
];
|
|
|
|
export const routing = RouterModule.forChild(routes);
|