docs(ng-if): fix some missed occurrences of if, for, switch in docs

This commit is contained in:
Naomi Black 2015-06-02 08:55:58 -07:00
parent 6a0fe93ba9
commit d32f58926d
3 changed files with 8 additions and 11 deletions

View File

@ -213,11 +213,10 @@ import {DEFAULT} from 'angular2/change_detection';
*
*
* A directive can also query for other child directives. Since parent directives are instantiated
* before child
* directives, a directive can't simply inject the list of child directives. Instead, the directive
* injects a {@link QueryList}, which updates its contents as children are added, removed, or moved
* by a directive
* that uses a {@link ViewContainerRef} such as a `for`, an `if`, or a `switch`.
* before child directives, a directive can't simply inject the list of child directives. Instead,
* the directive injects a {@link QueryList}, which updates its contents as children are added,
* removed, or moved by a directive that uses a {@link ViewContainerRef} such as a `ng-for`, an
* `ng-if`, or an `ng-switch`.
*
* ```
* @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
* 6. Here, `Dependency`
* 5 would not be included, because it is not a direct child.
* 6. Here, `Dependency` 5 would not be included, because it is not a direct child.
*
* ### Injecting a live collection of descendant directives
*

View File

@ -5,9 +5,8 @@ import {isBlank} from 'angular2/src/facade/lang';
/**
* 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.
* If the expression assigned to `ng-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:
*

View File

@ -179,7 +179,7 @@ export class NgSwitchWhen {
/**
* 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:
*