form.FormController.$submitted

$submitted boolean True if user has submitted the form even if its invalid.

form.FormController.$setDirty()

$setDirty(); Sets the form to a dirty state. This method can be called to add the 'ng-dirty' class and set the form to a dirty state (ng-dirty class). This method will also propagate to parent forms.

form.FormController.$rollbackViewValue()

$rollbackViewValue(); Rollback all form controls pending updates to the $modelValue. Updates may be pending by a debounced event or because the input is waiting for a some future event defined in ng-model-options. This method is typically needed by the reset button of a form that uses ng-model-options to pend updates.

form.FormController.$setValidity()

$setValidity(); Sets the validity of a form control. This method will also propagate to parent forms.

form.FormController.$setUntouched()

$setUntouched(); Sets the form to its untouched state. This method can be called to remove the 'ng-touched' class and set the form controls to their untouched state (ng-untouched class). Setting a form controls back to their untouched state is often useful when setting the form back to its pristine state.

form.FormController.$pending

$pending boolean True if at least one containing control or form is pending.

form.FormController.$pristine

$pristine boolean True if user has not interacted with the form yet.

form.FormController.$invalid

$invalid boolean True if at least one containing control or form is invalid.

form.FormController.$removeControl()

$removeControl(control); Deregister a control from the form. Input elements using ngModelController do this automatically when they are destroyed. Note that only the removed control's validation state ($errorsetc.) will be removed from the form. $dirty, $submitted states will not be changed, because the expected behavior can be different from case to case. For example, removing the only $dirty control from a form may or may not mean that the form is still $dirty. Parameters Param Type Details

form.FormController.$error

$error Object Is an object hash, containing references to controls or forms with failing validators, where: keys are validation tokens (error names), values are arrays of controls or forms that have a failing validator for given error name. Built-in validation tokens: email max maxlength min minlength number pattern required url date datetimelocal time week month