MCPcopy
hub / github.com/angular/angular / ReadonlyTestCmp

Class ReadonlyTestCmp

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

Source from the content-addressed store, hash-verified

4931 }
4932
4933 @Component({
4934 template: ` <my-input [formField]="f" /> `,
4935 imports: [CustomInput, FormField],
4936 })
4937 class ReadonlyTestCmp {
4938 myInput = viewChild.required<CustomInput>(CustomInput);
4939 data = signal('');
4940 f = form(this.data, (p) => {
4941 disabled(p, {when: () => 'Currently unavailable'});
4942 });
4943 }
4944
4945 const comp = act(() => TestBed.createComponent(ReadonlyTestCmp)).componentInstance;
4946

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…