title: can i inherit a parent controller's variables?
body: <p>Here is my code:</p>
  
  <pre><code>function ParentCtrl($scope) {
  $scope.people = ["Tom", "Dick", "Harry"];
  $scope.count = $scope.people.length;
  }
  
  function ChildCtrl($scope) {
  $scope.parentpeople = ParentCtrl.people //this is what I would like to do ideally
  }
  </code></pre>
  
  <p>I am nesting one angular <code>controller</code> inside of another one. I would like to pass variables of the first <code>controller</code> to the second one. Does anyone know how to do this?</p>
  
  <p><strong>NOTE</strong></p>
  
  <p>I cannot do something like</p>
  
  <pre><code>ChildCtrl.prototype = new ParentCtrl();
  </code></pre>
  
  <p>because I will overwrite the <code>people</code> property of the <code>ChildCtrl</code>.</p>