0 votes
in VueJS by
What is Filters in Vue.js?

1 Answer

0 votes
by

Vue.js allows you to define filters that can be used to apply common text formatting. Filters are usable in two places: mustache interpolations and v-bind expressions (the latter supported in 2.1.0+). Filters should be appended to the end of the JavaScript expression, denoted by the “pipe” symbol:

<!-- in mustaches -->
{{ message | capitalize }}

<!-- in v-bind -->
<div v-bind:id="rawId | formatId"></div>

Related questions

0 votes
asked Oct 9, 2019 in VueJS by Indian
0 votes
asked Oct 7, 2019 in VueJS by Tate
...