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.
Loading...
Related Quiz
- What method of HttpClient would you use to send a GET request?
- What tool is responsible for executing tests in a browser when testing Angular applications?
- You are tasked with implementing a feature where, upon clicking a button, the user should be redirected to the home page. Which method or feature of Angular's router would you utilize?
- Which header is crucial for making a CORS request to a different domain using HttpClient?
-
When using
, which lifecycle hook is ideal for accessing projected content inside the child component?