I want to show in the UI dynamically the current page label...
so i try something like this in Component section: i want to show the v.pages[currentPage].Label__c value... But i get message on save expecting a positive integer, found '+' at column 9 of expression: v.Pages[+"!v.currentPage"+].Label__c: Source
Code snippet below...
<aura:attribute name="pages" type="Page__c[]" />
<aura:attribute name="currentPage" type="Integer" />
<h1>
<span class="slds-page-header__title slds-truncate" title="{!v.currentPage}">
{!v.Pages[+"!v.currentPage"+].Label__c}</span>
</h1>
Any ideas ?