My requirement is as below,
I have a text field, which should accept only numbers. When I enter any other characters, it should not be allowed (that is it should not be displayed in the text box). I cannot use input type number as it allows "-", "+" and e.
I tried using many events like, ngModelChange, keypress, keydown, input, change. But none of them worked as expected.
I have recreated my problem in below link,
https://stackblitz.com/edit/angular-en6w18
Any help appreciated. Thanks.