angular-restmod icon indicating copy to clipboard operation
angular-restmod copied to clipboard

Find with no arguments

Open djvs opened this issue 9 years ago • 2 comments

I want to do a $find() with no arguments - the server is only going to return one record to begin with. I'm a little new to the library and find myself writing .mix.. $extend.. Scope..$find, but don't know how to fill in the $find method (if it's appropriate to use a $super or not), or if there's a better way to do this. The docs are a little ambiguous on custom methods. Can anyone help with this?

djvs avatar Apr 22 '16 19:04 djvs

Just do a $find(1) bruh

waleedasif322 avatar May 01 '16 19:05 waleedasif322

You cannot use $find without any parameter, $find is mapped to GET call of REST API. REST GET call need id of a single record and returns that specific record. It is little late but if you still are wondering answer of this question.

utf4 avatar Nov 03 '16 18:11 utf4