Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thenable functions (promise?) #116

Closed
slawo opened this issue Dec 31, 2014 · 2 comments
Closed

thenable functions (promise?) #116

slawo opened this issue Dec 31, 2014 · 2 comments

Comments

@slawo
Copy link

slawo commented Dec 31, 2014

Would id be possible to generate thenable functions for the models and instances instead of relying on callbacks?

The issue is not with callbacks but with the fact that most libraries written for angular expect promises or some any sort of thenable objects when passing data around.

Do you have any intention to add this type of compatibility?

@slawo
Copy link
Author

slawo commented Dec 31, 2014

Also it would go well in the direction of unifying the API between the client and server if promises were to be added to the server API

@slawo slawo closed this as completed Jan 1, 2015
@bajtos
Copy link
Member

bajtos commented Jan 13, 2015

We are generating model classes based on ngResource which already supports promises OOTB. See the official Angular documentation and also Model resource API in our docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants