What are directives?
Directive is basically a function which gets executed when the Angular compiler finds it in DOM.
There are three types of directives in Angular:
Component
-Directives with a template
Structure Directive
-Change layout of the elements
Attribute Directive
-Change the appearance or behavior of a particular element.