Angular UI directive to end all UI directives. Toggle classes, attributes, properties. Live your toggle dreams.
togg-scope
: applicable scopetogg-event
: event(s) to listen totogg-class
: classes to toggle when event occurstogg-attr
: attribute to toggle when event occurstogg-prop
: property to toggle when event occurstogg-state
: force statetrue
orfalse
from event targettogg-trigger
additional events to trigger when event occurstogg-method
: jQuery method to invoke when event occurs
npm install togg --save
angular.module('yourApp', ['togg'])