title: Failed to load template: uib/template/modal/window.html
body: <p>I feel like i have attempted everything and i still get the error:</p>
  
  <blockquote>
    <p>Failed to load template: uib/template/modal/window.html </p>
  </blockquote>
  
  <p>in my index file i have added the following:</p>
  
  <pre><code>&lt;script src="node_modules/angular-ui-bootstrap/dist/ui-bootstrap.js"&gt;&lt;/script&gt;
  &lt;script src="node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>in my app file ive added:</p>
  
  <pre><code>    'ui.bootstrap', 
  </code></pre>
  
  <p>And in my controller file ive added the following:</p>
  
  <pre><code>$uibModal
  </code></pre>
  
  <p>and</p>
  
  <pre><code>this.openPayment = function () {
      var modalInstance = $uibModal.open({
          ariaLabelledBy: 'modal-title',
          ariaDescribedBy: 'modal-body',
          templateUrl: 'payment.html',
          controller: 'paymentController',
          controllerAs: '$ctrl',
          size: 'lg',
      });
  }
  </code></pre>
  
  <p>in my <code>paymentController</code> i have added the following:</p>
  
  <pre><code>angular.module('Payment').controller('paymentController', function ($uibModalInstance) {
      var ctrl = this;
  });
  </code></pre>
  
  <p>And <code>payment.html</code>:</p>
  
  <pre><code>    &lt;div class="modal-header"&gt;
      &lt;h3 class="modal-title" translate="ACADEMY.EDIT.COURSES.CREATE"&gt;&lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="modal-body"&gt;
  &lt;/div&gt;
  &lt;div class="lb-modal-footer"&gt;
      &lt;a class="btn btn-grey" tooltip="{{ 'TOOLTIP.CANCEL' | translate }}" ng-click="CTRL.cancel()"&gt;&lt;i
              class="fa fa-ban"&gt;&lt;/i&gt;&lt;/a&gt;
      &lt;button class="btn btn-success m-l-xs {{CTRL.academyCourse.course ? '':'disabled'}}" tooltip="{{ 'TOOLTIP.SAVE_AND_EXIT' | translate }}" ng-click="CTRL.addCourse()"&gt;&lt;i
              class="fa fa-check-square-o"&gt;&lt;/i&gt;&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>So can anyone tell me what ive done wrong?</p>