# Interface NgModelController

interface NgModelController {
$asyncValidators: {};
$commitViewValue: (() => void);
$dirty: boolean;
$error: {};
$formatters: ((arg0: any) => any)[];
$invalid: boolean;
$isEmpty: ((arg0: any) => boolean);
$modelValue: any;
$name: string;
$overrideModelOptions: ((arg0: NgModelOptions) => void);
$parsers: ((arg0: any, arg1: any) => boolean)[];
$pending: {};
$pristine: boolean;
$processModelValue: (() => void);
$render: (() => void);
$rollbackViewValue: (() => void);
$setDirty: (() => void);
$setPristine: (() => void);
$setTouched: (() => void);
$setUntouched: (() => void);
$setValidity: ((arg0: string, arg1: boolean) => void);
$setViewValue: ((arg0: any, arg1: string) => void);
$touched: boolean;
$untouched: boolean;
$valid: boolean;
$validate: (() => void);
$validators: {};
$viewChangeListeners: (() => any)[];
$viewValue: any;
}

- Defined in types.js:392

#####
Index

### Properties

$asyncValidators
$commitViewValue
$dirty
$error
$formatters
$invalid
$isEmpty
$modelValue
$name
$overrideModelOptions
$parsers
$pending
$pristine
$processModelValue
$render
$rollbackViewValue
$setDirty
$setPristine
$setTouched
$setUntouched
$setValidity
$setViewValue
$touched
$untouched
$valid
$validate
$validators
$viewChangeListeners
$viewValue

##
Properties

### $asyncValidators

$asyncValidators: {}

Asynchronous validators.

- Defined in types.js:416

### $commitViewValue

$commitViewValue: (() => void)

Commits the view value.

- Defined in types.js:402

### $dirty

$dirty: boolean

True if the control is dirty.

- Defined in types.js:419

### $error

$error: {}

Validation errors.

- Defined in types.js:411

### $formatters

$formatters: ((arg0: any) => any)[]

Array of formatters.

- Defined in types.js:409

### $invalid

$invalid: boolean

True if the control is invalid.

- Defined in types.js:421

### $isEmpty

$isEmpty: ((arg0: any) => boolean)

Checks if the value is empty.

- Defined in types.js:404

### $modelValue

$modelValue: any

The current model value.

- Defined in types.js:407

### $name

$name: string

The name of the control.

- Defined in types.js:412

### $overrideModelOptions

$overrideModelOptions: ((arg0: NgModelOptions) => void)

Overrides model options.

- Defined in types.js:405

### $parsers

$parsers: ((arg0: any, arg1: any) => boolean)[]

Array of parsers.

- Defined in types.js:408

### $pending

$pending: {}

Pending validation.

- Defined in types.js:417

### $pristine

$pristine: boolean

True if the control is pristine.

- Defined in types.js:418

### $processModelValue

$processModelValue: (() => void)

Processes the model value.

- Defined in types.js:403

### $render

$render: (() => void)

Renders the view value.

- Defined in types.js:393

### $rollbackViewValue

$rollbackViewValue: (() => void)

Rolls back the view value.

- Defined in types.js:401

### $setDirty

$setDirty: (() => void)

Marks the control as dirty.

- Defined in types.js:397

### $setPristine

$setPristine: (() => void)

Marks the control as pristine.

- Defined in types.js:396

### $setTouched

$setTouched: (() => void)

Marks the control as touched.

- Defined in types.js:399

### $setUntouched

$setUntouched: (() => void)

Marks the control as untouched.

- Defined in types.js:400

### $setValidity

$setValidity: ((arg0: string, arg1: boolean) => void)

Sets the validity state.

- Defined in types.js:394

### $setViewValue

$setViewValue: ((arg0: any, arg1: string) => void)

Sets the view value.

- Defined in types.js:395

### $touched

$touched: boolean

True if the control has been touched.

- Defined in types.js:413

### $untouched

$untouched: boolean

True if the control has not been touched.

- Defined in types.js:414

### $valid

$valid: boolean

True if the control is valid.

- Defined in types.js:420

### $validate

$validate: (() => void)

Validates the control.

- Defined in types.js:398

### $validators

$validators: {}

Synchronous validators.

- Defined in types.js:415

### $viewChangeListeners

$viewChangeListeners: (() => any)[]

Array of view change listeners.

- Defined in types.js:410

### $viewValue

$viewValue: any

The current view value.

- Defined in types.js:406