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

Method _propagateChanges

src/material/chips/chip-grid.ts:518–525  ·  view source on GitHub ↗

Emits change event to set the model value.

()

Source from the content-addressed store, hash-verified

516
517 /** Emits change event to set the model value. */
518 private _propagateChanges(): void {
519 const valueToEmit = this._chips.length ? this._chips.toArray().map(chip => chip.value) : [];
520 this._value = valueToEmit;
521 this.change.emit(new MatChipGridChange(this, valueToEmit));
522 this.valueChange.emit(valueToEmit);
523 this._onChange(valueToEmit);
524 this._changeDetectorRef.markForCheck();
525 }
526
527 /** Mark the field as touched */
528 private _markAsTouched() {

Callers 1

_blurMethod · 0.95

Calls 2

_onChangeMethod · 0.80
markForCheckMethod · 0.80

Tested by

no test coverage detected