Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

How to get the ``links`` of the JSON API response in the model?

$
0
0

@tsteuwer wrote:

I need to be able to retrieve the links.

For instance:

{ 
   data: {
      id: 1234,
      attributes: {...}
      links: {
         externalLink: '...'
         self: '...',
   }
}

I need to be able to grab that externalLink property. I've looked through each property in the model inside the console and im not finding a reference to it anywhere. I've also tried model.get('content.links') and it's not in there.

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles