AngularJS xeditable floating-point numeric field

I have a problem with AnularJS. If i use xeditable

<a editable-number="some.object".... 

I can't enter floating point numbers ... so how can I add floating point numbers and have floating point validation?

thanks!

+8
angularjs html5
source share
1 answer

You need to set the step attribute of the <input type="number"> to "any".

One way to solve this problem is to use the xeditable e-* syntax, where any attribute that you specify that starts with e- will be passed to the base input tag:

 <a editable-number="some.object" e-step="any">{{some.object || 'Enter Number'}}</a> 
+17
source share

All Articles