title: Uncaught Error: [$injector:modulerr] Failed to instantiate module showsApp due to: Error: [ng:areq] Argument 'fn' is not a function, got string
body: <p>I am trying to set up a modal but I keep getting this error. </p>
  
  <pre><code>var showsApp = angular.module('showsApp', ['angularUtils.directives.dirPagination'],['ui.bootstrap']);
  
  showsApp.controller('ShowsController',  ['$scope', '$http', function($scope, $http, $uibModal, $log, $document)
  {
     var $ctrl = this;
  }]);
  
  &lt;div ng-app='showsApp' ng-controller='ShowsController as $ctrl' class='modal'&gt;
  
  &lt;script src='js/angular/angular.js'&gt;&lt;/script&gt;
  &lt;script src='js/angular/ui-bootstrap-tpls-2.5.0.min.js'&gt;&lt;/script&gt;
  &lt;script src='js/angular/angular-route.js'&gt;&lt;/script&gt;
  &lt;script src='js/jquery.js'&gt;&lt;/script&gt;
  &lt;script src='//ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-animate.js'&gt;&lt;/script&gt;
  &lt;script src='//ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-sanitize.js'&gt;&lt;/script&gt;
  &lt;script src='//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-2.5.0.js'&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I am following this plunker to set it up <a href="https://plnkr.co/edit/?p=preview" rel="nofollow noreferrer">https://plnkr.co/edit/?p=preview</a> which I found on the angular site.</p>