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