Because every partial template is cached which I don-t want I am doing this
.directive('myMessages', [ function () {
return {
restrict : 'E',
templateUrl : 'wwwroot/base/messages/ui.partial.messages.show.html?v' + Date.now(),
is it possible globally override templateUrl
function and add Date at the end?
I also try this two solutions from the forum but they are never triggered:
$rootScope.$on('$routeChangeStart', function(event, next, current) {
$templateCache.remove(current.templateUrl);
});
$rootScope.$on('$viewContentLoaded', function() {
$templateCache.removeAll();
});