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”
Source:stackexchange.com