AngularJS $location.path same url -


i wanting reload page manually, using

 $location.path('/account'); 

correctly moves different page want use

 $location.path('/account/messages'); 

while on /account/messages reload page nothing. correct code reloading?

thanks

alex

your question unclear, if want page refresh (like hitting f5), 1 solution @rabi answer.

but if want reload things under ng-view, re-initialized current route controller, use:

$route.reload(); 

also see: $route documentation


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -