96. Creating a Basic Attribute Directive

6:42 2 સ્પીકર 2 પ્રકરણો 157 સેગમેન્ટ્સ

પ્રકરણો

  1. 0:02

    So we already use attribute directives like ng -class and ng -style. It's even easier to understand what they do once we've built our own one. So I want to build a directive which simply highlights the element I hover over, let's say. Of co…

  2. 5:02

    Now let's use this directive. To use it, we have to do two things. First of all, like for a component, we have to inform Angular that we have a new directive. Just like with components, it doesn't scan all our files, so it doesn't know. So …