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

Class App

packages/forms/signals/test/web/interop.spec.ts:504–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502 }
503
504 @Component({
505 imports: [CustomControl, FormField],
506 template: `<signal-custom-control [formField]="f" />`,
507 })
508 class App {
509 disabled = signal(false);
510 readonly f = form(signal('test'), (f) => {
511 disabled(f, {when: () => this.disabled()});
512 });
513 }
514
515 const fixture = TestBed.createComponent(App);
516 await expectAsync(fixture.whenStable()).not.toBeRejectedWithError(/NG0600/);

Callers

nothing calls this directly

Calls 5

ComponentInterface · 0.90
signalFunction · 0.90
formFunction · 0.90
disabledFunction · 0.90
disabledMethod · 0.45

Tested by

no test coverage detected