I am having a problem with Photoswipe and Angular. Basically what I’m doing is get the images from my server doing
$http.post and then pushing that objects into my array of images, then I’m initializing Photoswipe.
I get an error:
Code.PhotoSwipe.createInstance: No images to passed., so the initialize is getting fired before all my items are in the view.
I am getting all the images in my view but, any idea of how can I initialize it only after all my images are in the view?