Angular provides a set of classes like Renderer2 and ______ to safely manipulate the DOM without direct access.

  • DomHelper
  • DomManipulator
  • ElementRef
  • Renderer3
Angular provides a set of classes like Renderer2 to safely manipulate the DOM without direct access. These classes abstract away direct DOM manipulation, promoting a safer and more Angular-friendly way to interact with the DOM. ElementRef is used to access the underlying DOM element, not to manipulate it directly. DomManipulator and Renderer3 are not standard Angular classes.
Add your answer
Loading...

Leave a comment

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