MCPcopy Index your code
hub / github.com/angular/angular / TestCmp

Class TestCmp

packages/forms/signals/test/web/compat_form.spec.ts:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22 it('should bind compat form to input with [formField] directive', () => {
23 @Component({
24 imports: [FormField],
25 template: `
26 <input [formField]="f.name" />
27 <input type="number" [formField]="f.age" />
28 `,
29 })
30 class TestCmp {
31 readonly cat = signal({
32 name: new FormControl('pirojok-the-cat', {nonNullable: true}),
33 age: new FormControl(5, {nonNullable: true}),
34 });
35 readonly f = compatForm(this.cat);
36 }
37
38 const fixture = act(() => TestBed.createComponent(TestCmp));
39 const inputs = fixture.nativeElement.querySelectorAll('input');

Callers

nothing calls this directly

Calls 3

ComponentInterface · 0.90
signalFunction · 0.90
compatFormFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…