I add a img into app/img/myImage.png but its not working. If you create a folder img into build/ the app destroys it
I'm using the version 2.0.0-beta.25
You are not supposed to place image inside build directory and use it. It is for building purpose. Every time you compile and build executable, it will refreshed according to the changes that you make in the app directory. Build directory is for internal purpose. You are supposed to use the resources directory. Put your images under resources directory and reference in your code!
@RAMDdFLEET You're wrong, because after the ionic serve it refers only in the folder www / then can not really use the resources folder
But i already found, in Ionic conference app they use a img folder into www
I put my images in www/img folder.
I too start now @dylanvdmerwe 馃槉
This is still an issue.
Either a www/img folder should be generated to set a trivial standard or a grunt task should be added to copy any images from the app directory.
can we access application icon (that is auto generated in resources/android) and display it is img tag or we have to copy it in www/img directory?
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Most helpful comment
Either a www/img folder should be generated to set a trivial standard or a grunt task should be added to copy any images from the app directory.