I have a question about directives in Angular. Let's say we have a directive called "myDirective". Here is the corresponding HTML:
<div my-directive>
</div>
When we remove this <div>
element from the DOM, will Angular automatically destroy the scope of myDirective and its watchers? Or do I need to manually listen for the "$destroy" event on the <div>
DOM element and then call scope.$destroy
inside the event listener?