April 2017
Intermediate to advanced
454 pages
12h 51m
English
In this recipe, we used an option called watch, which uses the following syntax:
watch: { 'name of sate variable' (newValue, oldValue) { ... } }
This is the counterpart of computed properties when we are not interested in a result after some reactive variable changes. As a matter of fact, we used it to just fire another method. Had we been interested in the result of some calculations, we would have used a computed property.
Read now
Unlock full access