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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -