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.

КОМЕНТАРІ • 4

  • @silvianjoki921
    @silvianjoki921 2 роки тому +2

    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)

    • @procademy
      @procademy  2 роки тому

      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.

    • @procademy
      @procademy  2 роки тому +2

      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

    • @silvianjoki921
      @silvianjoki921 2 роки тому +1

      @@procademy this is so amazing.. thank you.. will check it out