title: Why does resolve not function as I expect in angular-strap?
body: <p>I have been attempting to shift from ui-angular to angular-strap.  I first shifted to using bs-tooltip instead of tooltip.  This part is working fine.  Next I attempted to shift my modals and here I am stuck!!! I have been attempting to inject my data into the controller as follows:</p>
  
  <pre><code>var myModal = $modal({
  templateContent: 'addTask.html',
  controller: 'ModalInstanceCtrl2',
  show: false,
  resolve: {
      function () {
        return {
          data: new Promise(function (resolve, reject) {
            resolve({
              task: newTask,
              getStar: $scope.getStar,
              setPriority: userCondition.setTaskPriority,
              finish: function(arg) {
                console.log(arg);
              }
            }); 
          })
        };
      }
    }
  });
  
  myModal.$promise.then(function() {
    myModal.show();
  });
  </code></pre>
  
  <p>where my controller <code>ModalInstanceContrl2</code> is:</p>
  
  <pre><code>angular.module('...')
   .controller('ModalInstanceCtrl2', ['$scope', '$modal', 'data',
      function($scope, $modal, data) {
  
        console.log(data);
  
        $scope.ok = function () {
          $modal.close();
        };
  
        $scope.cancel = function () {
          $modal.dismiss('cancel');
        };
  
        $scope.data = data;
  
     }]);
  </code></pre>
  
  <p>Yet no matter how I seem to manipulate this 'resolve', I always see:</p>
  
  <pre><code>Error: [$injector:unpr] Unknown provider: dataProvider &lt;- data &lt;- ModalInstanceCtrl2
  </code></pre>
  
  <p>And the only model for this that I understand comes from ui-angular.  So even though angular-strap seems to talk about having checked in code to recognize 'resolve', in doesn't see to be in the current release???</p>
  
  <p>So I am clueless about how to actually inject data into the controller.  Could someone help??? Thanks!!!!  </p>