Hello. I’m trying to allow user input only 2 decimal numbers after dot like (43.448 == 43.44) so I created an input with the ngModel and binded to ngModelChange function
I create this.miktar as a variable and update it with the two digit decimal number when the user enters the third. This logic works fine. I get with alert(this.miktar);`` 44.54 like I want when I hit 44.546. But input doesn’t update and It shows me 44.546 . So I can’t prevent user to enter the third digit.
I think I need a different solution. Any ideas ? Thank you :’)