Angular directive that toggles classes on click https://github.com/ah450/ng-click-toggle bower install --save ng-click-toggle
target attribute is passed as is to jquery, if no target is present the element the directive is present on is assumed to be the target.
The class to toggle can be multiple classes, the string is passed as is to jquery.toggleClass
click callback returns false if additional attribute data-prevent-default is present. i.e data-prevent-default="true"