96. Creating a Basic Attribute Directive
6:42
2 സ്പീക്കറുകള്
2 അദ്ധ്യായങ്ങള്
157 ഗ്രൂപ്പുകള്
സ്പീക്കറുകള്
അദ്ധ്യായങ്ങള്
-
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…
-
5:02അദ്ധ്യായം 2: Now let's use this directive. 97s · Speaker 1
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 …