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