title: Pass current scope to modalInstance when using controllerAs syntax
body: <p>I'm using controllerAs syntax to avoid a $scope soup in my controllers, and also using ui.bootstrap to present a modal view.  </p>
  
  <p>I need to open a modalInstace that shares the same scope as the current controller.  When injecting the scope, you could probably do something like:</p>
  
  <pre class="lang-js prettyprint-override"><code>var modalInstance = $uibModal.open({
        templateUrl: 'addEditModal.html',
        scope: $scope
      });
  </code></pre>
  
  <p>However as I'm not injecting the scope, and using controllerAs syntax, that will not work.</p>
  
  <p>From what I've found, you will need to use resolve to pass the data, but you have to pass it explicitly via functions.   Is there a way to pass the entire scope?   </p>
  
  <p>There is a bunch of stuff I need to do in that modal and passing loads of data seems overkill.</p>
  
  <p>Don't want to do this, as it seems messy...</p>
  
  <pre class="lang-js prettyprint-override"><code>var modalInstance = $modal.open({
    templateUrl: 'myModalContent.html',
    controller: 'ModalInstanceCtrl',
    resolve: {
      user: function() {
          return vm.user;
      },
      something: function() {
          return vm.something;
      },
      blah: function() {
          return blah;
      }
    }
  });
  </code></pre>
  
  <p>Any better ideas?</p>