Web Component: Tangular-Counter
Tangular-Counter
This helper can create a short value from big numbers.
- jComponent
v19|v20
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));
Created
03. november 2018
Updated
06. april 2021
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com