I'd like to show a modal-component after an "on click"-Event is triggered. Is it possible to show a component using a method call? Or what is the best practice in this case?
My use case is as follows:
I have multiple cards, which contain several information about something. When the user clicks on one card a modal-component should pop up and show more details about this card.
<div class="card" @click="showDetails()">
<h3 class="header">{{ Name }} {{ Type }}</h3>
<div class="container">
some Information<br>
more Information<br>
</div>
export default {
props: {
job: Object
},
components: {
},
methods: {
showDetails() {
}
},
name: "card"
};
</script>