#30daysofVue - Day 10 - Watchers

When you want to observe and react to data changes, you need watchers.

It is almost similar to computed but there are some differences.

Computed properties are by default get only, but you can also define a set method for computed properties to make changes to another property, thereby making it a two-way function.

Watchers are by default two-way functions.

This is most useful when you want to perform asynchronous or expensive operations in response to changing data.

Eg. calling an api whenever your data changes, popular example autoSave

You can find me on some social media

Also check out my Instagram feed