Phone input with country list, country codes ..
npm install --save vue2-phone-input
npm install --save less-loader less
<script>
import vue from 'vue';
import PhoneInput from 'vue2-phone-input';
vue.component('phone-input', PhoneInput);
export default {
name: 'hello',
data() {
return {
phone: {
code: '',
number: ''
}
}
},
};
</script>
<template>
<div class="hello">
<phone-input :phone="phone"/>
</div>
</template>
Thanks to @sulieman-sh