How to create id in element in template when I have passed parameter ?
I have tried something like
<button id="p_"+{{key}} >TEST</button>
but in rendered HTML id is just p_ . Can someone tell me how to achieve this ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
<button id="p_{{key}}">TEST</button>you need the key to be Inside the quotes
I’m assuming you were using
+to concat strings. I don’t believe html supports any operations like that.