Before starting the article, I suggest you to go through my previous two articles on AngularJS:

Now let’s start with directives in AngularJS.

What are Directives?

AngularJS directives are only used to extend HTML and DOM element's behavior. These are special attributes starting with ng- prefix that tell AngularJS's HTML compiler ($compile) to attach a specified behaviour to that DOM element.

AngularJS having a set of built-in directives like:

And also we can create our own directives for Angular to use them in our AngularJS application with controllers and services too. So in this article we’ll learn about some most important built-in directives like: ng-app, ng-init, ng-model, ng-bind and ng-repeat.

Hope you enjoyed this article and stay tuned for upcoming articles.

Read more articles on AngularJS: