| 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/); |