Vanilla 2
Discussions
Activity
Sign In
prettyPhoto support
prettyPhoto not working with angularJS
vyasdevanshu16
September 2016
When I give a hard-coded path to the
written on an angular app then it works properly. But, if I try to render markup dynamically, like for instance, I am iterating a list using ng-repeat and it doesn't initialize the prettyPhoto function in the javascript.
Any Thoughts??
vyasdevanshu16
September 2016
This one can be fixed by creating a directive of your own which actually works exactly like the jQuery script given with prettyPhoto.
Add the directive in your controller and it will work like a charm!!
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
4,649
General
1,277
Showoff your stuff!
13
prettyComments support
18
prettySociable support
40
WP-prettyphoto support
290
prettyCheckboxes support
19
prettyGallery support
118
prettyMobile support
12
prettyPhoto support
2,833
prettyLoader support
16
INK - Support forum
13
Powered by Vanilla