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

Class App

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

Source from the content-addressed store, hash-verified

502 }
503
504 @Component({
505 selector: 'app-root',
506 imports: [CustomControl, FormField],
507 template: `<signal-custom-control [formField]="f" />`,
508 })
509 class App {
510 disabled = signal(false);
511 readonly f = form(signal('test'), (f) => {
512 disabled(f, {when: () => this.disabled()});
513 });
514 }
515
516 const fixture = TestBed.createComponent(App);
517 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