-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
forced reload cache $odataresource #90
Comments
You'll have to be a little more detailed on what you don't understand about the refresh functionality. Or "forced refresh" for that matter. Please refer to the Refresh Section for already provided examples. |
I want forced reload cache $odataresource. var out = forcedRefresh ? $odataresource(url).odata().re() : $odataresource(url).odata();
out = out.select(['ItemID', 'Name']).query(); |
Your code looks right to me. Have you taken a look at the unit teats for other examples? |
your plugin use http cache? |
The persistence option is a tool to help when you want to retrieve the same data but you dont need to enter the same query criteria all over again. If your updating an entry in your db then recalling quert after the re method, the returned resource object should be populated with the new data. |
please more explain or write an example. |
As I already suggested there is a good writeup describing the persistence/refresh options in the readme, and there are ample examples in the unit test files. If something isn't clear enough, please point out specifically what you need clarification on. |
hello, very very thanks. how forced refresh get data from api?
please show an example.
The text was updated successfully, but these errors were encountered: