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
{{quantity-list isValid=(mut isValid)}}
results in overwriting the property and removing the computation.
How can I get the isValid property?
Remove the
muthelper when passingisValidproperty to yourquantity-listcomponent. Themuthelper mutates the value when it changes in your child component. You should passisValidlike this:{{quantity-list isValid=isValid}}