• 개요
@angular/forms

CheckboxControlValueAccessor

디렉티브
안정화

A ControlValueAccessor for writing a value and listening to changes on a checkbox input element.

API

    
      class CheckboxControlValueAccessor extends BuiltInControlValueAccessor implements ControlValueAccessor {}
    
    

설명

A ControlValueAccessor for writing a value and listening to changes on a checkbox input element.

다음 모듈에서 내보냄

사용 시 참고사항

Using a checkbox with a reactive form.

The following example shows how to use a checkbox with a reactive form.

const rememberLoginControl = new FormControl();
<input type="checkbox" [formControl]="rememberLoginControl">
상세 내용으로 이동