I'm trying to add two Vue.js instance to the same .js file as follows :
new Vue({
el: '#step1',
data: {
value1: '',
}
})
new Vue({
el: '#step2',
data: {
value2: '',
}
})
I call these two instances in two separate web pages. But I'm getting a Vue warning such as [Vue warn]: Cannot find element: #step1 not found or [Vue warn]: Cannot find element: #step2 not found.
Am I doing it wrong? or is there any way that I can concatenate the two instances together?