title: angularjs Error: [$compile:tpload] Failed to load template
body: <p>I am trying to build simple routing app in angularjs. I have main index.html page with ng-view div and javascript code for routing. Also 2 simple html pages view2.html and view3.html placed in sub folder partials1.
  I am getting below error. Please help.</p>
  
  <p><strong>Error: Access is denied.
  Error: [$compile:tpload] Failed to load template: partials1/view3.html
  <a href="http://errors.angularjs.org/1.3.15/" rel="noreferrer">http://errors.angularjs.org/1.3.15/</a>$compile/tpload?p0=partials1%2Fview3.html</strong></p>
  
  <ul>
  <li><p><strong>index.html:</strong></p>
  
  <p>
  
  
  
  
  </p>
  
  <pre><code>&lt;div data-ng-view&gt;&lt;/div&gt;
  
  &lt;script src="angular.js"&gt;&lt;/script&gt;
  &lt;script src="angular-route.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      var demoApp = angular.module('demoApp', [ 'ngRoute' ]);
      demoApp.controller('SimpleController', function($scope) {
          $scope.customers = [ {
              name : 'Jon Smith1',
              city : 'Charlotte'
          }, {
              name : 'John Doe',
              city : 'New York'
          }, {
              name : 'Jane Doe',
              city : 'Jacksonville'
          } ];
      });
  
      demoApp.config([ '$routeProvider', function($routeProvider) {
          $routeProvider.when('/view1', {
              templateUrl : 'partials1/view3.html',
              controller : 'SimpleController'
          }).when('/view2', {
              templateUrl : 'partials1/view2.html',
              controller : 'SimpleController'
          }).otherwise({
              redirectTo : '/view1'
          });
      } ]);
  &lt;/script&gt;
  </code></pre>
  
  <p>
  </p></li>
  <li><p><strong>view2.html</strong></p>
  
  <pre><code>&lt;div class="container"&gt;33333333333333&lt;/div&gt;
  </code></pre></li>
  <li><p><strong>view3.html</strong></p>
  
  <pre><code>&lt;div class="container"&gt;33333333333333&lt;/div&gt;
  </code></pre></li>
  </ul>