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

Function updateSelection

src/material/datepicker/date-selection-model.ts:78–82  ·  view source on GitHub ↗

* Updates the current selection in the model. * @param value New selection that should be assigned. * @param source Object that triggered the selection change.

(value: S, source: unknown)

Source from the content-addressed store, hash-verified

76 * @param source Object that triggered the selection change.
77 */
78 updateSelection(value: S, source: unknown) {
79 const oldValue = (this as {selection: S}).selection;
80 (this as {selection: S}).selection = value;
81 this._selectionChanged.next({selection: value, source, oldValue});
82 }
83
84 ngOnDestroy() {
85 this._selectionChanged.complete();

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected