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