angular Exploring Angular DOM manipulation techniques using ViewContainerRef The article explores common elements used for DOM manipulation in Angular with a particular focus on ViewContainerRef. Learn why they are needed, how they work and when you need to use which.
angular Here is how to get ViewContainerRef before @ViewChild query is evaluated ViewContainerRef can usually only be used after ngAfterViewInit hook. This article shows how to get access to ViewContainerRef earlier using a directive instead of template reference and ViewChild query.