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

Method ngAfterViewInit

src/material/menu/menu-item.ts:104–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 }
103
104 ngAfterViewInit() {
105 if (this._focusMonitor) {
106 // Start monitoring the element, so it gets the appropriate focused classes. We want
107 // to show the focus style for menu items only when the focus was not caused by a
108 // mouse or touch interaction.
109 this._focusMonitor.monitor(this._elementRef, false);
110 }
111 }
112
113 ngOnDestroy() {
114 if (this._focusMonitor) {

Callers

nothing calls this directly

Calls 1

monitorMethod · 0.45

Tested by

no test coverage detected