Angular 2找不到名字zingchart

时间:2017-01-14 17:34:01

标签: angular typescript zingchart

我一直在关注本教程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');
          }
   }

``

0 个答案:

没有答案