اسپیکر
فصل
-
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 …