Class Overview
Selectors
[ngIf]
Class Description
Removes or recreates a portion of the DOM tree based on an {expression}.
If the expression assigned to ngIf evaluates to a falsy value then the element
is removed from the DOM, otherwise a clone of the element is reinserted into the DOM.
Example (live demo):
Syntax
<div *ngIf="condition">...</div><div template="ngIf condition">...</div><template [ngIf]="condition"><div>...</div></template>
exported from @angular/common/index, defined in @angular/common/src/directives/ng_if.ts