Creating a menu list in Vue has been relatively easy, but now I am facing the challenge of calling a JavaScript function when a user clicks on an item. The v-for directive is working fine and the menu is displaying as expected. However, the issue lies in passing a value to the JavaScript function that needs to be called. Below is my current code:
<a class="dropdown-item" href="javascript:loadNavigation('{{menuItem.name}}')" v-for="menuItem in menuBlock.menuItems">{{menuItem.shortName}}</a>
How can I successfully pass the menuItem.name to my function?