title: Server Validation in angularjs
body: <p>i'm using ruby on rails in my backend and angularjs in my client side.</p>
  
  <p>here's a scenario i input same email in my form so in my console response a 422 (Unprocessable Entity) and said 'email was use'. it means my validation was good and working properly in my backend. </p>
  
  <p>my question is how can u get that response and put that in my view so user can see that email was already in use.</p>