Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/angular
/ focus
Method
focus
packages/forms/signals/test/web/focus.spec.ts:45–48 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
43
readonly value = model<string>();
44
readonly input = viewChild.required<ElementRef<HTMLInputElement>>(
'input'
);
45
focus() {
46
focusCalled = true;
47
this.input().nativeElement.focus();
48
}
49
}
50
51
@Component({
Callers
nothing calls this directly
Calls
2
input
Method · 0.80
focus
Method · 0.65
Tested by
no test coverage detected