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

Mapping data external API

$
0
0

@eder wrote:

Hey guys. someone can help me about how consuming an API using Ember. I have a model called product

export default DS.Model.extend({
  url: DS.attr('string'),
  variations: [], //?
})

But i can’t access nested data called ‘variations’ , its possible make this using emberjs. Below an example my API.

	data: {
	  url: "xxx-xxx-xxx",
	    variations: [
	      {
		factsheet: { },
		reference: "xxxx--xx-x-x",
		brand: "LG",
		url: "http://",
		sellers: [],
		ean: "1234567",
		composite_id: "123456789",
		attributes: [],
		description: "xxxx..xxx",
		title: "testing",
		media: {},
		id: "19",
		is_delivery_available: true,
	      }
	    ]
	}

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles