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

Class TestCmp

packages/forms/signals/test/web/form_field.spec.ts:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 describe('field input', () => {
96 it('should bind new field to control when changed', () => {
97 @Component({
98 imports: [FormField],
99 template: `<input [formField]="formField()" />`,
100 })
101 class TestCmp {
102 readonly model = signal({x: 'a', y: 'b'});
103 readonly f = form(this.model);
104 readonly formField = signal(this.f.x);
105 }
106
107 const fixture = act(() => TestBed.createComponent(TestCmp));
108 const component = fixture.componentInstance;

Callers

nothing calls this directly

Calls 15

ComponentInterface · 0.90
signalFunction · 0.90
viewChildrenFunction · 0.90
resourceFunction · 0.90
computedFunction · 0.90
formFunction · 0.85
requiredFunction · 0.85
hiddenFunction · 0.85
validateAsyncFunction · 0.85
readonlyFunction · 0.85
maxDateFunction · 0.85
minDateFunction · 0.85

Tested by

no test coverage detected