Created
March 19, 2016 18:34
-
-
Save kukac7/92d7a95145c95c9a44dd to your computer and use it in GitHub Desktop.
isotope angular directive
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
app.directive('iso', function() { | |
return { | |
restrict: 'A', | |
link: function(scope, element, attrs) { | |
$(element).isotope(scope.$eval(attrs.iso)); | |
} | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment