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

Class PendingTestCmp

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

Source from the content-addressed store, hash-verified

5290 }
5291
5292 @Component({
5293 template: ` <my-input [formField]="f" /> `,
5294 imports: [CustomInput, FormField],
5295 })
5296 class PendingTestCmp {
5297 myInput = viewChild.required<CustomInput>(CustomInput);
5298 data = signal('test');
5299 f = form(this.data, (p) => {
5300 validateAsync(p, {
5301 params: () => [],
5302 factory: (params) =>
5303 resource({
5304 params,
5305 loader: () => promise,
5306 }),
5307 onSuccess: (results) => results,
5308 onError: () => null,
5309 });
5310 });
5311 }
5312
5313 const fix = act(() => TestBed.createComponent(PendingTestCmp));
5314

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