From 0f8ec85315040233b19c21523ea74b42a3c55eba Mon Sep 17 00:00:00 2001 From: Kushal Billaiya Date: Sat, 15 May 2021 19:49:56 +0530 Subject: [PATCH] Add created hook to custom directives code example --- src/guide/migration/custom-directives.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/guide/migration/custom-directives.md b/src/guide/migration/custom-directives.md index fbcb80f072..a9da741bb0 100644 --- a/src/guide/migration/custom-directives.md +++ b/src/guide/migration/custom-directives.md @@ -52,6 +52,7 @@ The final API is as follows: ```js const MyDirective = { + created() {}, // new beforeMount(el, binding, vnode, prevVnode) {}, mounted() {}, beforeUpdate() {}, // new