var component = { data() { return {status: 'Critical'}; }, template: '
Server status {{ status }}
', methods: { changeStatus(){ this.status = 'Normal'; } } }; var component2 = { template: 'butts', }; var app1 = new Vue({ el: '#app1', components: { 'ts-cmp': component } }); var app2 = new Vue({ el: '#app2', components: { 'ts-cmp': component2 } });