ngx-viewer
ngx-viewer copied to clipboard
*ngFor and ngxViewer is not working well together
I am using angular 12 and I have the following code. the issue is when I click on each image, nothing happens, no popup. However, if I remove *ngFor and manually put the image url in img tag, it works fine.
<div ngxViewer>
<ng-container *ngFor="let display of image_displays">
<img src="{{display.url}}" alt="img"/>
</ng-container>
</div>