title: Is it possible to load a template via AJAX request for UI-Router in Angular?
body: <p>I know this might <a href="http://bl.ocks.org/marcoslin/b59cfa9a9a44bde04f9f" rel="nofollow">get an answer here</a>, however that goes more for <strong><em>lazy loading</em></strong> implementation itself.</p>
  
  <p>So, this is a typical <code>UI-Router</code> config block:</p>
  
  <pre><code>app.config(function($stateProvider, $urlRouterProvider, $injector) {
      $stateProvider
          .state('home', {
              url: '/home',
              templateUrl: 'view_home.html',  // Actually SHOULD BE result of a XHR request ....
              controller: 'HomeCtrl'
          });
  });
  </code></pre>
  
  <p>But what if I want to load such <code>templateUrl</code> when it's requested (<code>$stageChangeStart</code>) and it would be AJAX request based.</p>
  
  <p>How should it be implemented? How are LARGE angular applications dealing with this?</p>