mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-20 17:30:14 +01:00
30 lines
689 B
TypeScript
30 lines
689 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { MapsComponent } from './maps.component';
|
|
import { GmapsComponent } from './gmaps/gmaps.component';
|
|
import { LeafletComponent } from './leaflet/leaflet.component';
|
|
|
|
const routes: Routes = [{
|
|
path: '',
|
|
component: MapsComponent,
|
|
children: [{
|
|
path: 'gmaps',
|
|
component: GmapsComponent,
|
|
}, {
|
|
path: 'leaflet',
|
|
component: LeafletComponent,
|
|
}],
|
|
}];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class MapsRoutingModule { }
|
|
|
|
export const routedComponents = [
|
|
MapsComponent,
|
|
GmapsComponent,
|
|
LeafletComponent,
|
|
];
|