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
Post a Comment