I am new to angularjs
.After creating some projects with restful web service I got stuck at some point.So please help to me to solve that issues.
I have read the difference between $resource
and $http
from AngularJs $resource vs $http
My issue is that as I am using $resource
the data come asynchronously
e.g. if I am saving any data and transfer to detail page that data I got is not updated and if I will wait for some time than I will get newly data.
So I need to go on $http
or is there any other way to make call synchronously.
I have also try with $promise
but it doesn't solve my issue.