Answers for "vue tel input"

0

vue tel input

>>>url: https://github.com/iamstevendao/vue-tel-input?ref=morioh.com
>>>install: npm install vue-tel-input

 ***************** In vue ************
 
 import Vue from 'vue';
 import VueTelInput from 'vue-tel-input';
 import 'vue-tel-input/dist/vue-tel-input.css';

 Vue.use(VueTelInput);
 
 <template>
  <vue-tel-input v-model="phone"></vue-tel-input>
</template>

************************* in NUXT JS ***************
<script>
import {VueTelInput} from 'vue-tel-input';
import 'vue-tel-input/dist/vue-tel-input.css';
export default {
    components:{ VueTelInput },
    }
    
<template>
  <vue-tel-input v-model="phone"></vue-tel-input>
</template>
Posted by: Guest on August-06-2021

Browse Popular Code Answers by Language