MCPcopy Create free account
hub / github.com/angular/angular / constructor

Method constructor

packages/forms/signals/test/web/focus.spec.ts:233–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231 input = viewChild.required<ElementRef<HTMLInputElement>>('input');
232
233 constructor() {
234 inject(FormField, {self: true, optional: true})?.registerAsBinding({
235 focus: () => this.input().nativeElement.focus(),
236 });
237 }
238 }
239
240 @Component({

Callers

nothing calls this directly

Calls 4

injectFunction · 0.90
registerAsBindingMethod · 0.80
inputMethod · 0.80
focusMethod · 0.65

Tested by

no test coverage detected