* Updates form state and notifies it's parents.
()
| 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. |
no test coverage detected