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

Function updateFormState

src/directive/form.js:112–126  ·  view source on GitHub ↗

* Updates form state and notifies it's parents.

()

Source from the content-addressed store, hash-verified

110 * Updates form state and notifies it's parents.
111 */
112 function updateFormState () {
113
114 updateModifiedState();
115
116 // Notifying the parent form if it presents.
117 if (parentFormCtrl && 'function' === typeof parentFormCtrl.$$onChildFormModifiedStateChanged) {
118 parentFormCtrl.$$onChildFormModifiedStateChanged(formCtrl);
119 }
120
121 updateCssClasses();
122
123 // Firing event to parent scopes.
124 $scope.$emit('inputModified.formChanged', formCtrl.modified, formCtrl);
125
126 }
127
128 /**
129 * Updates form modified state.

Callers 2

onModifiedStateChangedFunction · 0.85
onChildFormDestroyedFunction · 0.85

Calls 2

updateModifiedStateFunction · 0.85
updateCssClassesFunction · 0.70

Tested by

no test coverage detected