Created
August 8, 2015 13:48
-
-
Save mbuttler/d3bb5105648872247a4c to your computer and use it in GitHub Desktop.
AngularJS - Feedster PlusOne.js
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('plusOne', function() { | |
return { | |
restrict: 'E', | |
scope: { | |
}, | |
templateUrl: 'js/directives/plusOne.html', | |
link: function(like() { | |
function(scope, element, attrs) { | |
scope.like = function() { | |
element.toggleClass('btn-like'); | |
} | |
} | |
} | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment