Registers a callback function that should be called when the control's value changes in the UI.
This is called by the forms API on initialization so it can update the form model when values propagate from the view (view -> model).
If you are implementing registerOnChange
in your own value accessor, you
will typically want to save the given function so your class can call it
at the appropriate time.
Registers a callback function that should be called when the control receives a blur event.
This is called by the forms API on initialization so it can update the form model on blur.
If you are implementing registerOnTouched
in your own value accessor, you
will typically want to save the given function so your class can call it
when the control should be considered blurred (a.k.a. 'touched').
Generated using TypeDoc
Form Control instance itself