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

Method ngAfterViewInit

src/material/button/button-base.ts:168–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166 }
167
168 ngAfterViewInit() {
169 this._focusMonitor.monitor(this._elementRef, true);
170
171 // Some internal tests depend on the timing of this,
172 // otherwise we could bind it in the constructor.
173 if (this._isAnchor) {
174 this._setupAsAnchor();
175 }
176 }
177
178 ngOnDestroy() {
179 this._cleanupClick?.();

Callers

nothing calls this directly

Calls 2

_setupAsAnchorMethod · 0.95
monitorMethod · 0.45

Tested by

no test coverage detected