Watch for Changes in Vue Using the @Watch Decorator with TypeScript

Share this video with your friends

Send Tweet

Vue watchers allow to perform async updates as a side effect of a property change. This lesson shows you how you can watch properties on your class based component and how to use the @Watch decorator for it.

Xander
Xander
~ 6 years ago

For some reason and I double-checked everything -- the last portion of the exercise -- {deep: true} -- gives me the same value for old and new. Is that expected in this situation?