Angular Training Part 5 - Building Custom Attribute Directive in Angular using ElementRef & Renderer

Опубликовано: 23 Октябрь 2024
на канале: SiddAjmera
1,683
21

In this video, I'll talk about building your very own Custom Attribute Directive in Angular.
We'll first build that directive leveraging ElementRef to directly access and change the DOM.

Then we'll leverage a Renderer to change the value of an HTML Element.

We'll also have a look at aliasing the input properties to the name of the directive itself so that it could be used without using a second property binding syntax in the host