0

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.

1
  • 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, 2018 at 14:14

1 Answer 1

4

You need to try it with single quote

{!v.ContactInfo.FirstName + ' ' + v.ContactInfo.LastName }

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .