title: angular accessing modal parent controller
body: <p>I'm using ui-router with $modal and my set up is like this in my routing page:</p>
  
  <pre><code>.state('resourcesControl.resource.dataStuff', {
          url: "/:resourceId/dataStuff",
          onEnter: ['$stateParams', '$state', '$modal', '$timeout', 'resourceService', function($stateParams, $state, $modal, $timeout, resourceService){
  
              var modalInst = $modal.open({
                  templateUrl: "templates/dataStuff.html",
                  windowClass: 'data-modal',
                  controller: 'dataStuffCtrl'
              });
  
              modalInst.result.then(function(){
  
              }, function(){
                  $state.go('resourcesControl.resource');
              });
          }]
      })
  </code></pre>
  
  <p>My understanding with UI router is that all the child states have access to their parents controller and scope variables. In theory my dataStuffCtrl should have access to resource and resourcesControl controllers and their scopes.</p>
  
  <p>However, when I wrap curly brackets around a parent scope item in the dataStuff view, nothing renders. Is there a way around this? I remember seeing other people posting about parent controllers with $modal but I can't find them on SO atm.</p>