95.2k views
0 votes
When does the ngAfterContentInit method run in an Angular component's lifecycle?

a) After ngDoCheck
b) After ngAfterViewInit
c) After content projection into the component's view
d) During object creation

User Shushan
by
7.8k points

1 Answer

7 votes

Final answer:

The ngAfterContentInit method in an Angular component's lifecycle runs after content projection into the component's view.

Step-by-step explanation:

The ngAfterContentInit method in an Angular component's lifecycle runs after content projection into the component's view. It is called once the projected content has been initialized. This method is useful for accessing and manipulating the projected content, as well as performing any necessary setup after it has been rendered.

User Deantawonezvi
by
8.2k points