我一直在关注本教程https://scotch.io/tutorials/interactive-angular-2-charts-with-zingchart,将zingchart添加到我的angular 2项目中。但我得到的错误是在创建zingchart组件时找不到名称zingchart
``
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');
}
}
``