react-angular icon indicating copy to clipboard operation
react-angular copied to clipboard

Destroy $scope on component unmount

Open gaelollivier opened this issue 6 years ago • 0 comments

When the react component unmounts, the angular component needs to be cleaned-up.

This PR destroys the angular scope on component unmount, preventing any watchers / event handlers from running after the component is removed from the page.

gaelollivier avatar May 16 '19 00:05 gaelollivier