title: RestAngular multiple scopes created top scopes populated others null
body: <p><strong>This is the code that I am using...</strong></p>
  
  <pre><code>var Agencyapp = angular.module('MainPage', ['restangular']);
  
  
  angular.module('MainPage').controller('AgenciesCtrl', function ($scope, Restangular) {
  
  Restangular.setBaseUrl('http://localhost/MappingServicesWebAPI/api');
  $scope.Agencies = Restangular.all("mapping").get();
  
  
  
  });
  </code></pre>
  
  <p>I am simple trying to return a list of agencID's and AgencyNames. 
  The Url is correct and when I paste it into Chrome it returns the correct data but I am getting the error "Unable to get property 'toString' of undefined or null reference"</p>
  
  <p>Not sure what I am doing wrong...</p>
  
  <p>I've changed my code to this...</p>
  
  <pre><code>var Agencyapp = angular.module('MainPage', ['restangular']);
  
  
  angular.module('MainPage').controller('AgenciesCtrl',['$scope','Restangular', function       ($scope, Restangular) {
  
  Restangular.setBaseUrl('http://localhost/MappingServicesWebAPI/api');
  Restangular.all('mapping');
  var baseAccounts = Restangular.all('mapping');
  baseAccounts.getList().then(function(gotAgencies){
      var _Agencies = gotAgencies[0];
      $scope.Agencies = _Agencies.getList('mapping');
  });
  
  
  }]);
  </code></pre>
  
  <p>Now i see multiple scopes the top 2 populated and the rest of the null,
  why would this be?</p>
  
  <p><strong>This is what the Scopes look like in chrome...</strong></p>
  
  <pre><code>&lt; Scope (002)
      &lt; Scope (003)
       &lt; Scope (006)
       &lt; Scope (007)
       &lt; Scope (008)
       &lt; Scope (009)
       &lt; Scope (00A)
       &lt; Scope (00B)
       &lt; Scope (00C)
       &lt; Scope (00D)
       &lt; Scope (00E)
       &lt; Scope (00F)
       &lt; Scope (00G)
       &lt; Scope (00H)
       &lt; Scope (00I)
       &lt; Scope (00J)
       &lt; Scope (00K)
       &lt; Scope (00L)
       &lt; Scope (00M)
       &lt; Scope (00N)
       &lt; Scope (00O)
       &lt; Scope (00P)
       &lt; Scope (00Q)
       &lt; Scope (00R)
       &lt; Scope (00S)
       &lt; Scope (00T)
       &lt; Scope (00V)
       &lt; Scope (00W)
       &lt; Scope (00X)
       &lt; Scope (00Y)
       &lt; Scope (00Z)
       &lt; Scope (010)
       &lt; Scope (011)
       &lt; Scope (012)
       &lt; Scope (004)
  </code></pre>
  
  <p>Scope 006 and 007 are populated with data the rest are null</p>