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

Class ReadonlyTestCmp

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

Source from the content-addressed store, hash-verified

5177 }
5178
5179 @Component({
5180 template: ` <my-input [formField]="f" /> `,
5181 imports: [CustomInput, FormField],
5182 })
5183 class ReadonlyTestCmp {
5184 myInput = viewChild.required<CustomInput>(CustomInput);
5185 data = signal('');
5186 f = form(this.data, (p) => {
5187 disabled(p, {when: () => 'Currently unavailable'});
5188 });
5189 }
5190
5191 const comp = act(() => TestBed.createComponent(ReadonlyTestCmp)).componentInstance;
5192

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