的角应用的图像浏览器中未示出

问题描述 投票:1回答:1

我目前工作的一个样本角应用。我想在我的图片浏览器中显示的产品列表。

enter image description here

这是怎样的产品被定义(仅第一个元素显示):

enter image description here

这就是它在浏览器中显示:

enter image description here

我使用的是Chrome,但它也与IE或边缘相同。我能看到图像,当我直接浏览到的URL。我不能看到他们,当我在应用程序(http://localhost:4200)使用它们。

To look for the code on GitHub

我工作的一个Win10 64位与Chrome版本71.0.3578.98。

angular image browser localhost
1个回答
2
投票

你在你的HTML一个错字。您正在引用product.imageURL时,你应该引用product.imageUrl

© www.soinside.com 2019 - 2024. All rights reserved.