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