I am using oclazyload in my angular app, also I am setting version in my app. So whenever version number changes I need to clear the cache. is there any method to implement that?
angular.module('app')
.run(['$rootScope',function ($rootScope) {
$rootScope.appVersion = 1.5;
}])
.config(['$ocLazyLoadProvider', function($ocLazyLoadProvider) {
$ocLazyLoadProvider.config({
debug: false,
events: true,
modules: [{
name: 'isotope',
files: [
'assets/plugins/imagesloaded/imagesloaded.pkgd.min.js',
'assets/plugins/jquery-isotope/isotope.pkgd.min.js'
]
}
]
});
}]);