1

Hi I am getting this error "aura:if" must not contain the '<' character Is there any other way to redefine this.

Cmp

<aura:if isTrue="{!v.page < v.pages}">
           <ui:button aura:id="nextbtn" press="{!c.nextPage}" label="Next Page"/>
        </aura:if>
11

try the below. this will check if v.page is less than v.pages

 <aura:if isTrue="{!lessthan(v.page,v.pages)}">

documentation link : https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/expr_functions.htm

  • 1
    You can also use lt instead of lessthan, if you prefer. – sfdcfox Jun 3 '17 at 21:32
  • Cool good to know @sfdcfox – RedDevil Jun 4 '17 at 7:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.