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.
In this tutorial, we look at how to add a Child Component to our Angular 2 application. In our how to create Angular 2 Application, we created an AppComponent, which is a root component of our application.The AppComponent is bootstrapped in the app.module.ts file and loaded in the index.html file using the directive
Angular Components Child Component in Angular In this tutorial, we are going to look at the How Data Binding works in Angular with examples. We will take a look at various ways to bind data in Angular like Interpolation, Property Bindings, Event Bindings & Two Way Bindings. We will look at how to use the ngModel […]
In this tutorial, we are going to look at Angular Components. We will look at the building blocks of the component and the important metadata properties of Components like selector, template, styleURL etc. We also show you how to create a simple component in Angular.
It is very important to know how the framework works before you start using it. In this article let us look at some of the important Angular2 building blocks (Angular2 Architecture ) and concepts