Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(upgrade): clean up scope when element is destroyed #8102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

andreialecu
Copy link
Contributor

@andreialecu andreialecu commented Apr 16, 2016

This fixes a bug with change detection still being processed for destroyed components, and is a memory leak fix in itself.

I'm not sure how to test it since the error that this fixes is not catchable. It happens in a change detector.

  • What is the current behavior? (You can also link to an open issue here)

See #8100

  • What is the new behavior (if this is a feature change)?

The only change is to properly dispose the cloned scope when the element is destroyed.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

No

  • Other information:

@mary-poppins
Copy link

Merging PR #8102 on behalf of @robertmesserle to branch presubmit-robertmesserle-pr-8102.

@mary-poppins
Copy link

Merging PR #8102 on behalf of @robertmesserle to branch presubmit-robertmesserle-pr-8102.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants