title: Server Side Form Validation with Angular on the Client
body: <p>I currently have a project where I am converting the client-side stuff to Angular, as I like the bindings aspect of it. Currently, I am doing form validation at the server. After years of doing it at both client and server, I've found my preference is to do it by way of an AJAX request to the server. So, there's no client-side form validation, by design.</p>
  
  <p>It works a treat, with me being able to use jQuery to light up the form with any validation errors that are in the ModelState which is sent back down to the client as json.</p>
  
  <p>Now Angular. I want to keep this implementation, but I feel like I am fighting against the technology to do so. Angular seems to insist on client-side validation.</p>
  
  <p>Is there not a way to, upon receiving an AJAX response with validation errors, tell the Angular validation mechanism what is invalid so I can still just use server-side validation?</p>
  
  <p><strong>Edit</strong>
  I should include a link to a post which I based my implementation on - <a href="http://timgthomas.com/2013/09/simplify-client-side-validation-by-adding-a-server/" rel="nofollow">http://timgthomas.com/2013/09/simplify-client-side-validation-by-adding-a-server/</a> As you can see, it does not use Angular. It would be nice to take the Server-side aspects of it and get it working with AngularJs</p>
  
  <p>Thanks </p>