Closed ikristher closed 8 years ago
I recommend that you should use the state management architecture as flux / reduex, because if you use validation result from outside component or outside vm, your application become complex.
the following the vuex example code:
<input v-validate:msg @valid="updateValidMessage">
// ...
methods: {
updateValidMessage: function () {
store.actions.updateValidMessage('msg', true)
}
}
References:
Close (inactivity)
How can I get the $validator inside a sub component from my root component or root vm.
Thanks