[Vuejs]-How to display pop up window

0👍

Create a div with the contents of the pop up. v-if the div and display it as required. Style the div using css.

<div v-if="displayPopUp">
 <slot />
</div>
data() {
 return {
  displayPopUp = false
 }
}
.then(()=>(this.displayPopUp = true))

Change value of displayPopUp after pop up action is completed.

Leave a comment