0

I am using the below event listener in my directive code in Angular JS to execute certain logic once that event is triggered:

element.on("change", function(e) {
//Logic goes here
}

I want to know whether do we need to manually destroy these listeners or will angular destroy their listeners. If we need to manually remove, could you help me how to remove these event listeners?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
LearnAngular
  • 71
  • 2
  • 8
  • Check out this [answer](http://stackoverflow.com/questions/26983696/angularjs-does-destroy-remove-event-listeners) for a great explanation. – keithm Nov 09 '15 at 07:54

1 Answers1

0

It will be removed automatically

Kais
  • 1,925
  • 3
  • 23
  • 35