Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ _hasFocus
Method
_hasFocus
src/material/menu/menu-item.ts:192–194 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
190
}
191
192
_hasFocus(): boolean {
193
return
this._document && this._document.activeElement === this._getHostElement();
194
}
195
}
Callers
1
ngAfterContentInit
Method · 0.45
Calls
1
_getHostElement
Method · 0.95
Tested by
no test coverage detected