• You do realize that the page will reload once you assign to window.location.href which makes this effectively no different from the other answers.
  • $route.reload() will reinitialise the controllers but not the services.
  • Stack Overflow works best with JavaScript enabled
  • Remember to inject $route to the controller for this to work.
  • Unless we’re talking about a caching service (in which case, there would be an interface to flush it), I would keep data out of services and in the controllers.

Read more


JavascriptQnA

@JavascriptQnA: “How to reload or re-render the entire page using AngularJS #javascript #angularjs #reload #rerender” open tweet »