I'd like to know if there is a way to get the _super for a computed property?
For example:
controllers/core-controller.js
export default Controller.extend({
myAttribute: computed(function() {
return {
bar: this.get('bar')
};
});
});
controllers/my-controller.js
import CoreController from 'controllers/core-controller';
export default CoreController.extend({
myAttribute: computed(function() {
let super = this.get('_super') //I'm trying to get the myAttribute object from the CoreController
return merge(super, { foo: 'foo' });
});
});
What would be the best way to do that?
Thanks.
Aucun commentaire:
Enregistrer un commentaire