The post Using Renderer2 in Angular 9/8 | Angular Renderer2 Tutorial appeared first on positronX.io.
Renderer2 in Angular 9/8 will be dealt with in this article. Without directly touching DOM, you will be able to manipulate the elements of your app in Angular 9/8 with the help of the Renderer2 class. This class is an abstraction. This approach is highly recommended for various reasons.
Thanks to the Renderer2 service in Angular, you will be able to develop apps which can be rendered in various environments, even the ones that don’t have DOM access. For instance, you don’t have DOM access in environments like native mobile, web worker or a server.