I have the form builder as follows,
this.feedbackForm = new FormGroup({
figure: new FormControl('', Validators.pattern(/^[0-9]+$/)),
maxVal: new FormControl(''),
minVal: new FormControl('', Validators.max(feedbackForm.values.maxVal - 1)),
});
Here I want to compare minVal such that it is lesser than max value,but from the above code it shows the error as follows,
ERROR TypeError: Cannot read property 'values' of undefined
Can anyone please suggest me help.Thanks.