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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -