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

Function updateModifiedState

src/directive/form.js:134–142  ·  view source on GitHub ↗

* Updates form modified state. * * Form is considered modified when it has at least one * modified element or child form.

()

Source from the content-addressed store, hash-verified

132 * modified element or child form.
133 */
134 function updateModifiedState () {
135
136 formCtrl.modifiedCount = formCtrl.modifiedModels.length;
137 formCtrl.modifiedChildFormsCount = formCtrl.modifiedChildForms.length;
138
139 formCtrl.modified =
140 (formCtrl.modifiedCount + formCtrl.modifiedChildFormsCount) > 0
141 ;
142 }
143
144 /**
145 * Decorates element with proper CSS classes.

Callers 1

updateFormStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected