I'm using $resource to do some basic CRUD stuff in Angular but I don't think I understand how to use the different resource methods.
As far as I can tell, the "regular" methods - save()
, get()
etc happen synchronously, and you can pass in a callback function to run on completion if you want to do "classic" JS async calls. The result of each also has a $promise
property which returns a promise, if you want to do async that way (I do!).
But there are also $
versions of all the methods except (for reasons I also don't understand) get()
and query()
. Are these $
methods a shortcut for .$promise
? If so, why is there no $get()
or $query()
?