Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
36
rated 0 times [  39] [ 3]  / answers: 1 / hits: 104380  / 11 Years ago, fri, september 13, 2013, 12:00:00

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



Html



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


JS



$scope.backLinkClick = function () {
window.location.reload(false);
};


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


More From » angularjs

 Answers
33

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



$route.reload();


See this:



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


[#75715] Thursday, September 12, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
devonw

Total Points: 311
Total Questions: 116
Total Answers: 111

Location: Senegal
Member since Fri, Aug 21, 2020
4 Years ago
;