8000 edit directive param note · louwers/vuejs.org@04d2cce · GitHub
[go: up one dir, main page]

Skip to content

Commit 04d2cce

Browse files
committed
edit directive param note
1 parent cf6a47f commit 04d2cce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/custom-directive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ Vue.directive('example', {
213213
})
214214
```
215215

216-
<p class="tip">Note you need to use their camel-case at `paramWatchers`, when using kebab-case attributes. For example, if you have defined the attribute like `disable-effect`, you need to set `disableEffect` to `paramsWatchers`.</p>
216+
<p class="tip">Note that similar to props, directive params follow the same camelCase <=> kebab case mapping between JavaScript and HTML. For example, for a param used as `disable-effect` in the template, you need to access it as `disableEffect` in JavaScript.</p>
217217

218218
### deep
219219

0 commit comments

Comments
 (0)
0