Vue.filter('percentageFormat', require('./filters/percentageFormatter'));
Default (2 decimal places)
{{ amount | percentageFormat }}
Specify decimal places
{{ amount | percentageFormat(4) }}
Vue.filter('humanFileSize', require('./filters/humanFileSize'));
Default
{{ filesizeInBytes | humanFileSize }}
Vue.filter('truncateText', require('./filters/truncateText'));
Default
{{ textToTruncate | truncateText(100) }}
Vue.filter('slugify', require('./filters/slugifyText'));
Default
{{ textToSlugify | slugify }}
Vue.filter('html', require('./filters/html'));
Escape
{{ htmlToEscape | html('escape') }}
Unescape
{{ htmlToUnescape | html('unescape') }}