ng-click-toggle

Angular directive that toggles classes on click
0 people use it
Author: 2837910?v=3 ah450

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"

comments powered by Disqus
This page was last updated 12 months ago.