Local images not showing using `img` tag

Hi Guys,

I’m learning IONIC 2.
I’ve created a sample app where I’m trying to show some images.
I just saved the .png file in my assets folder and give the path in so many ways as shown here:

I tried this many ways:
“img/1.png”
’…/assets/img/4.png’
"…/img/3.png"
“assets/img/4.png”
“src/assets/img/4.png”

any body can help me with this.
One more thing is, do I’ve to register the images folder or the images somewhere separately.

“…/…/assets/img/4.png”

It’s actually 2 directories up to get there. Not one. It’s out of your specific pages folder, then out of pages, then into assets.

1 Like

Yeah I just used this way and it worked “assests/img/4.png”. Only thing I didn’t do was to restart the serve again after adding the directory.

Yeah! Your solution it works in my project too! Thank you! :tada::tada::tada: