var modalInstance = $modal.open({
templateUrl: '/template/edit-modal.html',
controller: ModalInstanceCtrl2,
resolve: {
locations: function () {
return locationToEdit;
}
},
scope: $scope.$new()
});
I am utilizing the script above to open multiple modal windows, but I have observed that in certain browsers the templateUrl
gets cached and any modifications made to the html
file are only visible after clearing the cache.
Is there a way to prevent this caching issue so that changes to the modal can be immediately reflected without the need to clear the cache?