Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ focus
Method
focus
src/material/slide-toggle/slide-toggle.ts:129–131 ·
view source on GitHub ↗
Focuses the slide-toggle.
()
Source
from the content-addressed store, hash-verified
127
128
/** Focuses the slide-toggle. */
129
focus(): void {
130
this._switchElement.nativeElement.focus();
131
}
132
/** Whether noop animations are enabled. */
133
_noopAnimations = _animationsDisabled();
134
Callers
nothing calls this directly
Calls
1
focus
Method · 0.65
Tested by
no test coverage detected