title: Possible to populate $templateCache before defining routes?
body: <p>I don't wish to lazy load my route templates. Instead I want to load all my route templates into $templateCache ahead of any routes executing.</p>
  
  <p>This is what I am doing:</p>
  
  <pre><code>angular.module('myApp', ['ngRoute']).config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider)
  {
      $locationProvider.html5Mode(false);
  
      $routeProvider.when("/main", {templateUrl: "main", controller: "MainCtrl"})
                    .when("/login",{templateUrl: "login", controller: "LoginCtrl"});
  }])
  .run(['$location','$templateCache', function ($location, $templateCache)
  {
     //...Save templates in $templateCache
     $location.path("/login");
  }]);
  </code></pre>
  
  <p>This works OK if you browse to <code>/</code> because it doesn't match any route. But if you browse or refresh on <code>/#/login</code> it seems the route service attempts to load the template before my run block gets to run and makes a request to the server for it.</p>
  
  <p>Is there anyway to ensure the code that populates the $templateCache will execute before the route service goes looking for the template?</p>