Skip to content

Commit 90035ac

Browse files
oohirapotato4d
authored andcommitted
Translate: Add comments about $watch behavior with a function #1396 (#1435)
* translate vuejs/v2.vuejs.org@4b816e2
1 parent c1009b4 commit 90035ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/v2/api/index.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: API
33
type: api
4-
updated: 2018-12-26
4+
updated: 2019-01-29
55
---
66

77
## グローバル設定
@@ -1488,9 +1488,9 @@ updated: 2018-12-26
14881488
// 関数
14891489
vm.$watch(
14901490
function () {
1491-
// everytime the expression `this.a + this.b` yields a different result,
1492-
// the handler will be called. It's as if we were watching a computed
1493-
// property without defining the computed property itself
1491+
// `this.a + this.b` が異なる結果を返すたびに、ハンドラが呼び出されます。
1492+
// これは、算出プロパティを定義することなしに、その算出プロパティを監視している
1493+
// ようなものです。
14941494
return this.a + this.b
14951495
},
14961496
function (newVal, oldVal) {

0 commit comments

Comments
 (0)