maps components structure created

This commit is contained in:
nixa 2016-05-02 16:55:58 +03:00
parent bff8af282e
commit 57b694c81b
9 changed files with 78 additions and 15 deletions

View file

@ -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');
}
}

View file

@ -0,0 +1 @@
export * from './googleMaps.component';

View file

@ -0,0 +1 @@
export * from './maps.component';

View 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() {
}
}

View file

@ -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 {

View file

@ -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 {