niksmr / vue-masked-input

Masked input component for Vue.js
https://niksmr.github.io/vue-masked-input/
MIT License
454 stars 93 forks source link

Property or method "rawVal" is not defined #31

Open psprokofiev opened 6 years ago

psprokofiev commented 6 years ago

hi, that is code <masked-input mask="\+\1 (111) 1111-11" placeholder="Phone" @input="rawVal = arguments[1]" /> that is warning in console

[Vue warn]: Property or method "rawVal" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.

and in request will sending not raw phone, but '+1 (111) 1111-11' format

paladosss commented 6 years ago

console.log(this.rawVal);