I want to show my images using viewrJS so I have test that with JSfiddle. But that way i couldnt use in angular
here is the JSfiddle
in JSfiddle I have set the element accessing part like this
const viewer = new Viewer(document.getElementById('grid'),{});
it is not inside the function too. why that like this was when I put inside the function image is viewing not first time it is coming second time.
I wanted to use this solution in angular. have any way to do that?