mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-27 20:58:48 +01:00
refactoring of chartist js component
This commit is contained in:
parent
d32414f626
commit
1293bae38f
4 changed files with 223 additions and 232 deletions
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue