Modal not displayed in Vuejs
01:32 03 May 2018

I am using this library to create a modal component to display info. In my modal component the data is passed through parent which sets the variable to show the modal or not. But I am not able to display the modal. Please look into my code and let me know if I am going wrong somewhere.

Code for the modal component






I have imported vue-js-modal in main.js

import Vue from 'vue'
import App from './App'

import VModal from 'vue-js-modal'

Vue.use(VModal)

Vue.config.productionTip = false


export const EventBus = new Vue();

/* eslint-disable no-new */
new Vue({
   el: '#app',
   components: { App },
   template: ''
 })
vue.js vuejs2