angularjs - Redirecting to previous page without reloading -
i have question suppose, have admin dashboard page, on have given list of users. clicking upon particular user details of corresponding user shown on different page (say on userdetails.jsp). have button on userdetails page, clicking of need redirect admin last visited page admin dashboard page, have 1 solution can "reload" previos page on clicking button, feel there overhead of calling server side api, retrieving data, again redraw whole admin dashboard page when there no change made in userdetails[because read page, modification not allowed there]. there anyway can make user of cache or else not need go server fetch data again. using spring mvc, angularjs, thank you.
on button's click event add following code:
$window.history.back();
make sure use $window
rather window
since you're using angularjs
Comments
Post a Comment