Skip to content

Changing restangularFields breaks Restangular.service #1262

@gera2ld

Description

@gera2ld

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions