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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -