javascript - Difference between $window.location.reload() and $route.reload() in angularjs -


what difference between $window.location.reload() , $route.reload() in angular.js?

i have used these 2 things, both working same progress.

can explain differences?

$window.location.reload() - uses reload page

$route.reload() - causes $route service reload current route if $location hasn't changed.

as result of that, ngview creates new scope , reinstantiates controller.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -