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

Class CustomInput

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

Source from the content-addressed store, hash-verified

4339
4340 it('synchronizes with a custom value control', () => {
4341 @Component({
4342 selector: 'my-input',
4343 template: '<input #i [value]="value()" (input)="value.set(i.value)" />',
4344 })
4345 class CustomInput implements FormValueControl<string> {
4346 value = model('');
4347 }
4348
4349 @Component({
4350 imports: [FormField, CustomInput],

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected