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