The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Using the Angular scope $destroy event and method.

Using the Angular scope $destroy event and method.

4:25
With Angular scopes, you have access to a `$destroy` event that can be used to watch $scope events. This is used for cleanup, and gives you a final opportunity to access any data on a scope. Scopes also have a (rarely used) `$destroy` method that allows you to manually destroy a scope.
Watch this lesson now
Avatar
egghead.io

With Angular scopes, you have access to a $destroy event that can be used to watch $scope events. This is used for cleanup, and gives you a final opportunity to access any data on a scope. Scopes also have a (rarely used) $destroy method that allows you to manually destroy a scope.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?