Skip to content

Translate: Add comments about $watch behavior with a function #1435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/v2/api/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: API
type: api
updated: 2018-12-26
updated: 2019-01-29
---

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