()
| 719 | } |
| 720 | |
| 721 | ngOnDestroy() { |
| 722 | const group = this.buttonToggleGroup; |
| 723 | |
| 724 | this._focusMonitor.stopMonitoring(this._elementRef); |
| 725 | |
| 726 | // Remove the toggle from the selection once it's destroyed. Needs to happen |
| 727 | // on the next tick in order to avoid "changed after checked" errors. |
| 728 | if (group && group._isSelected(this)) { |
| 729 | group._syncButtonToggle(this, false, false, true); |
| 730 | } |
| 731 | } |
| 732 | |
| 733 | /** Focuses the button. */ |
| 734 | focus(options?: FocusOptions): void { |
nothing calls this directly
no test coverage detected