Timeline for Add Vue.js event on window
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 8, 2022 at 10:25 | comment | added | Thomas Urban | Destroying registered listener isn't required on the main component of your project unless it might be embedded in more complex setup with your vue application being just one part of the view. Thus, unregistering everything is best practice in all situations to make your code future proof. | |
Feb 2, 2021 at 16:28 | comment | added | user12009061 | Thanks Jeff. The answer was helpful. Do I need destroyed if I have to add the listener in the main parent component on App level? | |
May 4, 2016 at 12:40 | vote | accept | Yukulélé | ||
May 4, 2016 at 12:41 | |||||
May 3, 2016 at 9:48 | history | answered | Jeff | CC BY-SA 3.0 |