ngIf (directive)
Improve this Doc View Source ngIf
- 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