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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(core): describe your change... #34513

Closed
wants to merge 1 commit into from
Closed

docs(core): describe your change... #34513

wants to merge 1 commit into from

Conversation

zacnomore
Copy link
Contributor

According to https://angular.io/guide/lifecycle-hooks#ondestroy
"Put cleanup logic in ngOnDestroy(), the logic that must run before Angular destroys the directive."

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

These two sections of the docs are in disagreement. I investigated and believe this is now correctly describing the behavior.

Issue Number: N/A

What is the new behavior?

Document that ngOnDestroy runs before the directive is destroyed.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@zacnomore zacnomore requested a review from a team as a code owner December 20, 2019 16:48
@ngbot ngbot bot modified the milestone: Backlog Dec 23, 2019
@kapunahelewong kapunahelewong added this to Pending - Top of backlog in docs Dec 23, 2019
@kapunahelewong kapunahelewong added the state: needs eng review Needs technical review and approval from engineering team label Dec 23, 2019
@kapunahelewong kapunahelewong moved this from Pending - Top of backlog to Need Assistance from Eng. in docs Dec 23, 2019
According to https://angular.io/guide/lifecycle-hooks#ondestroy
"Put cleanup logic in ngOnDestroy(), the logic that must run before Angular destroys the directive."
@mhevery mhevery added the action: merge The PR is ready for merge by the caretaker label Feb 26, 2020
@mhevery mhevery removed the request for review from pkozlowski-opensource February 26, 2020 17:57
mhevery pushed a commit that referenced this pull request Feb 26, 2020
According to https://angular.io/guide/lifecycle-hooks#ondestroy
"Put cleanup logic in ngOnDestroy(), the logic that must run before Angular destroys the directive."
PR Close #34513
@mhevery mhevery closed this in 8fbb966 Feb 26, 2020
@zacnomore zacnomore deleted the patch-1 branch February 26, 2020 21:43
@jbogarthyde jbogarthyde moved this from Need Assistance from Eng. to Done in docs Mar 2, 2020
@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 Mar 28, 2020
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 effort1: hours risk: low state: needs eng review Needs technical review and approval from engineering team target: patch This PR is targeted for the next patch release type: bug/fix
Projects
docs
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants