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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -