In this video, learn how to clean up global event listeners on unMounted in Vue.js. Why are global event listeners necessary? Because sometimes we want the event to fire even outside of the focus of elements within the current component. Why should we clean them up? Failing to do so will result in memory leaks and degrading application performance.
Links