Hello again, everyone.
So far, we've gotten through quite a bit with the basics of angular.
We've created components and we've linked our project with these components.
Then we learned about data mining and angular.
And through all of that, we learned the communications between our components and templates.
So now we're going to cover directive's and again, it's another fundamental.
Of angular, so an angular directives are used to manipulate dumb objects using angular directives,
we can change the appearance, the behavior or even the layout of a dumb object.
So directives are basically instructions inside the dome.
Directives are classified under three different headings, according to how they behave.
Component directive's structural directives and attribute directives.
In fact, we've already used directive's without you knowing it.
Because we've been using component directives.
So angular components are specialized directive's.
We could also say that directives are the ones with templates, component directives form the main class,
so it directs how the component should be started and processed during runtime and how it should be
used.
Structural directive's.
Are used to manipulate and change the structure of the game object, and they will start with the asterisk
side.
For example, Asterisk Angie, if DirecTV, asterisk, NJIT, switch DirecTV and asterisk gng for DirecTV,
right?
So NGF is a directive that allows adding and deleting DOM elements.
Energy Switch is a directive that also allows adding into leading DOM element, so it's similar to switch
usage in C sharp and similar languages.
And G4 is the directive for adding iterable HTML fragments in HTML for a list.
Now, attribute directives are used to change the appearance and behavior of the dam object, for example,
Engy Class Directive and Engy style directive, and there's others.
Engie class directive is used to add and delete excess classes to HTML elements.
The Engy style directive is used to add styles to HTML elements and change styles dynamically.