matheusdavidson / angular-cropperjs

CropperJS integration for Angular +6
MIT License
109 stars 69 forks source link

AngularCropperjsComponent.cropper is undefined #10

Closed falconsapsan closed 6 years ago

falconsapsan commented 6 years ago

Why cropper is undefined ? i'm use

    "angular-cropperjs": "0.1.5",
    "@angular/core": "5.0.0",
@ViewChild('angularCropper') public angularCropper: AngularCropperjsComponent;

    console.log(this.angularCropper)
    console.log(this.angularCropper.cropper)

    this.angularCropper.cropper.getCroppedCanvas().toBlob((blob) => {
           console.log(blob);
    });

1515169548437

prashantguleria commented 6 years ago

@falconsapsan @matheusdavidson Hey, I'm getting the same problem. Did you find any solution for this? Kindly let me know.

Junich10 commented 5 years ago

@prashantguleria for my situation, following command did the work

npm install --save @types/cropperjs