| 4544 | |
| 4545 | it('synchronizes with a custom checkbox control', () => { |
| 4546 | @Component({ |
| 4547 | selector: 'my-checkbox', |
| 4548 | template: |
| 4549 | '<input type="checkbox" #i [checked]="checked()" (input)="checked.set(i.checked)" />', |
| 4550 | }) |
| 4551 | class CustomCheckbox implements FormCheckboxControl { |
| 4552 | checked = model(false); |
| 4553 | } |
| 4554 | |
| 4555 | @Component({ |
| 4556 | imports: [FormField, CustomCheckbox], |