Skip to content

Commit a3b78be

Browse files
vuejs-jp-botpotato4d
authored andcommitted
Elaborate on what types of handlers are allowed in Array watchers (#1898) (#1358)
1 parent 439d539 commit a3b78be

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/v2/api/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,12 @@ updated: 2018-10-16
648648
immediate: true
649649
},
650650
e: [
651-
function handle1 (val, oldVal) { /* ... */ },
652-
function handle2 (val, oldVal) { /* ... */ }
651+
'handle1',
652+
function handle2 (val, oldVal) { /* ... */ },
653+
{
654+
handler: function handle3 (val, oldVal) { /* ... */ },
655+
/* ... */
656+
}
653657
],
654658
// vm.e.f の値を監視する: {g: 5}
655659
'e.f': function (val, oldVal) { /* ... */ }

0 commit comments

Comments
 (0)