Question from the Angular 4 (legacy) test

What are directives in AngularJS?