javascript - $route.reload bug in angularjs -


scroll bar not shown while using $route.reload in angularjs

i want reload application while redirect 1 page page

so have use proper code

            $location.path("/home");             $route.reload(); 

the location changed page redirected. browser scroll bar not shown. if doing force refresh browser, scroll bar shown. why?

actually have fount bad solution if use $window.location.reload(); instead of $route.reload(); scroll bar shown.

why bad solution:

$window.location.reload() manually load browser.

but why scroll bar not showing when use $route.reload();?


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -