You can use deep watcher by setting deep: true
in the options object. This option enables us to detect nested value changes inside Objects.
1 2 3 4 5 | vm.$watch('someObject', callback, { deep: true }) vm.someObject.nestedValue = 123 // callback is fired |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.