[SalesForce] Id combined of Expression and Literal String

Is it possible to make id with expression and literal string?

Like if I have an attribute called ownerId and I want the div to have id="ownerIdvalue+appendedString"

For example, if my ownerId value is 345ABC and the div id to have a string 'New' following the ownerIdvalue. I know I can make the div id to be the same as the attribute value by <div id='{!v.ownerId}', but not sure how to make the div id to be '345ABCNew'.

Thanks

Best Answer

I figured it out after multiple times modifying the id. This works

 <div id="{!'New' + v.ownerId}"></div>
Related Topic