ng2-validation icon indicating copy to clipboard operation
ng2-validation copied to clipboard

Min/Max treating null or undefined as zero

Open thaoula opened this issue 8 years ago • 0 comments

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

thaoula avatar Dec 20 '16 21:12 thaoula