Closed thomasstevens89 closed 10 years ago
Sorry, I haven't seen this until now.
@thomasstevens89 it helps if you look at the generated Javascript, line 77 and line 79 both return promises. Line 77 is just a promise that is resolved immediately with the collection while line 79 is resolved upon response from the backend with whatever is returned on line 88.
Thanks Dean. Still playing with my own implementation and trying to sort through everything. You've been very helpful
https://github.com/ProLoser/AngularJS-ORM/blob/master/modules/Objects.coffee#L74-88
Why does
getProjects()
return@projects
inside a promise on line 77 but after having to query for the projects just returns@projects
directly?