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

Class ReadonlyTestCmp

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

Source from the content-addressed store, hash-verified

4950 }
4951
4952 @Component({
4953 template: ` <my-input [formField]="f" /> `,
4954 imports: [CustomInput, FormField],
4955 })
4956 class ReadonlyTestCmp {
4957 myInput = viewChild.required<CustomInput>(CustomInput);
4958 data = signal('');
4959 f = form(this.data, (p) => {
4960 disabled(p, {when: () => 'Currently unavailable'});
4961 });
4962 }
4963
4964 const comp = act(() => TestBed.createComponent(ReadonlyTestCmp)).componentInstance;
4965

Callers

nothing calls this directly

Calls 6

ComponentInterface · 0.90
signalFunction · 0.90
formFunction · 0.85
requiredFunction · 0.85
disabledFunction · 0.50
requiredMethod · 0.45

Tested by

no test coverage detected