ng2-validation
ng2-validation copied to clipboard
Min/Max treating null or undefined as zero
Hi,
I am required to build a form dynamically using data from a json file.
I am using template driven forms and setting the Min and Max values based on the data in the json file.
If values for Min or Max are not provided the validators activate and treat the value as zero.
Is it possible for the Min/Max validators to ignore null or undefined values. In other words, do not try and validate.
Regards, Tarek