title: My Angular ui modal cant find the template
body: <p>here is my app , trying to use UI modal, but when the modal function cant find the html template. i can console log inside the function, but cant open a modal view.</p>
  
  <pre><code> var app = angular.module('myApp', [
          'angularUtils.directives.dirPagination',
  
      'ui.bootstrap'
      ]);
  
  
      app.controller('galleryCtrl', ['$scope', '$http', function ($scope, $http) {
  
      }]).
      controller('ModalInstanceCtrl',['$scope','$modal',function($scope, $modalInstance){
  
      }]).
      directive('myGallery', function ($http,$modal) {
          return {
              restrict: 'E',
              scope: {
                  feed: '@',
                  search: '=?',
                  resultsPerPage: "=?",
                  sorting: "=?"
              },
              templateUrl: './MyGallery.tpl.html',
              link: function (scope, element, attrs) {
  
  
                  scope.search = scope.search || true;
                  scope.sorting = scope.sorting || true;
                  scope.resultsPerPage = scope.resultsPerPage || 10;
  
                  console.log(scope.resultsPerPage);
  
                  scope.openModal = function() {
  
  
                      var modalInstance = $modal.open({
                          templateUrl: '/views/modal.html',
                          controller: 'ModalInstanceCtrl'
                      });
                  };
  </code></pre>
  
  <p>in the html: </p>
  
  <pre><code>&lt;div class="imgs"&gt;
      &lt;ul&gt;
          &lt;li dir-paginate="img in imgs
          | filter:query
          | itemsPerPage: resultsPerPage.value || 10 "&gt;
                 &lt;a href=""&gt;&lt;img ng-src="{{img.url}}" ng-click="openModal()"&gt;&lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and this is what i get :</p>
  
  <pre><code> GET http://localhost:63342/views/modal.html 404 (Not Found)
  </code></pre>
  
  <p>the path is 100% correct , so if u guys can see what is the problem.</p>