Vue.component('MsgCard', { template: `
`, props: ['msg'], data: function () { return { isActive: false, }; }, methods: { myFilter: function() { this.isActive = !this.isActive; }, filterForTag: function(tag) { console.log("link: " +tag); searching(tag); }, } });