Skip to content

ADEV: rework "Programmatically rendering components" section to mention @deferΒ #56782

@AndrewKushnir

Description

@AndrewKushnir

Describe the problem that you experienced

Since v18, @defer became a stable feature and can be used in many use-cases where NgComponentOutlet and ViewContainerRef were previously used. The "Programmatically rendering components" section can be reworked to show an example of NgComponentOutlet (we can probably drop the ViewContainerRef example, potentially moving it to the "Usage notes" of the ViewContainerRef.createComponent function itself) and after that we can show how defer loading can be achieved via @defer.

Enter the URL of the topic with the problem

https://angular.dev/guide/components/programmatic-rendering

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: docs-infraAngular.dev application and infrastructuregood first issueLabel noting a good first issue to be worked on by a community memberopen for contributionsAn 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