import Selector from '@components/contactSelector'
let vueInstance = new Vue({
components: { Selector },
data () {
return {
url: url,
isFilter: false,
type: 'external',
selectedList: []
}
},
render (h) {
return h(Selector, { props: { url, selectedList: this.selectedList, maxHeight: '300px' } })
}
})
I have an instance of Vue created above. Is it possible to render it on multiple divs? I have attempted to do so but it does not seem to work. Is there a way to mount it on multiple divs or is it intended to be mounted on a single div only? If anyone has knowledge about this, please provide assistance. Thank you.
vueInstance.$mount('#contactSelectorId')
vueInstance.$mount('#contactSelectorId2')