mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-24 08:54:06 +01:00
maps components structure created
This commit is contained in:
parent
bff8af282e
commit
57b694c81b
9 changed files with 78 additions and 15 deletions
|
|
@ -0,0 +1,19 @@
|
|||
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||
|
||||
@Component({
|
||||
selector: 'google-maps',
|
||||
pipes: [],
|
||||
providers: [],
|
||||
styles: [],
|
||||
template: 'googleMaps'
|
||||
})
|
||||
export class GoogleMaps {
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
console.log('googleMaps');
|
||||
}
|
||||
|
||||
}
|
||||
1
src/app/pages/maps/components/googleMaps/index.ts
Normal file
1
src/app/pages/maps/components/googleMaps/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from './googleMaps.component';
|
||||
1
src/app/pages/maps/index.ts
Normal file
1
src/app/pages/maps/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from './maps.component';
|
||||
29
src/app/pages/maps/maps.component.ts
Normal file
29
src/app/pages/maps/maps.component.ts
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||
import {RouteConfig} from 'angular2/router';
|
||||
|
||||
import {GoogleMaps} from './components/googleMaps';
|
||||
|
||||
@Component({
|
||||
selector: 'maps',
|
||||
pipes: [],
|
||||
providers: [],
|
||||
styles: [],
|
||||
template: `<router-outlet></router-outlet>`
|
||||
})
|
||||
@RouteConfig([
|
||||
{
|
||||
name: 'GoogleMaps',
|
||||
component: GoogleMaps,
|
||||
path: '/google-maps',
|
||||
useAsDefault: true
|
||||
},
|
||||
])
|
||||
export class Maps {
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,9 +1,10 @@
|
|||
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||
import {RouteConfig, Router} from 'angular2/router';
|
||||
|
||||
import {PageTop, ContentTop, Sidebar} from '../theme';
|
||||
import {Dashboard} from './dashboard';
|
||||
import {Ui} from './ui';
|
||||
import {PageTop, ContentTop, Sidebar} from '../theme';
|
||||
import {Maps} from './maps';
|
||||
|
||||
@Component({
|
||||
selector: 'pages',
|
||||
|
|
@ -32,6 +33,11 @@ import {PageTop, ContentTop, Sidebar} from '../theme';
|
|||
component: Ui,
|
||||
path: '/ui/...',
|
||||
},
|
||||
{
|
||||
name: 'Maps',
|
||||
component: Maps,
|
||||
path: '/maps/...',
|
||||
},
|
||||
])
|
||||
export class Pages {
|
||||
|
||||
|
|
|
|||
|
|
@ -15,15 +15,7 @@ import {Typography} from './components/typography';
|
|||
name: 'Typography',
|
||||
component: Typography,
|
||||
path: '/typography',
|
||||
useAsDefault: true,
|
||||
data: {
|
||||
title: 'Typography',
|
||||
selected: false,
|
||||
expanded: false,
|
||||
sidebarMeta: {
|
||||
order: 0,
|
||||
}
|
||||
}
|
||||
useAsDefault: true
|
||||
},
|
||||
])
|
||||
export class Ui {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue