Closed Dongss closed 8 years ago
My plugin:
Vue.prototype.$alert = function(header, content) { let alertVue = new Vue({ replace: false, el: 'body', template: alertTemplate, data () { return { header: header, content: content }; }, ...
HTML
<body> <div id="app"> <router-view ></router-view> </div> ...
Then here index.vue this.$alert('header', 'content');
this.$alert('header', 'content');
Body always is replaced ..
Change el from body to #app , not working too
body
#app
Thanks for any help
My plugin:
HTML
Then here index.vue
this.$alert('header', 'content');
Body always is replaced ..
Change el from
body
to#app
, not working tooThanks for any help