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
  • FormControlDirective
  • FormControlName
  • NgModel

This view

  • Original page
  • New address

GeezerVison is showing angular.dev — NumberValueAccessor • Angular

API

    
      class NumberValueAccessor extends BuiltInControlValueAccessor implements ControlValueAccessor {}
    
    

Description

The ControlValueAccessor for writing a number value and listening to number input changes. The value accessor is used by the FormControlDirective, FormControlName, and NgModel directives.

Exported by

  • ReactiveFormsModule
  • FormsModule

Usage Notes

Using a number input with a reactive form.

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

const totalCountControl = new FormControl();
<input type="number" [formControl]="totalCountControl">
You are visitor 01402503 — 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.