Use Quotes to Watch Nested Values

You may not have known this, but you can easily watch nested values directly, just by using quotes:

watch: {
'$route.query.id'() {
// ...
}
}

This is really useful for working with deeply nested objects!

Want to level up your Vue skills?

With over two million reads and 11,067 subscribers, you've come to the right place.

Subscribe now to get exclusive insights and tips every week.