Skip to content

Commit 7aa14f5

Browse files
committed
docs(ng-if): fix some missed occurrences of if, for, switch in docs
1 parent d83fa45 commit 7aa14f5

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

modules/angular2/src/core/annotations_impl/annotations.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,10 @@ import {DEFAULT} from 'angular2/change_detection';
213213
*
214214
*
215215
* A directive can also query for other child directives. Since parent directives are instantiated
216-
* before child
217-
* directives, a directive can't simply inject the list of child directives. Instead, the directive
218-
* injects a {@link QueryList}, which updates its contents as children are added, removed, or moved
219-
* by a directive
220-
* that uses a {@link ViewContainerRef} such as a `for`, an `if`, or a `switch`.
216+
* before child directives, a directive can't simply inject the list of child directives. Instead,
217+
* the directive injects a {@link QueryList}, which updates its contents as children are added,
218+
* removed, or moved by a directive that uses a {@link ViewContainerRef} such as a `ng-for`, an
219+
* `ng-if`, or an `ng-switch`.
221220
*
222221
* ```
223222
* @Directive({ selector: '[my-directive]' })
@@ -228,8 +227,7 @@ import {DEFAULT} from 'angular2/change_detection';
228227
* ```
229228
*
230229
* This directive would be instantiated with a {@link QueryList} which contains `Dependency` 4 and
231-
* 6. Here, `Dependency`
232-
* 5 would not be included, because it is not a direct child.
230+
* 6. Here, `Dependency` 5 would not be included, because it is not a direct child.
233231
*
234232
* ### Injecting a live collection of descendant directives
235233
*

modules/angular2/src/directives/ng_if.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ import {isBlank} from 'angular2/src/facade/lang';
55
/**
66
* Removes or recreates a portion of the DOM tree based on an {expression}.
77
*
8-
* If the expression assigned to `if` evaluates to a false value then the element is removed from
9-
* the
10-
* DOM, otherwise a clone of the element is reinserted into the DOM.
8+
* If the expression assigned to `ng-if` evaluates to a false value then the element
9+
* is removed from the DOM, otherwise a clone of the element is reinserted into the DOM.
1110
*
1211
* # Example:
1312
*

modules/angular2/src/directives/ng_switch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class NgSwitchWhen {
179179
/**
180180
* Defines a default case statement.
181181
*
182-
* Default case statements are displayed when no `NgSwitchWhen` match the `switch` value.
182+
* Default case statements are displayed when no `NgSwitchWhen` match the `ng-switch` value.
183183
*
184184
* Example:
185185
*

0 commit comments

Comments
 (0)