my requirement is in an angular project i'm taking number input in a form like this
<input type="number" #input class="form-control" [(ngModel)]="dataItem.quantity"
i should not allow user to enter negative values even from copy-paste or through increase / decrease button of input type number or thought keyboard.
how can we acheive this, i have seen some directives, there they are taking input as 'text', my case is it should be "input type number" only.
It should allow decimals also.
Please Help me.