0👍
So did you tried to call @blur="yourValidationMethod"
on your input box inside <template>
?
Then define your validation method after data()
initialization under <script>
.
.
.
methods:{
yourValidationMethod(){
// Your validation codes here, triggered once 'blur' event
}
}
Did tested with simple @blur
validation, so it worked.
- [Vuejs]-Why does the router link not work the first time?
- [Vuejs]-How do you properly dispatch an action in vuex? Getting error [vuex] unknown action type in Chrome
Source:stackexchange.com