Vue.js — How I call a method in a component from outside the component in Vue 2. Jannick Holm gives some code examples on how you can implement some of my favorite methods in your Vue app. The $emit property is used for emitting a custom event from our child component and we can then listen for the same event in our parent component.
Table of contents
Vue.js — How I call a method in a component from outside the component1. Using Event BusSort: