diff --git a/aio/content/guide/lifecycle-hooks.md b/aio/content/guide/lifecycle-hooks.md index 273d3c0ed3..7ca063e6c7 100644 --- a/aio/content/guide/lifecycle-hooks.md +++ b/aio/content/guide/lifecycle-hooks.md @@ -8,7 +8,7 @@ checks it when its data-bound properties change, and destroys it before removing Angular offers **lifecycle hooks** that provide visibility into these key life moments and the ability to act when they occur. -A directive has the same set of lifecycle hooks, minus the hooks that are specific to component content and views. +A directive has the same set of lifecycle hooks. {@a hooks-overview} @@ -25,7 +25,7 @@ that Angular calls shortly after creating the component: -No directive or component will implement all of the lifecycle hooks and some of the hooks only make sense for components. +No directive or component will implement all of the lifecycle hooks. Angular only calls a directive/component hook method *if it is defined*. {@a hooks-purpose-timing} @@ -86,12 +86,10 @@ calls the lifecycle hook methods in the following sequence at specific moments: - Respond after Angular projects external content into the component's view. + Respond after Angular projects external content into the component's view / the view that a directive is in. Called _once_ after the first `ngDoCheck()`. - _A component-only hook_. - @@ -100,12 +98,10 @@ calls the lifecycle hook methods in the following sequence at specific moments: - Respond after Angular checks the content projected into the component. + Respond after Angular checks the content projected into the directive/component. Called after the `ngAfterContentInit()` and every subsequent `ngDoCheck()`. - _A component-only hook_. - @@ -114,12 +110,10 @@ calls the lifecycle hook methods in the following sequence at specific moments: - Respond after Angular initializes the component's views and child views. + Respond after Angular initializes the component's views and child views / the view that a directive is in. Called _once_ after the first `ngAfterContentChecked()`. - _A component-only hook_. - @@ -128,12 +122,10 @@ calls the lifecycle hook methods in the following sequence at specific moments: - Respond after Angular checks the component's views and child views. + Respond after Angular checks the component's views and child views / the view that a directive is in. Called after the `ngAfterViewInit` and every subsequent `ngAfterContentChecked()`. - _A component-only hook_. -