title: How to handle Angular 1.x component URL root?
body: <p>With the intent of having a way to setup component templates' URLs root, an available config object would be needed at the iif level.</p>
  
  <pre><code>(function () {
      var app = angular.module('myApp');
      app.component('myDashboard', {
          // templateUrl: HOW_TO_GET_ROOT_HERE + '/path/to/template.html'
          templateUrl: '/path/to/template.html'
      });
  })();
  </code></pre>
  
  <p>So far, the only way I found this possible is to have the module object added some custom properties - but it really feels nasty to do so.</p>
  
  <pre><code>// define
  var app = angular.module('myApp', []);
  app._config = {root: 'http://my.cdn.js'}
  //...
  // use
  var app = angular.module('myApp');
  app.component('myDashboard', {
     templateUrl: app._config.root + '/path/to/template.html'
  }
  </code></pre>
  
  <p>Is there any other, more neat, approach to do this?</p>