title: Where does the business logic lies in angularjs?
body: <p>Let's say on click of a button(in the view), the requirement is: to fetch the data from the server.
  I am confused whether or not the business logic to </p>
  
  <p><strong>i)</strong> fetch the data and </p>
  
  <p><strong>ii)</strong> validation of it should be done inside the controller or inside the factory(or service) </p>
  
  <p>Should it be placed in the factory or in the controller?
  Please help!!</p>