Interface for the onDestroy lifecycle hook https://docs.angularjs.org/api/ng/service/$compile#life-cycle-hooks
Called on a controller when its containing scope is destroyed. Use this hook for releasing external resources, watches and event handlers.
Interface for the onDestroy lifecycle hook https://docs.angularjs.org/api/ng/service/$compile#life-cycle-hooks