I am using aura:iteration to iterate and show images on my lightning component. Which looks like below:
<aura:iteration items="{!v.Assets}" var="asset">
<img src="{!asset.asset-url}"/>
</aura:iteration>
For some reason, the aura expressions can't evaluate asset-url and return NaN. Am I doing something wrong here? It works if I do asset_url
-
chars aren't allowed in this syntax... can't remember where though.