Custom appClass directive | Directives | Angular 12+
13.3 هزار بار بازدید -
3 سال پیش
-
SO far we have learned
SO far we have learned how to create a custom attribute directive and how to use it on an HTML element or component. But we did not assigned any values to these directives. We simply used them.
In this lecture, let's learn how to pass some value for a directive and how to use that value in directive. To understand this we are going to create our own ngClass directive in this lecture and we will learn how we can implement a directive like ngClass of our own.
This example will helps us to understand the directives better and then we can implement our own complex directives like ngClass.
Learn about Object.entries(): • How to Loop Over Objects in JavaScrip...
Learn about destructuring: • What is Destructuring & Destructuring...
3 سال پیش
در تاریخ 1400/11/23 منتشر شده
است.
13,344
بـار بازدید شده