I'm trying to create a new component in angular reactive forms. Here is my sample project: https://stackblitz.com/edit/angular-pyi9jn
I have created a very simple angular form of this architecture:
form - simple counter
The output of form is like : { "simplecounter": 2 }
What I want is that I should be able to pass the max
and min
values for the counter in the reactive form html. And the form should return form.valid
according to these min
and max
values.
It's giving the output values as expected but the validation is not working. After a lot of experimenting, still I'm not able to find any problem with the code.
Would greatly appreciated any help. Thanks in advance!