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