Directive are core feature of AngularJS. In AngularJS, directive you can think as special type of attribute used in HTML DOM to perform specific operation. AngularJS ships with set of directives such as ng-repeat, ng-bind etc. All AngularJS directives prefixed with the ng namespace. AngularJS allow you to write your own directives for Angular to use. AngularJS directives has the ability to execute methods, define behavior, attach controllers and $scope objects, manipulate the DOM, and more.
In this tutorial you will see some of commonly used directives.
ng-init: This directive is used to initializes an AngularJS Application data. This allow you to assign value to your scope variables.