title: Pass a Vue2 bind variable to javascript function in anchor tag
body: <p>I am trying to create a menu list in Vue.  I want to call a javascript function when the user clicks on an item.  I have the v-for working fine and the menu displays as intended. But how do I pass a value to the javascript function that I want called?  I have this:</p>
  
  <pre><code>&lt;a class="dropdown-item" href="javascript:loadNavigation('{{menuItem.name}}')" v-for="menuItem in menuBlock.menuItems"&gt;{{menuItem.shortName}}&lt;/a&gt;
  </code></pre>
  
  <p>How do I pass the menuItem.name to my function?</p>