The ngSwitch is an Angular 2 structural directive, which allows us to Add/Remove DOM Element.It is similar to switch statement of C#. In this tutorial, we will look at the syntax of ngSwitch . We will show you how to use ngSwitch using an example code.
In this Angular Webpack tutorial, we will take you through the process of creating the Angular Application from scratch using Webpack as our module loader.
Angular Application needs to set up a lot of configuration files and libraries before getting up and running. You also need to take few decisions before you get started with Angular. All these are discussed in the Tutorial Installing and getting started with Angular
In this tutorial, we are going to build an Angular 2 Application using Angular 2 CLI. The Angular 2 CLI is a Command Line Interface (CLI), which helps you to get started with Angular 2 application. In this Angular CLI tutorial, we will look at how to create your first Angular 2 Application
In this Introduction to Angular Directive, we are going to look at the Angular Directives. We will look at three types of directives that Angular supports like Component, Structural and Attribute Directives. We also look at the few of the most commonly used Angular directives.
In this tutorial, we will look at the syntax of ngFor. We will show you how to use ngFor using an example code. We further look at the local variables like Index, First, Last, odd and even, which is exported by the ngFor directive. The use of local variables is demonstrated by creating a simple code to Format odd & even rows of a table by assigning different classes to them. Finally, we look at the Track By (trackBy) clause, which enhances the performances of the ngFor.