Skip to content

Commit cf6a47f

Browse files
committed
Merge pull request #242 from kazupon/improve/custom_directive
add params tip
2 parents 4e091e4 + 2a19cb5 commit cf6a47f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/guide/custom-directive.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ 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>
217+
216218
### deep
217219

218220
If your custom directive is expected to be used on an Object, and it needs to trigger `update` when a nested property inside the object changes, you need to pass in `deep: true` in your directive definition.

0 commit comments

Comments
 (0)