Binding Directive Properties | Directives | Angular 12+
Вставка
- Опубліковано 10 лют 2022
- In this lecture, you will learn about custom property binding of directives in Angular. We have learned that we can use @Input decorator for custom property binding.
So, in this lecture, let's see how to bind a property of a directive using @Input and in which scenario we can use custom property binding of directives.
hi,.. what do I do when I only want one of the items to be highlighted? (in this case when a card has the highest likes and i want it to be highlighted)
You can add the directive conditionally. You can pass a condition to input property and whichever card satisfies that condition that directive will be applied on it.
I am going to cover this topic in the next lecture which I will upload today.
Hi Silvia. To answer you question, i thought its better to create a video on it. So, here is the link for that video. I hope you find it helpful. Cheers.
ua-cam.com/video/Pd4nz-9jq_4/v-deo.html
@@procademy this is so amazing.. thank you.. will check it out