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

Class TestStringControl

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

Source from the content-addressed store, hash-verified

87}
88
89@Component({
90 selector: 'string-control',
91 template: `<input [formField]="formField()" />`,
92 imports: [FormField],
93})
94class TestStringControl {
95 readonly formField = input.required<Field<string>>();
96 readonly fieldDirective = viewChild.required(FormField);
97}
98
99describe('field directive', () => {
100 describe('field input', () => {

Callers

nothing calls this directly

Calls 2

ComponentInterface · 0.90
requiredMethod · 0.45

Tested by

no test coverage detected