Input should not accept a number with more than N decimal places. N is defined as Input.
For example, if N=3 and the user want to enter 123.3456. He should only be allowed to enter 123.345.
I would like to ahieve something like this:
<input type="number" [(ngModel)]="value" nDecimalsInput [decimals]="2">
Via directive or whatever else...