Capitalize filter

This commit is contained in:
Eliot Berriot 2018-02-22 23:34:24 +01:00
parent dac47da584
commit 2cd90ff4bd
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
2 changed files with 14 additions and 1 deletions

View file

@ -28,4 +28,10 @@ export function ago (date) {
Vue.filter('ago', ago)
export function capitalize (str) {
return str.charAt(0).toUpperCase() + str.slice(1)
}
Vue.filter('capitalize', capitalize)
export default {}