maniekzsk8
462
3
Vue

intl-tel-input problem

Posted 2 years ago by maniekzsk8

Hi guys, today I import a npm intl-tel-input package to my project and try to use in directive. I import this package with: require('intl-tel-input');

and my directive: Vue.directive('intltelinput', { bind: function (el) { $(el).intlTelInput(); }, });

but when page is complete loaded I dont see on input this plugin, when I use $(elem).intlTelInput() in console its works. Can anyone help me with this problem? thanks!

Please sign in or create an account to participate in this conversation.