We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39654f0 commit b170627Copy full SHA for b170627
src/api/options-data.md
@@ -190,11 +190,12 @@
190
c: {
191
d: 4
192
},
193
- e: 'test',
194
- f: 5
+ e: 5,
+ f: 6
195
}
196
197
watch: {
198
+ // watching top-level property
199
a(val, oldVal) {
200
console.log(`new: ${val}, old: ${oldVal}`)
201
@@ -207,6 +208,10 @@
207
208
209
deep: true
210
211
+ // watching a single nested property:
212
+ 'c.d': function (val, oldVal) {
213
+ // do something
214
+ },
215
// the callback will be called immediately after the start of the observation
216
e: {
217
handler(val, oldVal) {
0 commit comments