Collections
AJAX Abstraction for Lists of Resources
AJAX Abstraction for Lists of Resources
The sync()
method is a wrapper over the sync function, and allows you to modify how server calls are made for the collection.
The default implementation looks like this:
import { sync } from 'lore-models';
...
sync: function(method, collection, options) {
return sync(method, collection, options);
},
You can use override this method to take control of the server call made to the API, but it's unclear what you might want to do that. If a use case can be found, this page will be updated to demonstrate it.