AngularTS
    Preparing search index...

    Interface OnDestroy

    Interface for the $onDestroy lifecycle hook https://docs.angularjs.org/api/ng/service/$compile#life-cycle-hooks

    interface OnDestroy {
        $onDestroy(): void;
    }
    Index

    Methods

    Methods

    • Called on a controller when its containing scope is destroyed. Use this hook for releasing external resources, watches and event handlers.

      Returns void