I have an class that extends Ember.ArrayProxy
like:
export default Ember.ArrayProxy.extend({
init() {
this._super(...arguments);
this.set('content', Ember.A([]));
// doing some stuff
},
});
and I am using this like:
const myProxy = ProxyClass.create({});
myProxy.addObject(0.5);
but because of init
hook override, the changes aren't propagated, so my template is not changing
I think I am doing something wrong, but funny thing is that I can use myProxy.content
property to see changes (though I should just refer this by myProxy
). Maybe someone can point me in the right direction
Aucun commentaire:
Enregistrer un commentaire