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

Class ReadonlyTestCmp

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

Source from the content-addressed store, hash-verified

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

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