From d32f58926dd15a5771f5e3a3c2b77ea41c03b98b Mon Sep 17 00:00:00 2001 From: Naomi Black Date: Tue, 2 Jun 2015 08:55:58 -0700 Subject: [PATCH] docs(ng-if): fix some missed occurrences of if, for, switch in docs --- .../src/core/annotations_impl/annotations.ts | 12 +++++------- modules/angular2/src/directives/ng_if.ts | 5 ++--- modules/angular2/src/directives/ng_switch.ts | 2 +- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/modules/angular2/src/core/annotations_impl/annotations.ts b/modules/angular2/src/core/annotations_impl/annotations.ts index 8c934488bd..3501d3f23a 100644 --- a/modules/angular2/src/core/annotations_impl/annotations.ts +++ b/modules/angular2/src/core/annotations_impl/annotations.ts @@ -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 * diff --git a/modules/angular2/src/directives/ng_if.ts b/modules/angular2/src/directives/ng_if.ts index 348f273ca8..6f62dad982 100644 --- a/modules/angular2/src/directives/ng_if.ts +++ b/modules/angular2/src/directives/ng_if.ts @@ -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: * diff --git a/modules/angular2/src/directives/ng_switch.ts b/modules/angular2/src/directives/ng_switch.ts index cdbb8ac43c..bd36984946 100644 --- a/modules/angular2/src/directives/ng_switch.ts +++ b/modules/angular2/src/directives/ng_switch.ts @@ -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: *