Is there a way to achieve Empty cache and hard reload of browser using angularjs
or javascript
programmatically.
I am not talking about clearing the cache of angularjs application but the browsers using angularjs
Is there a way to achieve Empty cache and hard reload of browser using angularjs
or javascript
programmatically.
I am not talking about clearing the cache of angularjs application but the browsers using angularjs
inject $templateCache in your main controller and execute once function X
(function () {
'use strict';
angular.module('app.module.core').controller('LayoutCtrl', LayoutCtrl);
LayoutCtrl.$inject = ['$rootScope', '$scope', '$http', '$templateCache', '$cacheFactory'];
function LayoutCtrl($scope, $rootScope, $http,$templateCache, $cacheFactory) {
$scope.clearCache = function (){
setTimeout(function() {
$templateCache.removeAll();
}, 5000);
}()