Upon a successful http
request, I need to update the page outside of ng-view without notifying the user. Currently, I am using $window.location.reload()
which works correctly. However, I want to reload the page silently so that the user does not notice any transition in AngularJS. I also attempted to use $route.reload()
but it did not work for this scenario. Is there a way in AngularJS to refresh the page in the background without alerting the user?
$scope.save=function()
{
$window.location.reload();
}