GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • ControlValueAccessor

This view

  • Original page
  • New address

GeezerVison is showing next.angular.dev — CheckboxControlValueAccessor • Angular

API

    
      class CheckboxControlValueAccessor extends BuiltInControlValueAccessor implements ControlValueAccessor {}
    
    

Description

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

Exported by

  • ReactiveFormsModule
  • FormsModule

Usage Notes

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">
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.