CheckboxControlValueAccessor

directive

The accessor for writing a value and listening to changes on a checkbox input element.

NgModules

Selectors

Properties

Property Description
onChange: (_: any) => { }
onTouched: () => { }

Description

Example

<input type="checkbox" name="rememberLogin" ngModel>

Methods

writeValue(value: any): void

Parameters

value

Type: any.

Returns

void

registerOnChange(fn: (_: any) => { }): void

Parameters

fn

Type: (_: any) => { }.

Returns

void

registerOnTouched(fn: () => { }): void

Parameters

fn

Type: () => { }.

Returns

void

setDisabledState(isDisabled: boolean): void

Parameters

isDisabled

Type: boolean.

Returns

void

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/forms/CheckboxControlValueAccessor