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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -