ngx-image-uploader icon indicating copy to clipboard operation
ngx-image-uploader copied to clipboard

Pre set the preview image

Open leooi77 opened this issue 7 years ago • 3 comments

How can i pre set the image?

leooi77 avatar Jul 26 '18 08:07 leooi77

If you are using it in a form you can use it as a regular form component and pass image url to formControlName property: <ngx-image-uploader formControlName="url"></ngx-image-uploader>

Otherwise you can call from your component imageUploader.loadAndResize(someUrl)

ogix avatar Jul 26 '18 09:07 ogix

Sorry, i got this error, when I try to call this.imageUploader.loadAndResize('assets/img.jpg') 'TypeError: Cannot read property 'authToken' of undefined' screen shot 2018-07-26 at 6 26 48 pm

leooi77 avatar Jul 26 '18 10:07 leooi77

I will check later today. It seems like it's a bug..

ogix avatar Jul 26 '18 11:07 ogix