refactoring of chartist js component

This commit is contained in:
nixa 2016-05-13 10:39:59 +03:00
parent d32414f626
commit 1293bae38f
4 changed files with 223 additions and 232 deletions

View file

@ -1,12 +1,10 @@
import {Component, ViewEncapsulation, Input, Output, ElementRef, EventEmitter} from '@angular/core';
import './baChartistChart.loader.ts';
@Component({
selector: 'ba-chartist-chart',
encapsulation: ViewEncapsulation.None,
styles: [require('chartist/dist/chartist.css'), require('./baChartistChart.scss')],
template: require('./baChartistChart.html'),
encapsulation: ViewEncapsulation.None,
providers: [],
})
export class BaChartistChart {
@ -21,9 +19,6 @@ export class BaChartistChart {
constructor (private _elementRef:ElementRef) {
}
ngOnInit() {
}
ngAfterViewInit() {
let el = this._elementRef.nativeElement.querySelector('.ba-chartist-chart');