Closed cintolas closed 5 years ago
Sorry for replying late. I have been quite busy last few days. For now, it is not possible but will definitely add functionality of default image source.
Any update on this enchancement?
There's a newer version coming soon with alot of great features.
do you have an estimated release date on the new release?
Probably a duplicate #14
Check answer there. A workaround works for current version.
Refer to https://github.com/harryy2510/ngx-img/issues/14. Hence closing this issue
Bug Report or Feature Request (mark with an
x
)OS and Version?
Mac High Sierra
Versions
Angular CLI: 1.7.3 Node: 6.12.3 OS: linux x64 Angular: error ... animations, cli, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router
Desired functionality
When creating the component I would like to add a default imgSrc that would be available when the element is created.
We have an edit dialog box that allows you to upload an icon for use. ngx-img works great for uploading. However, when editing an existing object, our icon itself is already available. The user can delete the icon or upload a different one
I tried setting imgSrc, but it did not do anything. Is there a way I can accomplish this?
Mention any other details that might be useful