I use below code to try to get instance of dropzone, but failed.
<div #dropzoneRef class="dropzone" [dropzone]="dropzoneConfig" (error)="onUploadError($event)" ></div>@ViewChild('dropzoneRef', {read: ElementRef}) dropzoneRef: ElementRef;const dz = this.dropzoneRef.nativeElement.dropzone();
The error is 'UploadModelComponent.html:102 ERROR TypeError: this.dropzoneRef.nativeElement.dropzone is not a function'.
I use below code to try to get instance of dropzone, but failed.
<div #dropzoneRef class="dropzone" [dropzone]="dropzoneConfig" (error)="onUploadError($event)" ></div>
@ViewChild('dropzoneRef', {read: ElementRef}) dropzoneRef: ElementRef;
const dz = this.dropzoneRef.nativeElement.dropzone();
The error is 'UploadModelComponent.html:102 ERROR TypeError: this.dropzoneRef.nativeElement.dropzone is not a function'.
Did I missed anything?