Emits change event to set the model value.
()
| 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() { |
no test coverage detected