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
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
Angular 4 updated the *ngIf directive with new feature that allows us to use if/else style syntax as shown below Using If <div *ngIf=”isValid”> 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
Single-Page Applications (SPAs) are web applications that load a single HTML page and dynamically update that page as the user interacts with the app. SPAs use AJAX and HTML5 to create fluid and responsive Web apps,
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