feat(maps): add the gmaps and the leaflet component pages

This commit is contained in:
Alexander Zhukov 2017-05-06 20:02:26 +03:00
parent e5f3f211f9
commit 6d8d55c8cc
18 changed files with 180 additions and 27 deletions

View file

@ -0,0 +1,30 @@
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,
];