togg
v0.6.1
Published
Angular UI directive for toggling classes and beyond
Maintainers
Readme
togg
Angular UI directive to end all UI directives. Toggle classes, attributes, properties. Live your toggle dreams.
Interactive Examples
Attributes
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 statetrueorfalsefrom event targettogg-triggeradditional events to trigger when event occurstogg-method: jQuery method to invoke when event occurs
Setup
npm
npm install togg --saveDeclare dependency on your app
angular.module('yourApp', ['togg'])