hce
hce

Reputation: 1167

Images of an angular app are not shown in browser

I am currently working on a sample angular app. I want to display a list of products in my browser with images.

enter image description here

this is how products is defined (only first element displayed):

enter image description here

This is how its displayed in the browser:

enter image description here

I use Chrome, but its also the same with IE or Edge. I can see the images, when i browse directly to the url. I cant see them, when I use them in the app (http://localhost:4200).

To look for the code on GitHub

I am working on a Win10 64-bit with Chrome version 71.0.3578.98.

Upvotes: 1

Views: 252

Answers (1)

defq0n
defq0n

Reputation: 79

You have a typo in your HTML. You are referencing product.imageURL when you should be referencing product.imageUrl.

Upvotes: 2

Related Questions