MCPcopy Create free account
hub / github.com/betsol/angular-input-modified / updateCssClasses

Function updateCssClasses

src/directive/form.js:147–150  ·  view source on GitHub ↗

* Decorates element with proper CSS classes.

()

Source from the content-addressed store, hash-verified

145 * Decorates element with proper CSS classes.
146 */
147 function updateCssClasses () {
148 $animate.addClass($element, (formCtrl.modified ? config.modifiedClassName : config.notModifiedClassName));
149 $animate.removeClass($element, (formCtrl.modified ? config.notModifiedClassName : config.modifiedClassName));
150 }
151
152 /**
153 * Called when one of child forms is removed from DOM.

Callers 1

updateFormStateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected