MCPcopy Index your code
hub / github.com/angular/components / _propagateChanges

Method _propagateChanges

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

Emits change event to set the model value.

()

Source from the content-addressed store, hash-verified

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

Callers 1

_blurMethod · 0.95

Calls 2

_onChangeMethod · 0.80
markForCheckMethod · 0.80

Tested by

no test coverage detected