title: Angularjs, passing scope between routes
body: <p>I have a situation with a form that stretches over several pages (might not be ideal, but that is how it is). I'd like to have one scope for the entire form that gets filled in as you go along, so that if the user goes back and forth between steps it's easy to remember the state. </p>
  
  <p>So I need to do, in very-pseudo-code:</p>
  
  <ol>
  <li>Set <code>$scope.val = &lt;Some dynamic data&gt;</code></li>
  <li>Click a link and be routed to a new template (probably with the same controller). </li>
  <li><code>$scope.val</code> should still be the same value as it was on the last page.</li>
  </ol>
  
  <p>Is somehow persisting data for the scope the right way to go about this, or is there some other way? Can you even create a controller that has a persisted scope between routes, except for saving it in a database of course.</p>