I wish to check a condition inside an aura:iteration. The condition should be dynamically set according to the current item in the iteration.
I'm trying to achieve the following :
<aura:if isTrue="{!c.myTestFunction(parameter)}">
<!-- ... -->
</aura:if>
With the following in controller :
myTestFunction : function(parameter) { ... }
Of course this is not working. So my question is : is there any workaround to achieve this ? I would like not to update my iteration objects with a new property "toDisplay" that would require many updates.