Image not showing on device


#1

Hello,

this is my code

<img id="airlinesLogo" src= "{{ 'assets/images/airlines/' +
                itinerary.inbound.flights[0].marketing_airline +'.png' }}"/>

It works well on the browser. but no image on the device.
What do i do wrong? can someone help?

(i already searched the forum for answers)

Thx


#2

Try the following

<img id="airlinesLogo" src= "assets/images/airlines/{{itinerary.inbound.flights[0].marketing_airline}}.png"/>

#3

works in browser, but still not working on device

i must add, this is in a *ngFor

<div *ngFor="let itinerary of result.itineraries" >

#4

I had to get all the png out of the airlines folder and put them direct in the images folder for it to work.
Would like to know why.

I have another folder in “images” and these images are being displayed on device.