jeudi 20 avril 2017

Ember JS - Update property on all instances of a component

Is it possible to update a property on all instances of a component?

If I have 10 instances of the component below on a page, I would like to set the currentTrack property to false on all of them. Is this possible? Can it be done from inside one of the components?

import Ember from 'ember';

export default Ember.Component.extend({

    currentTrack: true,

});




Aucun commentaire:

Enregistrer un commentaire