I am creating a single page web application. This has many different forms that will require verification. I do not use Razor form validation or submission. Instead, everything is stored in Angular templates.
I get my data from the server using Web Api calls, including lists of form elements, as many of these forms are dynamic.
I would prefer that my models retain all the validation. I know that I can duplicate this check on my Angular templates for forms that are not dynamic, but this means that validation must be supported in two places - I would prefer to keep it in one place, on my model, so that the client and server check built into each other.
What would be the best way to extract validation on my model and use it in the interface?
source share