Fixing .NET validation using vue.js
On including the vue-dotnet-validator in your project.
Recently, we’ve created the website for Nederlandse Loterij. This website contains static pages and multiple forms for account management as well as some more dynamic features. We decided to use vue.js as a client-side framework.
Solving the validation problem
And here we encountered a problem: validation. The .NET Core framework includes a powerful set of validation features. The major advantage of using these .NET validation attributes is that validation rules are only present in the .NET Model of the form, but are validated on both the server and the client.
The vue-dotnet-validator library supports quite some of the native .NET validation attributes and has been written to be easily extendible with custom validators so it can be used in any Razor rendered form.
For more info about including the vue-dotnet-validator in your own project, see the github page.