I'm trying to add a second instance of Vue Autocomplete to a fiddle:
I renamed the app, model, data, value and options values to app2, model2, etc.
Vue.component("typeahead", VueStrap.typeahead);
var app = new Vue({
el: "#app",
data: {
value: null,
options: ["foo", "bar", "baz"]
}
})
Vue.component("typeahead2", VueStrap.typeahead);
var app2 = new Vue({
el: "#app2",
data2: {
value2: null,
options2: ["qwerty", "apple", "jon"]
}
})
The second instance doesn't work. What is the best way to add a second Vue instance to an app?