title: AngularJS client MVC pattern?
body: <p>Until now I was mainly using <code>Struts 2</code>, <code>Spring</code>, <code>JQuery</code> technology stack for building web applications. The point is, that mentioned stack uses server side <code>MVC</code> pattern.  The main role of web browsers was limited to a request/response cycle (+ client side validation). Data retrieval, business logic, wiring and validation were mainly responsibilities of the server side.</p>
  <p>I have few questions regarding <em>AngularJS</em> framework that were inspired by following quotes I've read:</p>
  <hr />
  <p>From the <a href="http://docs.angularjs.org/tutorial/step_02" rel="nofollow noreferrer"><em>AngularJS tutorial</em></a>:</p>
  <blockquote>
  <p>For Angular apps, we encourage the use of the Model-View-Controller
  (MVC) design pattern to decouple the code and to separate concerns.</p>
  </blockquote>
  <p>From the <em><a href="http://en.wikipedia.org/wiki/Model%E2%80%93View%E2%80%93Controller" rel="nofollow noreferrer">Wikipedia Model–view–controller</a></em>:</p>
  <blockquote>
  <p>Model–View–Controller (MVC) is an architecture that separates the
  representation of information from the user's interaction with
  it. The model consists of application data and <strong>business rules</strong>,
  and the controller mediates input, converting it to commands for the
  model or view</p>
  </blockquote>
  <hr />
  <p><em>AngularJS</em> uses client side <code>MVC</code> pattern. So I guess there is no other option then to include validation logic also to the client side in some way?</p>
  <p><strong>What would be the best way to write a robust AngularJS application? MVC on client side and some kind  of MC (model, controller) on server side?</strong></p>
  <p>Does that mean, that MODEL and CONTROLLER are in one way duplicated (client/server)?</p>
  <p>I know my question is somehow weird, but I think the reason is, that I am somehow acustomed to traditional server side MVC pattern. I am sure there is someone, that have already done same transition.</p>