Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nuxt input mask

npm i v-mask

// Nuxt Config
plugins: [
    '~/plugins/v-mask.js',
  ],
  
 // /plugins/v-mask.js 
import Vue from 'vue'
import VueMask from 'v-mask'
Vue.use(VueMask);

 <input type="text" v-mask="'####-##'" v-model="myInputModel">
 
PREVIOUS NEXT
Tagged: #nuxt #input #mask
ADD COMMENT
Topic
Name
4+8 =