goodeggs / angular-cached-resource

An AngularJS module to interact with RESTful resources, even when browser is offline
MIT License
216 stars 29 forks source link

Discrepancy between ngResource and ngCachedResource API #74

Open dannynelson opened 9 years ago

dannynelson commented 9 years ago

I noticed their is a slight difference between the ngResource and ngCachedResource api…

Instance methods for ngResource return a promise:

instance.save().then ->

Whereas instance methods on ngCachedResource return a property $promise which has a promise:

instance.save().$promise.then ->

Thanks!