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

Method registerOnTouched

src/material/select/select.ts:840–842  ·  view source on GitHub ↗

* Saves a callback function to be invoked when the select is blurred * by the user. Part of the ControlValueAccessor interface required * to integrate with Angular's core forms API. * * @param fn Callback to be triggered when the component has been touched.

(fn: () => {})

Source from the content-addressed store, hash-verified

838 * @param fn Callback to be triggered when the component has been touched.
839 */
840 registerOnTouched(fn: () => {}): void {
841 this._onTouched = fn;
842 }
843
844 /**
845 * Disables the select. Part of the ControlValueAccessor interface required

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected