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(...
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...
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....
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...
I can't access to my array controller variables. I have this simple application for example:   App.js  App = Ember.Application.create();  App.ApplicationAdapter = DS.FixtureAdapter.extend();  App.Router.map(function() {      this.route('hello...
Background  I've already submitted a github issue with the Ember Data team, but I'd love insight into how to work around this (or if I was mistaken all along)  You can see a working demo if this bug on jsfiddle  The problem  jsfiddle of the i...
I have self referring model defined as :          App.Answer = DS.Model.extend({             name: DS.attr('string'),             parentAnswer: DS.belongsTo('answer'),             childAnswers: DS.hasMany('answer')         });...
I have two models 'Author' and 'Publisher' (Rails), with a publisher hasOne author / author belongsTo publisher relationship.  I have the Ember models setup correctly -- JS Fiddle -- and the associations working when I manually push i...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.