The video for this lesson is currently being updated, please read the transcript instead.

Understanding filters

Another important feature of Vue is filters. Filters are functions that will transform Vue data for use in the DOM.

For that reason, they're usually used in interpolations or in v-bind expressions.

Let's have an example.

Imagine we have a data property called message which is a string.

We want to transform that string by capitalizing the first letter. So we create a filter called capitalize.

To view the complete lesson you'll need to login or join this course.


Click to load comments...