[Vuejs]-Access elements inside of a remote modal with vue.js

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

Leave a comment