What are directives in AngularJS?

Directives are special tokens in the DOM that tell AngularJS to extend HTML functionality. Built-in directives include ng-model, ng-bind, and ng-repeat.

<input type="text" ng-model="name">
<p>Hello, {{name}}!</p>