The most used directives in AngularJS are ng-app, ng-init and ng-model. Lets discuss about the each of the directives in detail:

The most used directives in AngularJS are ng-app, ng-init and ng-model. Lets discuss about the each of the directives in detail:
AngularJS directives are used to extend HTML. In simple words, AngularJS are DOM Manipulator that tells AngularJS’s HTML compiler ($compile
) to provide a specific behavior to DOM element (such as
Compile function: During compile phase Angular compiles your directive. this function is called only once for each references to the directive. Eg. You are using
In AngularJS, Scope works as a glue between controller and model. While working with directive you can use scope attribute and it can be true,