Answer the question
In order to leave comments, you need to log in
How to create a popup with dynamic content?
Started learning Vue.js. Using Vue Cli, I would like to clarify this point for myself:
Let's say we have a page with 10 buttons that open a popup. Outwardly, the popups are the same, only the content is different. The content can be absolutely anything - forms, pictures, etc.
I created a popup component with only the template itself, no content, and created 10 components with popup content. Each of the 10 buttons should open a popup with the appropriate content.
I can't figure out how to display in the popup exactly the component that corresponds to the pressed button.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question