Skip to content
This repository was archived by the owner on Apr 11, 2019. It is now read-only.
This repository was archived by the owner on Apr 11, 2019. It is now read-only.

AngularJsonApiResource.get - data for the resolved promise? #41

@leviwilson

Description

@leviwilson

Description

I've just started messing around with this library. I was able to get things setup pretty quickly and define a schema for a couple of my resources. Testing in the debug console yielded what I was expecting out of it.

In our app, we use a resolve in one of our routes before moving on. I noticed that the AngularJsonApiResource.get method has a promise value that is returned; I expected that the resolved promise that came back would actually have the same object that is returned from the get, but it doesn't. It is undefined.

To be clear, the promise resolves accordingly, but it appears that what is actually resolved is the response.data.meta, vs. the object that I expected.

Am I understanding incorrectly how this should work?

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