Vue 3, launched in September 2020, deprecated filters used in Vue 2 for text and number formatting within templates. Instead, Vue 3 encourages the use of computed properties and methods for similar functionalities. Computed properties handle reactive data transformations, while methods perform non-reactive transformations. This shift improves the framework's consistency and reactivity. For global filters, the Vue migration documentation suggests utilizing global properties accessible throughout the application.

5m read timeFrom telerik.com
Post cover image
Table of contents
Filters in Vue 2Moving Away from Filters in Vue 3Wrap-up

Sort: