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

Class ReadonlyTestCmp

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

Source from the content-addressed store, hash-verified

4991 }
4992
4993 @Component({
4994 template: ` <my-input [formField]="f" /> `,
4995 imports: [CustomInput, FormField],
4996 })
4997 class ReadonlyTestCmp {
4998 myInput = viewChild.required<CustomInput>(CustomInput);
4999 data = signal('');
5000 f = form(this.data, (p) => {
5001 disabled(p, {when: () => 'Currently unavailable'});
5002 });
5003 }
5004
5005 const comp = act(() => TestBed.createComponent(ReadonlyTestCmp)).componentInstance;
5006

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