ngx-image-cropper

zoom in & zoom out angular not working for ngx-image-cropper

霸气de小男生 提交于 2021-02-11 12:49:54
问题 I am trying for Zoomin & Zoom out from ngx-image-cropper I am not getting any error but when i click the button zoomOut or ZoomIn it's not working. please let me know what I am doing wrong here. Team please help me here my TS code zoomOut() { this.scale -= .1; this.transform = { ...this.transform, scale: this.scale }; } zoomIn() { this.scale += .1; this.transform = { ...this.transform, scale: this.scale }; } My HTML Code <button class="btn zoomIn" (click)="zoomIn()" tooltip="Zoom In" data