Oct 7, 2019 in Vue.JS
Q: What is Filters in Vue.js?

1 Answer

0 votes
Oct 7, 2019

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>
Click here to read more about Vue JS
Click here to read more about Insurance