[Vuejs]-Vue2 how to watch a global prototype

0👍

You do not need $root or quotes ” around it, unless you are trying to watch '$onWindowLoad.property'.

If $onWindowLoad is an object you can use deep: true to watch for its properties.

More on that here: “vuejs watch object”

Leave a comment