[Vuejs]-How to add url with interpolation as the value of the input textbox?

3👍

Just use normal JS expression inside "", and remember to add : at the beginning of your prop before using JS expression

:value="'https://varip.geodata.com/?code=' + mycode"
<input
  type="text"
  placeholder="Enter code"
  :value="'https://varip.geodata.com/?code=' + mycode"
/>
👤hgb123

Leave a comment