Ng-dygraphs是一个使用Dygraphs库并准备用于Angular使用的库。 Dygraphs具有一个称为isZoomed的属性。使用NG-dygraphs时如何访问此属性?
尝试一下:
@ViewChild('ngDygraphs') ngDygraphs : ElementRef;
<ng-dygraphs
#ngDygraphs
[data]="data"
[options]="options">
</ng-dygraphs>
并为ngDygraphs设置console.log(this.ngDygraphs)
并获取其属性。将会有isZoomed
属性