wirecardBrasil / awesome-mask

The awesome-mask runs with Vue.js and uses the vanilla-masker to make your form awesome with masks.
MIT License
165 stars 22 forks source link

How do i import awesome-mask on my project? #5

Closed firminoweb closed 7 years ago

firminoweb commented 7 years ago

The README file has only example ways to use it, but, has no the basic information about import that.

import * from 'awesome-mask' ?
import awesomeMask from 'awesome-mask'
//
Vue.use(awesomeMask) ??

Thanks!

guigmaster commented 7 years ago
import Hello from './components/Hello'
import AwesomeMask from 'awesome-mask'

export default {
  name: 'app',
  components: {
    Hello
  },
  directives: {
    'mask': AwesomeMask
  }
}
firminoweb commented 7 years ago

@guigmaster Works! thank you!!

caioincau commented 7 years ago

Closed :) Thanks @deividmarques