Aug 12, 2015; 11:35
deco rior
[ANGULAR]Fixing an annoying behaviour of showing decimals in input values
Hi, All:
Another angular tidbit
Angular insists on rounding the values when it can. It is easy to address this in a display with {{price | number:2}}
But when you do this in an input box it gets ugly i..e angular error
ng-model=“price | number:2”
However, I found this directive which seems to work great
http://jsfiddle.net/2akaxojg/ <http://jsfiddle.net/2akaxojg/>
So
<input ng-model=“price” input-currency>
will display 2.00
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>