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
In AngularJS, data binding is synchronization of data between the model and the view. The model in AngularJS act as a single-source-of-truth. The view is
A promise is an interface that deals with objects that are returned or get filled in at a future point in time ( Basically, asynchronous
Services: Singleton objects that carry out the tasks necessary to support your application’s functionality. In built Angular services starts with $. for example. $http, $location,
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
Prerequisites Node 6.9.0 or higher NPM 3 or higher Angular CLI Create a new workspace and generate a new sample application by running the following
How to determine if the variable is undefined or null? Angular have angular.isUndefined but not angular.isUndefinedOrNull. In this post, we will show 3 ways to determine if
ngIf The ngIf removes the HTML element if the expression evaluates to false. If the expression evaluates to true, a copy of element is added in the
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,
$watch returns a de-registration function. Calling it would de-register the $watcher. var myVariableWatchObj = $scope.$watch(“myWatchAttribute”, function () { // code to perform }); //.. Calling function as
While working as a AngularJS developer, You should aware about different ways to inject DI into AngularJS Application, Controller, Service and Factory. Passing a dependency