Use the Renderer2 to add styles to an element in Angular

Share this video with your friends

Send Tweet

In this lesson we will go low-level and learn how you can get hold of the underlying native DOM element to add styling. Moreover we will learn how to make use of the Render2 to safely add style properties which even work in a server-side environment.

Chandrasekar Arunachalam
Chandrasekar Arunachalam
~ 7 years ago

Thanks for the wonderful tutorial.

Nathan Fowler
Nathan Fowler
~ 7 years ago

Why is the background color not actually yellow?