From d16e34a14f3b4959c556755748147056037f7b8f Mon Sep 17 00:00:00 2001 From: Komang Suryadana Date: Fri, 12 Jan 2018 10:46:40 +0700 Subject: [PATCH] Fix if use router link and component --- src/directive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directive.js b/src/directive.js index fefbed0..ea077ff 100644 --- a/src/directive.js +++ b/src/directive.js @@ -186,7 +186,7 @@ export default { expression: binding.value }; const args = arguments; - el[ctx].vm.$on('hook:mounted', function () { + el[ctx].vm.$on('hook:updated', function () { el[ctx].vm.$nextTick(function () { if (isAttached(el)) { doBind.call(el[ctx], args);