lundi 18 juin 2018

Getting a computed property from a component

I currently try to get a computed property from a component.

export default Component.extend({
    isValid: computed('currentQuantity', 'maxQuantity', function() { ... }),
});

Trying to receive it (controller: isValid=null;) with



results in overwriting the property and removing the computation.

How can I get the isValid property?




Aucun commentaire:

Enregistrer un commentaire