enter image description here

I am getting Unexpected token: "" at column issue in lightning component markup.

I am trying to concatenate values of the aura:attribute. According to the documentation:

+ | 'Title: ' + v.note.title | Concatenates two strings together.

So, I would expect my approach to work, but as you see it does not.

What am I missing here?

Thank you.

  • Do you get the same problem using single quotes ' ' in the expression? These expressions are not JavaScript but rather salesforce's own expression language. I've only ever used single quotes in this context. – Keith C Dec 18 '18 at 14:14

You need to try it with single quote

{!v.ContactInfo.FirstName + ' ' + v.ContactInfo.LastName }
|improve this answer|||||

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.