Top "Ember-data" questions

ember-data is a data persistence extension for the Ember.

Can I define a default value for ember-data model attributes?

When I define an attribute for a model in ember-data, can I specify a default value? The ember-data model definition …

ember.js ember-data
What is the best way to modify the date format when ember-data does serialization?

In my ember-data adapter I use this line to serialize my model var data = record.serialize(); But I've noticed my …

ember.js ember-data
How to use the new ember-cli http-mock for API calls

I have a simple (so far) ember-cli project, and right now just have one model with FIXTURE data. I would …

api ember.js ember-data ember-cli
How to implement complex queries with a REST api?

I'm building an EmberJS app using ember-data. Some of the functionality in my app requires quite complex queries. As an …

api rest ember-data
Ember-Data .find() vs .all() - how to control cache?

I was told that in order to not make a request all the time, one can use .all() method to …

ember.js ember-data
Ember.js ember-data restadapter fail to load json

Cheers! I have ember-data store: TravelClient.Store = DS.Store.extend({ revision: 11, adapter: DS.RESTAdapter.create({ bulkCommit: false, url: "http://someIP:…

javascript json ember.js ember-data
Ember.js Data how to clear datastore

I am experiementing with Ember.js and have setup a small app where users can login and logout. When the …

ember.js ember-data
Request Two Models together

I have two models that are many to many. They're used on the first page of my app and I'm …

ember.js ember-data
How to add header for all RESTAdapter ember requests

The API needs to specify api version application/vnd.api+json;version=1, also it needs secure x-app-id and x-app-secret. Is …

ember.js ember-data
Get the first record of model in emberjs

I need a way to get first record of specific model .at this time im using a way like this : …

ember.js ember-data