Skip to content

Instantly share code, notes, and snippets.

@fannheyward
Created November 20, 2013 09:47
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save fannheyward/7560525 to your computer and use it in GitHub Desktop.
Save fannheyward/7560525 to your computer and use it in GitHub Desktop.
prettyphoto directive for Angular.
.directive('prettyp', function(){
return function(scope, element, attrs) {
$("[rel^='prettyPhoto']").prettyPhoto({deeplinking: false, social_tools: false});
}
})
<a prettyp class="image" ng-href="{{b.img}}" rel="prettyPhoto[main]" target="_blank" title="{{b.title}}">
<img ng-src="{{b.img}}" height="100px"/>
</a>
@maneja81
Copy link

Thank you for sharing.. Saved my day ;)

@iRealNirmal
Copy link

looks like save mine time too. Thanks.

@kerembalcan
Copy link

still saving.. Thanks a lot

@bhavesh-vyas
Copy link

Thankyou.

@TW-Parth
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment