Vue.component('ts-cmp', { data() { return {status: 'Critical'}; }, template: '

Server status {{ status }}

', methods: { changeStatus(){ this.status = 'Normal'; } } }); var app = new Vue({ el: '#app', });