I'm using Ember.js. I'd like to create an object X that has a property Y that is itself an object, which contains computed aliases to other properties of object X. However when I set object Y's aliases they reference object B's properties and not A's. Is there a way to do this?
Ember.Component.create({
page: 1,
templateData: Ember.Object.create({
page: Ember.computed.readOnly('page') // I want this to reference the parent's page property
})
});
Aucun commentaire:
Enregistrer un commentaire