A vuejs validator for .NET forms.
npm install @wouterflorijn/vue-dotnet-validatornpm install vue-dotnet-validator
JavaScript
import dotnetValidator from './dotnet-validator/dotnet-validator';
Vue.component('validator-group', dotnetValidator.validatorGroup);
Vue.component('validator', dotnetValidator.validator());
`
$3
The following code should be added to your cshtml forms. This makes sure that the validator logic is activated and adds the required references to DOM-nodes.
`HTML
`
#### Explanation of the cshtml changes:
This behaves as a container for the entire form, so we can maintain the state of the entire form and the validation status of the input fields in it.
v-on:submit="validate"
This adds an event listener to the