April 2017
Intermediate to advanced
454 pages
12h 51m
English
The first version of Vue came bundled with some text filters that helped format text and solve some common problems.
In this new version, there are no built-in filters (except the equivalent of the JSON filter covered in the next recipe). I think this is because it's very easy to write your own filter and also very easy to find online libraries that do a much better job in specialized situations. Finally, filters have somewhat changed purpose: they are more for post-processing now and less for actual filtering and sorting arrays.
To demonstrate how easy it is to create a filter, we will recreate a filter of the old version of Vue: capitalize.
Read now
Unlock full access