There is such an artificial example:
<body> <button>open popup #1</button> <popup inline-template > <div class="popup popup_1"> Content #1 </div> </popup> <popup inline-template > <div class="popup popup_2"> Content #2 </div> </popup> </body> ... <script> Vue.component('popup', { methods: { open: function() { // ... }, } }); var app = new Vue({ el: 'body', }); </script> How to make that when you click on the button, the open method for the component with the text “Content # 1” is called.