samedi 4 juillet 2015

Observe array and get changed value in ember.js

Here's the component:

export default Ember.Component.extend({
    columns: []

    _watchColumns: function () {
        // console.log(changedValue);
    }.observes('columns.@each.name')

    // other code
});

I'd like to get the changed value in _watchColumns method. Is it possible?




Aucun commentaire:

Enregistrer un commentaire