-Directives are a unique and powerful feature available in AngularJS. Directives let you invent new HTML syntax, specific to your application.-We use directives to create reusable components.-A directive is essentially a function that executes when the Angular compiler finds it in the DOM(Document Object Model).-Each directive has a name (like ng-repeat,ng-model,etc) and each directive determines where it can be used: element, attribute, class, in a comment.

AngularJS directives are extended HTML attributes with the prefix ng-

Examples:

Quote:ng-repeat ,ng-app, ng-init, ng-model etc..

AngularJS has a set of built-in directives which offers functionality to your applications.you can also create own custom directives.custom directives are used in AngularJS to extends the Functionality of html.custom directive are defined using directive function.a custom directive simply replace the element for which it is activated.directive activates when a matching attribute is encountered.

Following are some AngularJS directives commonly used to design the AngularJS web application