I have a shop component and I need to disallow people to pick negative numbers in my input.
For example, if user will type -3 in my input, the input value will immadiately change to 0.
How I can control my angular 2 input OnChange value to set it back to 0 it the value is negative?
Tried to use (ngModelChange)="myMethod($event)"
and set the parameter to 0 if it's negative, but didn't work.