After the Angular app is loaded I need some of the templates to be available offline.
Something like this would be ideal:
$routeProvider .when(\'/p
Preloads all templates defined in module routes.
angular.module('MyApp', []) .run(function ($templateCache, $route, $http) { var url; for(var i in $route.routes) { if (url = $route.routes[i].templateUrl) { $http.get(url, {cache: $templateCache}); } } })