Category:: Angular 2

How to Deploy an Angular app in Production with Nginx

This tutorial I will show you Nginx installation and configuration steps to serve Angular application in production. I am gonna use Ubuntu 16.04 operating system. Install and Configure Nginx for Angular First update the […]

Cascading dropdown in Angular

In this article, you will learn how to use cascading DropDownList using Angular application. In following tutorial you gonna use Angular CLI to create an application. Here is the official website of Angular CLI. Why Angular […]

Angular – Global API service request method

Using HTTP service directly in all over the application is won’t really scale, its only work for small applications. Having central location to manage HTTP calls, will reduce the maintenance and its robust solution. […]

Angular NgSwitch Directive

The NgSwitch directive lets you to insert different sets of elements into the document based on a specified value or expression.NgSwitch Directive resides inside CommonModule module, so you can import it as shown below […]

How can I paginate an array of objects in JavaScript?

Depending on your needs sometimes you may wish to create a pagination with an array of items. This post will teach you, paginating an array objects in Javascript. When manually(Without plugins) paginating, you should manually […]

How to Apply CSS Classes Conditionally in Angular 2

Angular 2 provide different ways to apply class to the elements based on certain conditions. In this post I would like to show you couple of ways to conditionally applying class to a DOM element in Angular 2 with ngClass. […]

Exponentiation operator (**) in JavaScript

The exponentiation operator was introduced in ECMAScript 2016, ** is used to denote this operator. It accepts base on its left-hand side and exponent on its right-hand side, respectively. Syntax Prior to exponentiation […]

JavaScript ES6 Destructuring in Depth

Destructuring is alluring language feature, I’ve been using the most. Destructuring is provides a convenient way of extracting multiple values from the objects, Arrays, Map and Set. For better and easy understanding, […]

JavaScript Promise API

Promises can replace the asynchronous use of callbacks, and they provide several benefits over them. Basic Promise Usage A new Promise is created with the new Promise() constructor and the promise provides resolve and […]

JavaScript const keyword

In my previous post I wrote about let keyword, in this post I would like to write about another new ECMAScript 6 keyword, const. There is no much difference between const and let, both works similar way , both are having […] Protection Status