| 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; |
nothing calls this directly
no test coverage detected
searching dependent graphs…