0👍
Try to set the modal type and wait for the next tick so the DOM is updated and can be manipulated by this plugin.
myMethod() {
this.type = "loading"
this.$nextTick().then(_ => {
let modal = new Foundation.Reveal($("#modal-1"))
modal.open()
})
}
- [Vuejs]-Select random item from array in Nuxt.js on the server only
- [Vuejs]-VueJS drag and drop [Need a simple CSS fix]
Source:stackexchange.com