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

Class CustomInput

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

Source from the content-addressed store, hash-verified

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