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,
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
It’s possible to get an empty HTTP_REFERER. The scenarios under which the referrer field will/may be empty when the end-user entered the site URL in
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
Check if element is visible or hidden in jQuery? The below code will help to identify if the element is visible or not:
With jQuery 3.3.0, the .addClass(), .removeClass(), and .toggleClass() methods accept an array of classes. We will see how to add different color to n number of div elements on
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