4 min read
•Question 40 of 46mediumRenderer2
Safe DOM manipulation in Angular.
What is Renderer2?
Renderer2 is an abstraction for DOM manipulation that works across platforms (browser, server, web workers).
Why Use It?
- Platform independence
- Security (avoids direct DOM access)
- Better for SSR
- Testability