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