ngx-admin/src/app/pages/maps/components/bubbleMaps/bubbleMaps.component.ts

27 lines
669 B
TypeScript
Raw Normal View History

2016-05-11 17:38:01 +03:00
import {Component, ViewEncapsulation} from '@angular/core';
import {BaCard} from '../../../../theme/components';
2016-05-16 13:05:17 +03:00
import {BaAmChart} from '../../../../theme/components';
2016-05-02 19:49:37 +03:00
import {BubbleMapsService} from "./bubbleMaps.service";
@Component({
selector: 'bubble-maps',
pipes: [],
providers: [BubbleMapsService],
encapsulation: ViewEncapsulation.None,
2016-05-16 13:05:17 +03:00
directives: [BaCard, BaAmChart],
styles: [require('./bubbleMaps.scss')],
2016-05-02 19:49:37 +03:00
template: require('./bubbleMaps.html'),
})
export class BubbleMaps {
2016-05-16 13:05:17 +03:00
chartData:Object;
2016-05-02 19:49:37 +03:00
constructor(private _bubbleMapsService:BubbleMapsService) {
}
2016-05-16 13:05:17 +03:00
ngOnInit() {
this.chartData = this._bubbleMapsService.getData();
2016-05-02 19:49:37 +03:00
}
}