Which of the following is NOT a method available on ViewContainerRef?

  • clear
  • createEmbeddedView
  • detach
  • detectChanges
detectChanges is not a method available on ViewContainerRef. ViewContainerRef is primarily used for manipulating the view container's content, including creating embedded views, detaching, and clearing views. detectChanges is typically used on a ChangeDetectorRef to trigger change detection in Angular.
Add your answer
Loading...

Leave a comment

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