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