| 4371 | |
| 4372 | it('synchronizes with a custom value control', () => { |
| 4373 | @Component({ |
| 4374 | selector: 'my-input', |
| 4375 | template: '<input #i [value]="value()" (input)="value.set(i.value)" />', |
| 4376 | }) |
| 4377 | class CustomInput implements FormValueControl<string> { |
| 4378 | value = model(''); |
| 4379 | } |
| 4380 | |
| 4381 | @Component({ |
| 4382 | imports: [FormField, CustomInput], |