Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for beforeNgDestroy or onDestroy refs of the destroyed DOM. #33680

smkrn110 opened this issue Nov 8, 2019 · 2 comments


Copy link

@smkrn110 smkrn110 commented Nov 8, 2019

馃殌 feature request

Relevant Package

This feature request is for @angular/....


I need to do stuff with the destroying DOM, but found ngDestroy calls after the DOM was removed.

Describe the solution you'd like

I want some lifecycle hook before ngDestroy (better)

Describe alternatives you've considered

or the reference of the destroyed DOM (object) in ngDestroyed

This comment has been minimized.

Copy link

@Airblader Airblader commented Nov 8, 2019

You should describe what you are looking to do specifically if you want to argue in favor of adding a hook. Perhaps there are other, existing solutions.

@kara kara added the comp: core label Nov 8, 2019
@ngbot ngbot bot added this to the needsTriage milestone Nov 8, 2019
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Nov 12, 2019

This comment has been minimized.

Copy link

@pkozlowski-opensource pkozlowski-opensource commented Nov 13, 2019

This is a duplicate of the existing issue #17404 - let's centralise the discussion in-there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
5 participants
You can鈥檛 perform that action at this time.