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

Class TestCmp

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

Source from the content-addressed store, hash-verified

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…