Improve ViewContainerRef.createComponent docs #43602
Labels
area: core
Issues related to the framework runtime
core: dynamic view creation
doc-topic: reference
Use only with "comp: docs" for issues in the reference topics
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
state: needs eng input
Milestone
Description
Current documentation of the
ViewContainerRef.createComponent
(https://angular.io/api/core/ViewContainerRef#createComponent) should be improved, specifically:projectableNodes
format is quite unclear (why it's an array of arrays and how to use it)ngModuleRef
should be provided and what's its roleinjector
andngModuleRef
relationship is not clearly documented (they do have an overlap from DI perspective)This is inspired by the recent changes to the
ViewContainerRef.createComponent
function within PR #43022, see #43022 (comment) and #43022 (comment).What is the affected URL?
https://angular.io/api/core/ViewContainerRef#createComponent
The text was updated successfully, but these errors were encountered: