Open mNalon opened 7 years ago
In "Customizing Image cropper" section should we use
@ViewChild(ImageCropperComponent) cropper:ImageCropperComponent;
Instead of:
@ViewChild('cropper', undefined) cropper:ImageCropperComponent;
?
You're right in that it's probably better in most cases, but it assumes you only have one cropper in your template. if your template has more than one cropper you have to name them as in the demo.
In "Customizing Image cropper" section should we use
@ViewChild(ImageCropperComponent) cropper:ImageCropperComponent;
Instead of:
@ViewChild('cropper', undefined) cropper:ImageCropperComponent;
?