Skip to content

Commit cc768c5

Browse files
schooncchrisvfritz
authored andcommitted
Update index.md (vuejs#1201)
1 parent a7b6d9e commit cc768c5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/v2/api/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,8 @@ type: api
595595
data: {
596596
a: 1,
597597
b: 2,
598-
c: 3
598+
c: 3,
599+
d: 4
599600
},
600601
watch: {
601602
a: function (val, oldVal) {
@@ -607,6 +608,11 @@ type: api
607608
c: {
608609
handler: function (val, oldVal) { /* ... */ },
609610
deep: true
611+
},
612+
// the callback will be called immediately after the start of the observation
613+
d: {
614+
handler: function (val, oldVal) { /* ... */ },
615+
immediate: true
610616
}
611617
}
612618
})

0 commit comments

Comments
 (0)