MCPcopy
hub / github.com/angular/angular / App

Class App

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

Source from the content-addressed store, hash-verified

509 }
510
511 @Component({
512 selector: 'app-root',
513 imports: [CustomControl, FormField],
514 template: `<signal-custom-control [formField]="f" />`,
515 })
516 class App {
517 disabled = signal(false);
518 readonly f = form(signal('test'), (f) => {
519 disabled(f, {when: () => this.disabled()});
520 });
521 }
522
523 const fixture = TestBed.createComponent(App);
524 expect(() => fixture.detectChanges()).not.toThrowError(/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