title: Using $scope in ui-router resolve
body: <p>I am using ui-router resolve in order to get some data from a service.</p>
  
  <p>The thing is that I need to get a value from the parent $scope in order to call the service as shown bellow. </p>
  
  <pre><code>resolve: {
                contactService: 'contactService',
                contacts: function ($scope, contactService) {
                    return contactService.getContacts($scope.parentCtrl.parentObjectId);
                }
            }
  </code></pre>
  
  <p>I keep getting <code>Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!</code></p>
  
  <p>Also tried a few desperate attempts such as adding scope to the resolve object as shown bellow with not success.</p>
  
  <pre><code>scope: $scope
  </code></pre>
  
  <p>Any ideas?</p>