I'm facing an issue while trying to load an image using Angular. The source of the image should come from an attribute of an object within an *ngFor loop, like this:
<div *ngFor="let object of objects">
<img src="{{object.imagePath}}">
</div>
Strangely, the image is not found when loaded this way. However, if I hardcode the path directly into the img tag as shown below, it works perfectly:
<img src="../../content/images/myObjectImage.png"/>
Any thoughts on how to resolve this issue?