Angular UI Bootstrap: not loading templates
<p>I am using Angular UI Bootstrap v1.0.3 with templates included (I chose include templates, I can see the *tpls modules in the source code), yet when I open a modal like this (from within <code>app.run(...)</code>):</p>

<pre><code>var type = "sometype";
$uibModal.open({
    templateUrl: "/partials/" + type + "-dialog.html",
});
</code></pre>

<p>I get an error: </p>

<pre><code>angular.min.js:93 GET http://.../uib/template/modal/backdrop.html?sessionid=363192 404 (Not Found)(anonymous function) @ angular.min.js:93r @ angular.min.js:89g @ angular.min.js:86(anonymous function) @ angular.min.js:119r.$eval @ angular.min.js:133r.$digest @ angular.min.js:130r.$apply @ angular.min.js:134g @ angular.min.js:87T @ angular.min.js:92w.onload @ angular.min.js:93 angular.min.js:107

Error: [$compile:tpload] http://errors.angularjs.org/1.4.8/$compile/tpload?p0=uib%2Ftemplate%2Fmodal%2Fbackdrop.html&amp;p1=404&amp;p2=Not%20Found at Error (native)
</code></pre>

<p>I tried adding the template manually to my code and added the following code to the top of my app.js:</p>

<pre><code>angular.module("template/modal/backdrop.html", []).run(["$templateCache", function($templateCache) {
     $templateCache.put("template/modal/backdrop.html", "&lt;div class=\"modal-backdrop\"&gt;&lt;/div&gt;");
}]);
</code></pre>

<p>still the same error</p>