Should I explicitly call .off()
on all elements I added an event handler with .on()
inside the $destroy
handler, or any handlers added with .on()
(vs. .addEventListener()
) are automatically removed by Angular during $destroy
?
EDIT:
The question is not a duplicate of the linked question.
I am not asking about listeners added using jQuery
.
Thanks.