Angular UI directive for toggling classes and beyond
HTML CSS JavaScript
Latest commit a4dd6b2 Jan 10, 2017 @ryanve 0.4.1
Permalink
Failed to load latest commit information.
.editorconfig togg your heart out Jan 9, 2017
.gitattributes togg your heart out Jan 9, 2017
.gitignore
LICENSE
README.md readme desc Jan 10, 2017
index.html title/desc Jan 10, 2017
package.json
style.css vertical-align Jan 10, 2017
test.js
togg.js rename main file Jan 10, 2017

README.md

togg

Angular UI directive to end all UI directives. Toggle classes, attributes, properties. Live your toggle dreams.

Interactive Examples

Attributes

  • togg-scope: applicable scope
  • togg-event: event(s) to listen to
  • togg-class: classes to toggle when event occurs
  • togg-attr: attribute to toggle when event occurs
  • togg-prop: property to toggle when event occurs
  • togg-trigger additional events to trigger when event occurs
  • togg-method: jQuery method to invoke when event occurs

Setup

npm

npm install togg --save

Declare dependency on your app

angular.module('yourApp', ['togg'])

Develop

npm test