Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ focus
Method
focus
src/cdk/menu/menu-item.ts:120–122 ·
view source on GitHub ↗
Place focus on the element.
()
Source
from the content-addressed store, hash-verified
118
119
/** Place focus on the element. */
120
focus() {
121
this._elementRef.nativeElement.focus();
122
}
123
124
/**
125
* If the menu item is not disabled and the element does not have a menu trigger attached, emit
Callers
nothing calls this directly
Calls
1
focus
Method · 0.65
Tested by
no test coverage detected