Skip to content

Fails call $prototype$__get__snippeds() with TypeError: undefined is not a function #42

Description

@Rikhart

I am playing with loopback an on the back-end I have defined a relationship of:
User has many snippeds the problem at the moment is to get the snippeds from the client, this is my scenario:

First get the current user with : User.getCurrent(function (user) {
//Now when i trying get the snnippes from the user:
user.$prototype$__get__snippeds()
})
That make the request to the server:
http://localhost:3000/api/users/535a05e2feca896653e30171/snippeds
responding with an array of objects I see that on a network of Javascript Debugger(Chrome) but show me also an error on a cosole(Chrome):

TypeError: undefined is not a function
at http://localhost:3000/bower_components/angular-resource/angular-resource.js:582:27
at Array.forEach (native)

Apparently this error will be relationed with angular-resource library but I have changed many times my version of angular-resource and the error continue there.

How can I solve this problem ??. Thanks by yours answers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions