@Myrdhin wrote:
We have the following model:
// app/models/user.js import Ember from 'ember'; import DS from 'ember-data'; export default DS.model.extend({ login : DS.attr('string'), language : DS.attr('string'), homepage : DS.attr('string'), firstname: DS.attr('string'), lastname : DS.attr('string') })
We have a login route where a user is loaded (with a
this.get('store').queryRecord('user', ...)
) from the backend. Onlylogin
,language
andhomepage
attributes are loaded. So we have a user instance with these attributes defined in the store and other areundefined
.Another route display a user list where this previous user is displayed too. We use
this.get('store').query('user', queryparams)
to load this list. Onlyfirstname
andlastname
of each user are loaded so the previous user instance (loaded in login route) is updated in the store.We need to to know when this update occurs : is there an event about this? Thanks for your help,
Posts: 3
Participants: 2