| 4585 | |
| 4586 | it('synchronizes with a custom checkbox control', () => { |
| 4587 | @Component({ |
| 4588 | selector: 'my-checkbox', |
| 4589 | template: |
| 4590 | '<input type="checkbox" #i [checked]="checked()" (input)="checked.set(i.checked)" />', |
| 4591 | }) |
| 4592 | class CustomCheckbox implements FormCheckboxControl { |
| 4593 | checked = model(false); |
| 4594 | } |
| 4595 | |
| 4596 | @Component({ |
| 4597 | imports: [FormField, CustomCheckbox], |