MCPcopy
hub / github.com/angular/angular / constructor

Method constructor

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

Source from the content-addressed store, hash-verified

239 input = viewChild.required<ElementRef<HTMLInputElement>>('input');
240
241 constructor() {
242 inject(FormField, {self: true, optional: true})?.registerAsBinding({
243 focus: () => this.input().nativeElement.focus(),
244 });
245 }
246 }
247
248 @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