MCPcopy Index your code
hub / github.com/angular/angular / PendingTestCmp

Class PendingTestCmp

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

Source from the content-addressed store, hash-verified

5044 }
5045
5046 @Component({
5047 template: ` <my-input [formField]="f" /> `,
5048 imports: [CustomInput, FormField],
5049 })
5050 class PendingTestCmp {
5051 myInput = viewChild.required<CustomInput>(CustomInput);
5052 data = signal('test');
5053 f = form(this.data, (p) => {
5054 validateAsync(p, {
5055 params: () => [],
5056 factory: (params) =>
5057 resource({
5058 params,
5059 loader: () => promise,
5060 }),
5061 onSuccess: (results) => results,
5062 onError: () => null,
5063 });
5064 });
5065 }
5066
5067 const fix = act(() => TestBed.createComponent(PendingTestCmp));
5068

Callers

nothing calls this directly

Calls 6

ComponentInterface · 0.90
signalFunction · 0.90
resourceFunction · 0.90
formFunction · 0.85
validateAsyncFunction · 0.85
requiredMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…