title: passing data from list view to detail view in angular.js
body: <p>I have a typical CRUD app with separate routes and controllers for the list view as well as the detail views.</p>
  
  <p>The data for the list is retrieved using a <code>$resource</code>.</p>
  
  <p>Currently in my detail view controller I fetch the item from the server using the <code>$resource</code> which results in an extra http request.</p>
  
  <p>Instead, since in my list controller I already have the item that I am editing, I would like to pass this item from the list controller to the detail controller.</p>
  
  <p>But I do not know how. I can make one single controller for both views but this does not seem right.</p>
  
  <p>Please help.</p>