see the next code example:

    <lightning:card iconName="custom:custom33" title="{!notequals(v.aType, 'typeA')? 'This is type B' : 'This is type A'}">

Now I want to use Custom Labels for the string literals 'This is type A' and 'This is the A' but when I want to place them in this expression I got an error:

Cannot mix expression and literal string in attribute value, try rewriting like {!'foo' + v.bar}

How do you do this with custom labels?

<lightning:card iconName="custom:custom33" 
title="{!notequals(v.aType, 'typeA')? $Label.c.LabelNameB : $Label.c.LabelNameA}">
 ... ... 

Change the markup to this

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