mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-23 02:40:14 +01:00
feat(maps): add the gmaps and the leaflet component pages
This commit is contained in:
parent
e5f3f211f9
commit
6d8d55c8cc
18 changed files with 180 additions and 27 deletions
30
src/app/pages/maps/maps-routing.module.ts
Normal file
30
src/app/pages/maps/maps-routing.module.ts
Normal 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,
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue