mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-17 23:15:28 +01:00
31 lines
814 B
TypeScript
31 lines
814 B
TypeScript
import {Component, ViewEncapsulation} from '@angular/core';
|
|
import {BaCard} from '../../../../theme/components';
|
|
|
|
import {ChartistJsService} from './chartistJs.service';
|
|
import {BaChartistChart} from '../../../../theme/components';
|
|
|
|
@Component({
|
|
selector: 'chartist-js',
|
|
encapsulation: ViewEncapsulation.None,
|
|
pipes: [],
|
|
providers: [ChartistJsService],
|
|
directives: [BaCard, BaChartistChart],
|
|
styles: [require('chartist/dist/chartist.css'), require('./chartistJs.scss')],
|
|
template: require('./chartistJs.html'),
|
|
})
|
|
|
|
export class ChartistJs {
|
|
|
|
data:any;
|
|
|
|
constructor(private _chartistJsService:ChartistJsService) {
|
|
}
|
|
|
|
ngOnInit() {
|
|
this.data = this._chartistJsService.getAll();
|
|
}
|
|
|
|
getResponsive(padding, offset) {
|
|
return this._chartistJsService.getResponsive(padding, offset);
|
|
}
|
|
}
|