Sharing Top Content from the Angular-sphere.

dynamic-class

  • AngularJS directive such that an element’s has a class added or removed based on its value
  • As the value specified changes a class is chosen and applied to the DOM element given the options on a first-fit approach.
  • The options should be an array of Objects each with three keys: min the minimum value to use for this class, max the value strictly greater than and the class to use.
  • Given some element in the DOM, you attach an options and a value that you want to use as input to the directive, dynamic-class .
  • < input type = " number " ng-model = " value " />

AngularJS directive such that an element’s has a class added or removed based on its value.

@nodenpm: dynamic-class (1.0.0): AngularJS directive such that an element’s has a class added or removed ba…

AngularJS directive such that an element’s has a class added or removed based on its value.

AngularJS directive such that an element’s has a class added or removed based on its value

to use. As the value specified changes a class is chosen and applied to the DOM element given the options on a first-fit approach.

MIT

Combine open-source packages with your private code and publish to a private registry behind the firewall. npm ♥ enterprise developers

dynamic-class

Comments are closed, but trackbacks and pingbacks are open.