title: angular js templateUrl with absolute path
body: <p>On the video watch page with the url </p>
  
  <blockquote>
    <p>/watch/video_id</p>
  </blockquote>
  
  <p>, I had a ng app. The directive is shown as below.</p>
  
  <pre><code>app.directive('myApp', function() {
      return {
        restrict: 'E',
        templateUrl: 'ng-templates/myTemplate.html', 
        link: function(scope, elem, attrs) {
        },
        controller: 'Controller'
      };
    }); 
  </code></pre>
  
  <p>Since the templateUrl is the relative path, it will try to find the template in </p>
  
  <blockquote>
    <p>'/watch/ng-templates/myTemplate.html'</p>
  </blockquote>
  
  <p>which is an error. </p>
  
  <p>I want to put all the templates in the ng-templates folder. But it won't work if the ng app always looks for the relative path. Is there a way to configure the app making it to look for '/ng-template/myTemplate.html'? </p>