Angular: Stop Manipulating DOM With ElementRef
Jul 26, 2017 · 2 min read

I need to share this story with you. Recently, I discovered the power of Renderer in Angular.
(Renderer is deprecated so use Renderer2; however, I will just use Renderer in this article.)
Manipulating the DOM is easy with Angular. We can directly access the element by using ElementRef provided by @angular/core.


