docs(ng-if): fix some missed occurrences of if, for, switch in docs
This commit is contained in:
parent
6a0fe93ba9
commit
d32f58926d
@ -213,11 +213,10 @@ import {DEFAULT} from 'angular2/change_detection';
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* A directive can also query for other child directives. Since parent directives are instantiated
|
* A directive can also query for other child directives. Since parent directives are instantiated
|
||||||
* before child
|
* before child directives, a directive can't simply inject the list of child directives. Instead,
|
||||||
* directives, a directive can't simply inject the list of child directives. Instead, the directive
|
* the directive injects a {@link QueryList}, which updates its contents as children are added,
|
||||||
* injects a {@link QueryList}, which updates its contents as children are added, removed, or moved
|
* removed, or moved by a directive that uses a {@link ViewContainerRef} such as a `ng-for`, an
|
||||||
* by a directive
|
* `ng-if`, or an `ng-switch`.
|
||||||
* that uses a {@link ViewContainerRef} such as a `for`, an `if`, or a `switch`.
|
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
* @Directive({ selector: '[my-directive]' })
|
* @Directive({ selector: '[my-directive]' })
|
||||||
@ -228,8 +227,7 @@ import {DEFAULT} from 'angular2/change_detection';
|
|||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* This directive would be instantiated with a {@link QueryList} which contains `Dependency` 4 and
|
* This directive would be instantiated with a {@link QueryList} which contains `Dependency` 4 and
|
||||||
* 6. Here, `Dependency`
|
* 6. Here, `Dependency` 5 would not be included, because it is not a direct child.
|
||||||
* 5 would not be included, because it is not a direct child.
|
|
||||||
*
|
*
|
||||||
* ### Injecting a live collection of descendant directives
|
* ### Injecting a live collection of descendant directives
|
||||||
*
|
*
|
||||||
|
@ -5,9 +5,8 @@ import {isBlank} from 'angular2/src/facade/lang';
|
|||||||
/**
|
/**
|
||||||
* Removes or recreates a portion of the DOM tree based on an {expression}.
|
* 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
|
* If the expression assigned to `ng-if` evaluates to a false value then the element
|
||||||
* the
|
* is removed from the DOM, otherwise a clone of the element is reinserted into the DOM.
|
||||||
* DOM, otherwise a clone of the element is reinserted into the DOM.
|
|
||||||
*
|
*
|
||||||
* # Example:
|
* # Example:
|
||||||
*
|
*
|
||||||
|
@ -179,7 +179,7 @@ export class NgSwitchWhen {
|
|||||||
/**
|
/**
|
||||||
* Defines a default case statement.
|
* Defines a default case statement.
|
||||||
*
|
*
|
||||||
* Default case statements are displayed when no `NgSwitchWhen` match the `switch` value.
|
* Default case statements are displayed when no `NgSwitchWhen` match the `ng-switch` value.
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user