Question:
If your component adds an event listener to anything except itself or its templated DOM – for example, to Window, Document, or some element in the main DOM – you should add the listener in ..... and remove the listener in ......
Author: John PencolaAnswer:
ConnectedCallback and remove it in disconnectedCallback.
0 / 5 (0 ratings)
1 answer(s) in total