Skip to content

Commit dde73d0

Browse files
committed
Add created hook to custom directives code example
vuejs/docs@4d43757
1 parent 37e0109 commit dde73d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/guide/migration/custom-directives.md

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Vue.directive('highlight', {
5353

5454
```js
5555
const MyDirective = {
56+
created() {}, // new
5657
beforeMount(el, binding, vnode, prevVnode) {},
5758
mounted() {},
5859
beforeUpdate() {}, // 追加

0 commit comments

Comments
 (0)