Creating New project As you all new below command for generate a new project, but there are multiple flag you can set along with this command To create a new…
Tag:
angular2
How to send data from child component to parent Component using Event emitter – Angular
by Amey Raut
The easiest way to pass / send data from child component to parent Component is using @Output decorator and event emitter as below 1. Import Event Emitter and Output decorator…
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…
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…
To Hide/show a element based on the Radio input selection is can be achieved using ngModel Directive two way binding 1. First we need to import the form Module in…
Newer Posts