Skip to content

No clarification about definition of content initialization #54936

@krp12345

Description

@krp12345

Describe the problem that you experienced

Docs should define the term "content fully initialized".
to understand what "content fully initialized" term mean, I did some observation in my personal projects.

My understanding is, When we say component is initialized (not view initialized) , it means, for all content children

  • constructor is invoked. if coded
  • ngOnChanges is invoked. if coded
  • ngOnInit is invoked. if coded
  • ngDoCheck is invoked. if coded.

That all reduces to : Component is initialized mean angular has called all the hooks required before first change detection cycle and change detection is not yet triggered.

Is my understanding correct?

I am finding for what is the exact contract of ngAfterContentInit life cycle hook?

Enter the URL of the topic with the problem

https://angular.io/api/core/AfterContentInit

Describe what you were looking for in the documentation

concise crisp definition of what a component and content initialization means. so, that developer has concise crisp expectation from the ngAfterContentInit hook.

Describe the actions that led you to experience the problem

I was reading a doc of lifecycle hook. and I found out that initialization term can be defined well.

Describe what you want to experience that would fix the problem

concise crisp definition of what a component and content initialization means. so, that developer has concise crisp expectation from the ngAfterContentInit hook.

Add a screenshot if that helps illustrate the problem

NA

If this problem caused an exception or error, please paste it here

NA

If the problem is browser-specific, please specify the device, OS, browser, and version

NA

Provide any additional information here in as much as detail as you can

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: docsRelated to the documentationhelp wantedAn issue that is suitable for a community contributor (based on its complexity/scope).

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions