react-angular
react-angular copied to clipboard
Destroy $scope on component unmount
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.