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
.