Skip to main content
3 votes

How to put a variable/recordId in anchor tag <a href="somelink"+{acc.id} >"

LWC doesn't allow such expression in the template, so if the first part of the link is static and acc is an instance variable, you could have a getter in your JS class returning the whole url: JS: get ...
RubenDG's user avatar
  • 8,752

Only top scored, non community-wiki answers of a minimum length are eligible