inDepth.dev
  • Our Manifesto
Subscribe
Tagged

view-container-ref

A collection of 2 posts

Exploring Angular DOM manipulation techniques using ViewContainerRef
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.

  • Max Koretskyi
Max Koretskyi Nov 27, 2019 • 9 min read
Here is how to get ViewContainerRef before @ViewChild query is evaluated
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.

  • Max Koretskyi
Max Koretskyi Jun 6, 2017 • 3 min read
inDepth.dev © 2023
Powered by Ghost