ngx-admin/src/app/pages/maps/maps-routing.module.ts

36 lines
841 B
TypeScript
Raw Normal View History

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';
2017-07-26 15:40:20 +03:00
import { BubbleMapComponent } from './bubble/bubble-map.component';
const routes: Routes = [{
path: '',
component: MapsComponent,
children: [{
path: 'gmaps',
component: GmapsComponent,
}, {
path: 'leaflet',
component: LeafletComponent,
2017-07-26 15:40:20 +03:00
}, {
path: 'bubble',
component: BubbleMapComponent,
}],
}];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class MapsRoutingModule { }
export const routedComponents = [
MapsComponent,
GmapsComponent,
LeafletComponent,
2017-07-26 15:40:20 +03:00
BubbleMapComponent,
];