| 923 | |
| 924 | it('should throw if a required model input is accessed too early', () => { |
| 925 | @Directive({selector: '[dir]'}) |
| 926 | class Dir { |
| 927 | value = model.required<number>(); |
| 928 | |
| 929 | constructor() { |
| 930 | this.value(); |
| 931 | } |
| 932 | } |
| 933 | |
| 934 | @Component({ |
| 935 | template: '<div [(value)]="value" dir></div>', |