when I use ngx-mask
in angular, it automatically deletes .0 when server response 1.0, ex: 1.0 => 1
So I want to prevent this.
1.0 keep 1.0 not 1
when use ngx-mask
when I use ngx-mask
in angular, it automatically deletes .0 when server response 1.0, ex: 1.0 => 1
So I want to prevent this.
1.0 keep 1.0 not 1
when use ngx-mask
If you are consistent with decimal points then you can consider using number pipe. Good luck!
Here is the example if you are using [(ngModel)]. Working example