2016-05-11 17:38:01 +03:00
|
|
|
import {Component, ViewEncapsulation} from '@angular/core';
|
2016-05-02 19:49:37 +03:00
|
|
|
|
2016-08-26 17:37:59 +03:00
|
|
|
import {BubbleMapsService} from './bubbleMaps.service';
|
2016-05-02 19:49:37 +03:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'bubble-maps',
|
|
|
|
|
pipes: [],
|
|
|
|
|
providers: [BubbleMapsService],
|
|
|
|
|
encapsulation: ViewEncapsulation.None,
|
2016-05-16 13:05:17 +03:00
|
|
|
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
|
|
|
}
|
|
|
|
|
}
|