MCPcopy Create free account
hub / github.com/angular/components / ngAfterViewInit

Method ngAfterViewInit

src/material/sort/sort-header.ts:152–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 }
151
152 ngAfterViewInit() {
153 // We use the focus monitor because we also want to style
154 // things differently based on the focus origin.
155 this._focusMonitor.monitor(this._elementRef, true).subscribe(() => {
156 // We need the delay here, because we can trigger a signal write error if the header
157 // has a signal bound to `disabled` which causes it to be blurred (see #31723.)
158 Promise.resolve().then(() => this._recentlyCleared.set(null));
159 });
160 }
161
162 ngOnDestroy() {
163 this._focusMonitor.stopMonitoring(this._elementRef);

Callers

nothing calls this directly

Calls 3

resolveMethod · 0.80
setMethod · 0.80
monitorMethod · 0.45

Tested by

no test coverage detected