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

Not an issue #18

Closed rvizcaino80 closed 7 years ago

rvizcaino80 commented 7 years ago

Sorry, this is not an issue. I can not figure it out how to use it. This is my code:

import AwesomeMask from "awesome-mask"; new Vue({ el: "#my-vue-element", directives: { "mask": AwesomeMask } });

I get this: [Vue warn]: Property or method "mask" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option. (found in )

Thanks for your help.

gabemule commented 7 years ago

You should use it in your desired component, and use the directive in the template..

caioincau commented 7 years ago

https://github.com/moip/awesome-examples/blob/master/src/App.vue

You can check an example here @rvizcaino80