How to add "mailto:" when binding and email address to :href #2155
-
Hi, I'm looping through a collection of email addresses, and would like the template to be a mailto-link. Do I have to create a separate function for this or is there an easy way around that I miss?
|
Beta Was this translation helpful? Give feedback.
Answered by
danddanddand
Sep 30, 2021
Replies: 1 comment 1 reply
-
You just have to build the string in js. So for example changing your :href expression to "'mailto:' + mail.email" or making helper function that returns template literal. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bodigital
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You just have to build the string in js. So for example changing your :href expression to "'mailto:' + mail.email" or making helper function that returns template literal.