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