()
| 389 | } |
| 390 | |
| 391 | private _emitChangeEvent() { |
| 392 | this._controlValueAccessorChangeFn(this.checked); |
| 393 | this.change.emit(this._createChangeEvent(this.checked)); |
| 394 | |
| 395 | // Assigning the value again here is redundant, but we have to do it in case it was |
| 396 | // changed inside the `change` listener which will cause the input to be out of sync. |
| 397 | if (this._inputElement) { |
| 398 | this._inputElement.nativeElement.checked = this.checked; |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | /** Toggles the `checked` state of the checkbox. */ |
| 403 | toggle(): void { |
no test coverage detected