1

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.

Francisc
  • 77,430
  • 63
  • 180
  • 276
  • Please reopen, it's not a duplicate as I am not asking about listeners added using jQuery. jqLite is part of Angular and I don't think you have to remove them in the `$destroy` callback as that is done automatically by Angular for you. – Francisc Dec 17 '13 at 22:52

0 Answers0