I read this tutorial https://scotch.io/tutorials/interactive-angular-2-charts-with-zingchart to add zingchart to my angular 2 project. But I get the error cannot find the zingchart name when creating the zingchart component
``
export class ZingChart implements AfterViewInit, OnDestroy {
chart: Chart
constructor (private zone: NgZone) { }
ngAfterViewInit () {
this.zone.runOutsideAngular(() => zingchart.render(this.chart));
}
ngOnDestroy () {
zingchart.exec(this.chart.id, 'destroy');
}
}
``
source
share