[Vuejs]-VueJs Conditional Rendering v-if not working

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()
    })
  }

Leave a comment