Angular NgIf
directive A structural directive that conditionally includes a template based on the value of an expression coerced to Boolean. When the expression evaluates to true, Angular renders the template provided in a then clause, and when false or null, Angular renders the template provided in an optional else clause. The default template for the else clause is blank. See more... Exported from CommonModule Selectors [ ngIf] Properties Property Description @ Input() ngIf : T Write-Only The Boolean expression to evaluate as the condition for showing a template. @ Input() ngIfThen : TemplateRef< NgIfContext<T>> Write-Only A template to show if the condition expression evaluates to true. @ Input() ngIfElse : TemplateRef< NgIfContext<T>> Write-Only A template to show if the condition expression evaluates to false. Description A shorthand form of the directive, * ngIf="condition" , is generally used, p...