When I made changes in any template (html) in my code and refresh from browser then the changes does not occur in application.
I want to bypass template cache when I made changes in any template i.e I want when I make any changes in template and refresh from browser then the code should be updated code not from $templateCache
.
And how could I know that there is any changes in template programmatically?
I have tried this code too from Stackoverflow reference.
app.run(function($rootScope, $templateCache) {
$rootScope.$on('$viewContentLoaded', function($event) {
console.log($event);
alert("abc");
//$templateCache.removeAll();
$templateCache("templates").removeAll();
});
});