Angular 2 cannot find zingchart name

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');
          }
   }

``

+4
source share

Source: https://habr.com/ru/post/1666792/


All Articles