| 4616 | |
| 4617 | it('synchronizes with a custom checkbox control', () => { |
| 4618 | @Component({ |
| 4619 | selector: 'my-checkbox', |
| 4620 | template: |
| 4621 | '<input type="checkbox" #i [checked]="checked()" (input)="checked.set(i.checked)" />', |
| 4622 | }) |
| 4623 | class CustomCheckbox implements FormCheckboxControl { |
| 4624 | checked = model(false); |
| 4625 | } |
| 4626 | |
| 4627 | @Component({ |
| 4628 | imports: [FormField, CustomCheckbox], |