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

Changing restangularFields breaks Restangular.service #1262

Open
gera2ld opened this issue Oct 23, 2015 · 6 comments
Open

Changing restangularFields breaks Restangular.service #1262

gera2ld opened this issue Oct 23, 2015 · 6 comments

Comments

@gera2ld
Copy link

gera2ld commented Oct 23, 2015

I tried to add a prefix $ for all Restangular methods by setting restangularFields, as suggested here (#675 (comment)).

Unfortunately, Restangular.service does not work any more after that, an error occurs instead:

Uncaught TypeError: Expected a function(…)
...
Restangular.all('editor')

The problem due to this seems to be, collection.post and collection.getList are hard coded in function toService, which in my case are changed to collection.$post and collection.$getList.

@eprevot
Copy link

eprevot commented Oct 27, 2015

Same problem here!

@mrahhal
Copy link

mrahhal commented Nov 28, 2016

This hasn't been fixed yet?

@corleyma
Copy link

Any status update here?

@bostrom
Copy link
Collaborator

bostrom commented Jan 18, 2017

Thanks for the bump. I'll try to take a look at it when I have time. In the meantime, PRs are welcome ;)

@corleyma
Copy link

Is this issue substantially different from what was addressed by this PR?: #826

@mrahhal
Copy link

mrahhal commented Jan 18, 2017

I already have a working fix for this and lot more issues in my fork here if somebody wants to check. Might do a PR later. (Working with the current state of this project was completely impossible but the fixes were all easy enough)

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

5 participants