MCPcopy Create free account
hub / github.com/angular/components / registerOnChange

Method registerOnChange

src/material/select/select.ts:829–831  ·  view source on GitHub ↗

* Saves a callback function to be invoked when the select's value * changes from user input. Part of the ControlValueAccessor interface * required to integrate with Angular's core forms API. * * @param fn Callback to be triggered when the value changes.

(fn: (value: any) => void)

Source from the content-addressed store, hash-verified

827 * @param fn Callback to be triggered when the value changes.
828 */
829 registerOnChange(fn: (value: any) => void): void {
830 this._onChange = fn;
831 }
832
833 /**
834 * Saves a callback function to be invoked when the select is blurred

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected