Directives are markers on a DOM element (such as an attribute) that tell Angular to attach a specified behavior to an existing element.
Directives have been around since AngularJS. They’re quite complex to use, though they’re a lot easier to use in Angular, especially when it comes to passing data into directives. Directives used to be the main way of creating custom tags in an AngularJS application; now that’s been replaced by directives and components.
Angular itself provides many directives to help you in your coding. You can also code your own.