The Directive’s unMounted Hook
In this lesson, we learn about a common gotcha when using custom directives together with intervals and events. The key to avoiding such bugs is using the unmounted hook to clear the interval or detach the event listener.
Links
