Definition – AngularJS directive adds angularJS functionalities to HTML.
or
AngularJs Directives introduces AngularJS to HTML.
or
AngularJs Directives enables AngularJs to work with HTML.
or
AngularJs Directives allows HTML to extend with AngularJS attributes.
Syntax – ng-
AngularJS Directive- There are total 55 Directives and we can also create our own directives.
Most Useful directives are following :
- ng-app: Starts an AngularJS Application.
- ng-init: Initializes data.
- ng-model: A variable to be used in AngularJS.
- ng-repeat: Repeats for each item in a collection.