| 955 | |
| 956 | it('should throw if a required model input is accessed too early', () => { |
| 957 | @Directive({selector: '[dir]'}) |
| 958 | class Dir { |
| 959 | value = model.required<number>(); |
| 960 | |
| 961 | constructor() { |
| 962 | this.value(); |
| 963 | } |
| 964 | } |
| 965 | |
| 966 | @Component({ |
| 967 | template: '<div [(value)]="value" dir></div>', |