There is a problem only in the Firefox browser. When entering a number with three decimal places in input type = "number", Firefox converts it to an integer.

For example, we enter

0.555 

and AngularJS displays us

 555 

Code:

 <!DOCTYPE html> <html> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> <body> <div ng-app=""> <p>Input: <input type="number" ng-model="number"></p> <h1>Number {{number}}</h1> </div> </body> </html> 

In other browsers, everything works correctly. Is there any way to fix this problem without using input type = "text"?

0