MCPcopy Create free account
hub / github.com/angular/angular / CustomCheckbox

Class CustomCheckbox

packages/forms/signals/test/web/form_field.spec.ts:4546–4553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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],

Callers

nothing calls this directly

Calls 5

ComponentInterface · 0.90
outputFunction · 0.90
InputInterface · 0.90
OutputInterface · 0.90
requiredMethod · 0.45

Tested by

no test coverage detected