title: Does it affect Angular performance to have everything in scope?
body: <p>I was wondering if anyone has advice for the usage of $scope vs plain JavaScript objects when inside a module. For instance I have some variables in a controller that I am attaching to $scope for my convenience but they could just be a regular object inside the controller without any functional difference. </p>
  
  <p>My question is does it affect performance when Angular enters a digest cycle to have everything in scope?</p>
  
  <p>Is this :</p>
  
  <pre><code>$scope.viewpanel = {};
  $scope.viewpanel.date = new Date();
  $scope.viewpanel.day = $scope.viewpanel.date.format('d');
  $scope.viewpanel.week = $scope.viewpanel.date.format('W');
  $scope.viewpanel.month = $scope.viewpanel.date.format('m');
  $scope.viewpanel.year = $scope.viewpanel.date.format('o');
  </code></pre>
  
  <p>better or worse than this :</p>
  
  <pre><code>var viewpanel ={};
  viewpanel.date = new Date();
  viewpanel.day = viewpanel.date.format('d');
  viewpanel.week = viewpanel.date.format('W');
  viewpanel.month = viewpanel.date.format('m');
  viewpanel.year = viewpanel.date.format('o');
  </code></pre>