p.
exported from angular2/directives
defined in angular2/src/directives/if.js (line 33)
:markdown
Removes or recreates a portion of the DOM tree based on an {expression}.
If the expression assigned to `if` evaluates to a false value then the element is removed from the
DOM, otherwise a clone of the element is reinserted into the DOM.
# Example:
```
0" class="error">
{{errorCount}} errors detected
```
# Syntax
- `...
`
- `...
`
- `...
`
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
(viewContainer: ViewContainer)
:markdown
.l-sub-section
h3 condition
pre.prettyprint
code.
(newCondition)
:markdown
.l-sub-section
h3 prevCondition
:markdown
.l-sub-section
h3 viewContainer
:markdown