I am currently utilizing the Angular templateCache, following the example set in Angular's documentation.
var myApp = angular.module('myApp', []);
myApp.run(function($templateCache) {
$templateCache.put('templateId.html', 'This is the content of the
template');
});
However, I am interested in loading my content from a local html file. The only solution I have come across involves building the templateCache with grunt. This process loads an html file and inserts the content into the put
function as the second parameter.
Is there any alternative method to achieve this?