Angular 4 updated the *ngIf directive with new feature that allows us to use if/else style syntax as shown below Using If <div *ngIf=”isValid”> If

Angular 4 updated the *ngIf directive with new feature that allows us to use if/else style syntax as shown below Using If <div *ngIf=”isValid”> If
ngIf The ngIf removes the HTML element if the expression evaluates to false. If the expression evaluates to true, a copy of element is added in the