0👍
You could use $mount
Parent vue instance declaration:
var vm = new Vue({...})
New Instance: (have this run after the dynamic content is loaded into your container)
var newContentInstance = vm.$addChild({
el: '#modal',
data: function data() {
return { something: '' };
}
});
newContentInstance.$mount();
- [Vuejs]-Is there any other way to fetch data instead of prefetch in vue hacker news
- [Vuejs]-Use props without component
Source:stackexchange.com