Help with Mask Policy for numbers with 4 decimal places in AngularJS

1

I want to make a number directive in angularJS with two features, one to format when entering a number in an html input.

Example of how you would like to:
1,200,0000
      12.000,0000
      120,000.0000

and the other to limit the decimal places to 4 houses after the comma.

Does anyone have an idea?

    
asked by anonymous 25.02.2016 / 21:31

1 answer

0

You can use the ng-currency library with this library you can format your decimal places. Here is a simple example of how to use the library.

    
26.02.2016 / 12:52