Skip to content

Commit 9de3fa4

Browse files
authored
Merge pull request vuejs#218 from schoonc/patch-4
Update index.md
2 parents 8870d64 + e2ff220 commit 9de3fa4

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
@@ -597,7 +597,8 @@ type: api
597597
data: {
598598
a: 1,
599599
b: 2,
600-
c: 3
600+
c: 3,
601+
d: 4
601602
},
602603
watch: {
603604
a: function (val, oldVal) {
@@ -609,6 +610,11 @@ type: api
609610
c: {
610611
handler: function (val, oldVal) { /* ... */ },
611612
deep: true
613+
},
614+
// коллбэк будет вызван сразу же после начала наблюдения
615+
d: {
616+
handler: function (val, oldVal) { /* ... */ },
617+
immediate: true
612618
}
613619
}
614620
})

0 commit comments

Comments
 (0)