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

Method registerOnChange

src/cdk/listbox/listbox.ts:594–596  ·  view source on GitHub ↗

* Registers a callback to be invoked when the listbox's value changes from user input. * @param fn The callback to register * @docs-private

(fn: (value: readonly T[]) => void)

Source from the content-addressed store, hash-verified

592 * @docs-private
593 */
594 registerOnChange(fn: (value: readonly T[]) => void): void {
595 this._onChange = fn;
596 }
597
598 /**
599 * Registers a callback to be invoked when the listbox is blurred by the user.

Calls

no outgoing calls

Tested by

no test coverage detected