浏览代码

Merge pull request #1432 from jonnitto/fix_dispatch_docu

Correct comment in code example from $dispatch
Caleb Porzio 4 年之前
父节点
当前提交
2712f50813
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/docs/src/en/magics/dispatch.md

+ 1 - 1
packages/docs/src/en/magics/dispatch.md

@@ -86,7 +86,7 @@ You can also take advantage of the previous technique to make your components ta
 <div x-data>
     <button @click="$dispatch('set-title', 'Hello World!')">...</button>
 </div>
-<!-- When clicked, will console.log "Hello World!". -->
+<!-- When clicked, the content of the h1 will set to "Hello World!". -->
 ```
 
 <a name="dispatching-to-x-model"></a>