ngIf (directive)

Improve this Doc View Source ngIf

  1. directive in module ng

The ngIf directive removes or recreates a portion of the DOM tree based on an {expression}. If the expression assigned to ngIf evaluates to a false value then the element is removed from the DOM, otherwise a clone of the element is reinserted int