admin管理员组文章数量:1391969
What is the difference between $window.location.reload() and $route.reload() in Angular.js?
I have used these two things, but both are working same progress.
Can anyone explain the differences?
What is the difference between $window.location.reload() and $route.reload() in Angular.js?
I have used these two things, but both are working same progress.
Can anyone explain the differences?
Share Improve this question asked Apr 1, 2015 at 7:02 user4201923user4201923 1- 1 @Ramesh Rajendran this is your duplicate account ?I am not sure :-P.But it seems to be :-P – squiroid Commented Apr 1, 2015 at 7:03
1 Answer
Reset to default 7$window.location.reload()
- It uses to reload the page
$route.reload()
- Causes $route service to reload the current route even if $location
hasn't changed.
As a result of that, ngView creates new scope and reinstantiates the controller.
本文标签: javascriptDifference between windowlocationreload() and routereload() in angularjsStack Overflow
版权声明:本文标题:javascript - Difference between $window.location.reload() and $route.reload() in angularjs - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744670158a2618775.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论