* Decorates element with proper CSS classes.
()
| 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. |