Inserting image into ionic2 dynamically


I am trying to add png files to my applications. However, keep getting 404 error content not found. By this time, I have tried many ways but none successful;

If I use the following, I only get “?” mark instead of an image and 404 error.

<img [src]="'assets/img/measure-img/' +'question.image'"/>

They have to be inserted dynamically, therefore, in html and not scss file.

Anyone having the same issue?


See working example in my repo

and image in assets folder


Many thanks! Made it work.


Any more examples somewhere? Having a similar issue :). Thanks


@kierandes Updated links below

and images in assets folder