Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue filter()

filters: {
  capitalize: function (value) {
    if (!value) return ''
    value = value.toString()
    return value.charAt(0).toUpperCase() + value.slice(1)
  }
}
Source by vuejs.org #
 
PREVIOUS NEXT
Tagged: #vue
ADD COMMENT
Topic
Name
5+5 =