Use Photoswipe with AngularJS -
i having problem photoswipe , angular. i'm doing images server using $http.post
, pushing objects array of images, i'm initializing photoswipe.
in success have this:
$scope.gallery.push(images server); myphotoswipe.initialize()
but error: code.photoswipe.createinstance: no images passed
, initialize getting fired before items in view.
i can see images in view of course not attach photoswipe, idea of how can initialize after images in view?
ps: have tried this: how can directive fire after view loaded? didn't work me
thanks!
Comments
Post a Comment