GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing angular.dev — ControlValueAccessor • Angular Writes a new value to the element. This method is called by the forms API to write to the view when programmatic changes from model to view are requested. @paramobj anyThe new value for the element @returns voidUsage notes Write a value to the elementThe following example writes a value to the native DOM element.
Registers a callback function that is called when the control's value changes in the UI. This method is called by the forms API on initialization to update the form model when values propagate from the view to the model. When implementing the @paramfn anyThe callback function to register @returns voidUsage notes Store the change functionThe following example stores the provided function as an internal method.
When the value changes in the UI, call the registered function to allow the forms API to update itself:
Registers a callback function that is called by the forms API on initialization to update the form model on blur. When implementing @paramfn anyThe callback function to register @returns voidUsage notes Store the callback functionThe following example stores the provided function as an internal method.
On blur (or equivalent), your class should call the registered function to allow the forms API to update itself:
Function that is called by the forms API when the control status changes to or from 'DISABLED'. Depending on the status, it enables or disables the appropriate DOM element. @paramisDisabled booleanThe disabled status to set on the element @returns voidUsage notes The following is an example of writing the disabled property to a native DOM element:
DescriptionDefines an interface that acts as a bridge between the Angular forms API and a native element in the DOM. Implement this interface to create a custom form control directive that integrates with Angular forms. |
| 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. |