Good.
The truth is that I'm a little embarrassed to open this question but I don't understand what the hell is going on or if I'm asking the impossible.
I want to make an image gallery inside my app. For this I have stored the images in
src/resources/img/
And to access them from the html of a component I do the following:
<ion-img src="../../resources/img/imagen1.jpg"></ion-img>
If I do shift + click on the path, it opens the image correctly. However when doing ionic serve in the console, it doesn't show me the images. It gives me a 404:
Failed to load resource: the server responded with a status of 404 (Not Found)
Any idea what's going on or what I'm doing wrong? I can't find anything on the internet no matter how hard I search on the subject.
You can try the following in your project's directory tree, at the same height as
app
you most likely have a directory namedassets
create or copy into it the content you want to use, in this case itsimagen1.png
something like this:.
either
Using one or the other will depend from where it is being called and the type of configuration that the view has, if the root has been modified, etc.