/ngToggle

ngToggle attribute tag.

Primary LanguageJavaScriptOtherNOASSERTION

ngToggle

Click to toggle button for angularJS.

Installation

bower install ngToggle

Usage:

Include ngToggle.js somewhere. Add 'ngToggle' to module dependencies.

This will cause any clicks to effectively execute the following code within the scope - varName = !varName.

Optionally: ng-toggle-default={bool} //by default - true