我目前工作的一个样本角应用。我想在我的图片浏览器中显示的产品列表。
这是怎样的产品被定义(仅第一个元素显示):
这就是它在浏览器中显示:
我使用的是Chrome,但它也与IE或边缘相同。我能看到图像,当我直接浏览到的URL。我不能看到他们,当我在应用程序(http://localhost:4200)使用它们。
To look for the code on GitHub
我工作的一个Win10 64位与Chrome版本71.0.3578.98。
你在你的HTML一个错字。您正在引用product.imageURL
时,你应该引用product.imageUrl
。