interface FormController {
    $addControl: ((arg0: NgModelController | FormController) => void);
    $commitViewValue: (() => void);
    $dirty: boolean;
    $error: {};
    $getControls: (() => readonly (NgModelController | FormController)[]);
    $invalid: boolean;
    $name: string;
    $pending: {};
    $pristine: boolean;
    $removeControl: ((arg0: NgModelController | FormController) => void);
    $rollbackViewValue: (() => void);
    $setDirty: (() => void);
    $setPristine: (() => void);
    $setSubmitted: (() => void);
    $setUntouched: (() => void);
    $setValidity: ((arg0: string, arg1: boolean, arg2: NgModelController | FormController) => void);
    $submitted: boolean;
    $valid: boolean;
    name: ((arg0: string) => any);
}

Properties

$addControl: ((arg0: NgModelController | FormController) => void)

Adds a control to the form.

$commitViewValue: (() => void)

Commits the view value of all controls in the form.

$dirty: boolean

True if the form has been modified.

$error: {}

An object containing arrays of controls with validation errors keyed by validation error keys.

$getControls: (() => readonly (NgModelController | FormController)[])

Returns an array of all controls in the form.

$invalid: boolean

True if the form is invalid.

$name: string

The name of the form.

$pending: {}

An object containing arrays of controls that are pending validation, keyed by validation error keys.

$pristine: boolean

True if the form has not been modified.

$removeControl: ((arg0: NgModelController | FormController) => void)

Removes a control from the form.

$rollbackViewValue: (() => void)

Rolls back the view value of all controls in the form.

$setDirty: (() => void)

Marks the form as dirty.

$setPristine: (() => void)

Marks the form as pristine.

$setSubmitted: (() => void)

Marks the form as submitted.

$setUntouched: (() => void)

Marks the form controls as untouched.

$setValidity: ((arg0: string, arg1: boolean, arg2: NgModelController | FormController) => void)

Sets the validity of a control in the form.

$submitted: boolean

True if the form has been submitted.

$valid: boolean

True if the form is valid.

name: ((arg0: string) => any)

An indexer for additional properties.