@@ -8,7 +8,7 @@ checks it when its data-bound properties change, and destroys it before removing
88Angular offers ** lifecycle hooks**
99that provide visibility into these key life moments and the ability to act when they occur.
1010
11- A directive has the same set of lifecycle hooks, minus the hooks that are specific to component content and views .
11+ A directive has the same set of lifecycle hooks.
1212
1313{@a hooks-overview}
1414
@@ -25,7 +25,7 @@ that Angular calls shortly after creating the component:
2525
2626<code-example path =" lifecycle-hooks/src/app/peek-a-boo.component.ts " region =" ngOnInit " title =" peek-a-boo.component.ts (excerpt) " linenums =" false " ></code-example >
2727
28- No directive or component will implement all of the lifecycle hooks and some of the hooks only make sense for components .
28+ No directive or component will implement all of the lifecycle hooks.
2929Angular only calls a directive/component hook method * if it is defined* .
3030
3131{@a hooks-purpose-timing}
@@ -86,12 +86,10 @@ calls the lifecycle hook methods in the following sequence at specific moments:
8686 </td>
8787 <td>
8888
89- Respond after Angular projects external content into the component's view.
89+ Respond after Angular projects external content into the component's view / the view that a directive is in .
9090
9191 Called _once_ after the first `ngDoCheck()`.
9292
93- _A component-only hook_.
94-
9593 </td>
9694 </tr >
9795 <tr style =' vertical-align :top ' >
@@ -100,12 +98,10 @@ calls the lifecycle hook methods in the following sequence at specific moments:
10098 </td>
10199 <td>
102100
103- Respond after Angular checks the content projected into the component.
101+ Respond after Angular checks the content projected into the directive/ component.
104102
105103 Called after the `ngAfterContentInit()` and every subsequent `ngDoCheck()`.
106104
107- _A component-only hook_.
108-
109105 </td>
110106 </tr >
111107 <tr style =' vertical-align :top ' >
@@ -114,12 +110,10 @@ calls the lifecycle hook methods in the following sequence at specific moments:
114110 </td>
115111 <td>
116112
117- Respond after Angular initializes the component's views and child views.
113+ Respond after Angular initializes the component's views and child views / the view that a directive is in .
118114
119115 Called _once_ after the first `ngAfterContentChecked()`.
120116
121- _A component-only hook_.
122-
123117 </td>
124118 </tr >
125119 <tr style =' vertical-align :top ' >
@@ -128,12 +122,10 @@ calls the lifecycle hook methods in the following sequence at specific moments:
128122 </td>
129123 <td>
130124
131- Respond after Angular checks the component's views and child views.
125+ Respond after Angular checks the component's views and child views / the view that a directive is in .
132126
133127 Called after the `ngAfterViewInit` and every subsequent `ngAfterContentChecked()`.
134128
135- _A component-only hook_.
136-
137129 </td>
138130 </tr >
139131 <tr style =' vertical-align :top ' >
0 commit comments