Which method of ViewContainerRef allows you to insert a component?

  • createComponent()
  • deleteComponent()
  • updateComponent()
  • renderComponent()
The method of ViewContainerRef that allows you to insert a component is createComponent(). This method is used to create and insert a dynamic component into the specified view container. The other options are not valid methods of ViewContainerRef and do not serve the purpose of inserting components.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *