TangularCounter

This helper can create a short value from big numbers.

Live preview

Open in new tab ↗

This helper can create a short value from big numbers.

Thelpers.counter([value], [decimals]);
// @value {Number} a value
// @decimals {Number} optional, count of decimals (default: `0`)

Outputs:

  • 10 K
  • 1 024
  • 1 M

Usage:

<h1>{{ name }}</h1>
<div>{{ userscount | counter }}</div>

or

console.log(Thelpers.counter(134000));

More UI components

Browse all 348