The easiest way to pass / send data to child component is using decorator as below 1. Add a property to child component tag with the data required to pass…
Monthly Archives
April 2020
Following are the different length properties used in CSS 1. px – I know you all know this 🙂 It is based on device px and it is not related…
How to use *ngFor the condition in Angular for select option element. Select the first or last element in For loop -Angular
by Amey Raut
There are three structural directives in angular 1.*ngFor condition is similar to any other for the condition we used in other languages In the below example *ngFor is added to…
There are three structural directives in angular 1. [ngSwtich] condition can be use when you wanted to testfy with mutlple values In the below example [ngSwitch] directive is added to…
There are three structural directives in angular 1. *ngIf (with else) use to hide/show element using like if-else condition as shown below In below example we add else condition in…