Skip to content

Commit 4d43757

Browse files
Add created hook to custom directives code example (#1054)
1 parent 1c3f103 commit 4d43757

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
@@ -52,6 +52,7 @@ The final API is as follows:
5252

5353
```js
5454
const MyDirective = {
55+
created() {}, // new
5556
beforeMount(el, binding, vnode, prevVnode) {},
5657
mounted() {},
5758
beforeUpdate() {}, // new

0 commit comments

Comments
 (0)