title: Angular Bootstrap uibModal not resolve attributs
body: <p><strong>Roles</strong> property not resolve in AngularJS bootstrap uiModel. </p>
  
  <pre><code>var modalInstance = $uibModal.open({
    animation: $scope.animationsEnabled,
    templateUrl: 'myModalContent.html',
    controller: 'ModalInstanceCtrl',
    size: 100,
    resolve: {
      roles: function () {
           return $scope.roles;
      }
    }
  });
  </code></pre>
  
  <p>See ngRepeat code which read the value of <strong>Roles</strong> and making dom elements.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;ul&gt;
        &lt;li ng-repeat="item in roles"&gt;
             &lt;a href="#" ng-click="$event.preventDefault(); selected.item = item"&gt;{{ item.name }}&lt;/a&gt;
        &lt;/li&gt;
   &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>Also error shows on console</strong> : Error: [$injector:unpr] Unknown provider: itemsProvider &lt;- items &lt;- ModalInstanceCtrl</p>