Created
November 20, 2013 09:47
-
-
Save fannheyward/7560525 to your computer and use it in GitHub Desktop.
prettyphoto directive for Angular.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.directive('prettyp', function(){ | |
return function(scope, element, attrs) { | |
$("[rel^='prettyPhoto']").prettyPhoto({deeplinking: false, social_tools: false}); | |
} | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a prettyp class="image" ng-href="{{b.img}}" rel="prettyPhoto[main]" target="_blank" title="{{b.title}}"> | |
<img ng-src="{{b.img}}" height="100px"/> | |
</a> |
Thankyou.
Thank you
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
still saving.. Thanks a lot