| 4340 | |
| 4341 | it('synchronizes with a custom value control', () => { |
| 4342 | @Component({ |
| 4343 | selector: 'my-input', |
| 4344 | template: '<input #i [value]="value()" (input)="value.set(i.value)" />', |
| 4345 | }) |
| 4346 | class CustomInput implements FormValueControl<string> { |
| 4347 | value = model(''); |
| 4348 | } |
| 4349 | |
| 4350 | @Component({ |
| 4351 | imports: [FormField, CustomInput], |