The Ember.js REST Adapter expects the JSON to be returned as:  {     "person": {         "first_name": "Barack",         "last_name": "Obama",         "is_person_of_the_year": true     } }   But my API...
I am attempting to set a property to the value of a model's async, hasMany relationship. But I'm not able to return any value within the then function.  App.Athlete = DS.Model.extend({     name: DS.attr('string'),     age: DS.attr(...
Enviroment  # Ember       : 1.4.0 # Ember Data  : 1.0.0-beta.7+canary.b45e23ba   Model  I have simplified my use case to make the question easier to understand and anwser. Let's assume we have 3 models: Country, Region and Area:  Country:   - id:...
Say I have the following ember-data model:  App.Person = DS.Model.extend({     firstName: DS.attr('string'),     lastName:  DS.attr('string'),     starred:   DS.attr('boolean') });   This communicates with a Rails app with the...
I need to understand once for all why property like  isSettled isPending isFulfilled  are different if I'm including or not the data in my API respone.  I'm asking here this: https://discuss.emberjs.com/t/ember-2-show-a-single-loading-message...
How come the computed property student.successfulEvaluations does not update unless the page is refreshed?  http://emberjs.jsbin.com/keduco/edit?html,js,output  App.Student = DS.Model.extend({   username: DS.attr('string'),   evaluations: DS....
Assuming the following models:    App.User = DS.Model.extend(   email: DS.attr('string')   session_users: DS.hasMany('sessionUser') )  App.SessionUser = DS.Model.extend(   user: DS.belongsTo('user')   state: DS.attr('strin...
I'm stuck with this problem for so long that I think that I'm missing something obvious. Here's simplified model of my case:  There is Patient that has all meds that he/she takes. And there is Medicine that has all patients who takes it....
I'm struggling to understand everything about the ember model lifecycle. I have created this jsfiddle to illustrate my problem. When clicking on one of the entries in the list, editing a value, and clicking the versions link to go back to the lis...
I have this jsbin, is a relly littl modification of the todos example  http://jsbin.com/ubimes/1/  I'm trying to find the way to limit a model to the last 5 entries   return Todos.Todo.find({limit:5});   But that query returns nothing  Any idea h...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.