angularjs - Angular not reloading the whole window -


i have read answers $route.reload(); , $window.location.reload(); aren't working. want whole page refresh after server sends response.

$http.post('/users/upload-dp',formdata,{       transformrequest:angular.identity,         headers:{'content-type': undefined}     }).then(function(res){         $route.reload();   //doesn't work         $window.location.reload();  //doesn't work }); 

i have included correct cdn , module working fine. , reload mean current url i.e. "http://localhost:3000/home" should fired method.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -