Atish Dipongkor Atish Dipongkor - 1 year ago 73
AngularJS Question

How to reload a page using Angularjs?

I have a link. When user will click in this link, then the page will be reloaded. I did it by the following way......


<div data-ng-hide="backHide" class="offset6 pull-right">
<a href="" data-ng-click="backLinkClick()"><< Back <br/> <br/></a>


$scope.backLinkClick = function () {

In the controller I have used javascript and that seems to me very bad. How can I do it using angularjs

Answer Source

Be sure to include the $route service into your scope and do this:


See this:

How to reload or re-render the entire page using AngularJS

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download