$http.get('template/alert.html', {
cache: $templateCache
});
$scope.clickedButton = function () {
console.log($templateCache.info()); // <-- Object {id: "templates", size: 1}
console.log($templateCache.get('alert.html')); // <-- undefined
console.log($templateCache.get('template/alert.html')); // <-- undefined
};
So I am trying to aquire the html, put it into the cache and then console.log out the contents of the html file.