Questions tagged [numeral.js]

A javascript library for formatting and manipulating numbers.

Homepage

49 questions
0
votes
1 answer

Using Vue with Tween JS makes tween sometimes reset

I'm trying to animate a counter that I've made with Vue.js. The value is being animated by Tween.js and then formatted with Numeral js but I'm having an issue. I'd like to increment by a random amount, and when I increment, animate the number from…
Djave
  • 8,595
  • 8
  • 70
  • 124
0
votes
1 answer

Zero padding in front using Numeral.js and Aurelia

I'm trying to build a basic Aurelia app. Suppose I got a data where id = 1. I can't seem to find a way to have 2 leading zero padding to my id using Numeral.js (http://numeraljs.com/). I have this code: #${book.number |…
Zhang
  • 11,549
  • 7
  • 57
  • 87
0
votes
0 answers

Javascript error from numeral.js when minified

I am getting this javascript error from numeral.js (1.5.3) when our js files are minified. Uncaught TypeError: Cannot read property 'length' of undefined. Since it's minified I am not exactly sure on what line the error is, but when I click on the…
user471317
  • 1,231
  • 2
  • 22
  • 35
-2
votes
2 answers

Polymer 1.x: How to format a number while typing it into paper-input?

TL;DR: I want my numbers to look like 1,500 (not 1500) when entering it in an
Let Me Tink About It
  • 15,156
  • 21
  • 98
  • 207
1 2 3
4