diff --git a/modules/angular2/src/core/annotations_impl/annotations.js b/modules/angular2/src/core/annotations_impl/annotations.js index e1b4c48da0..3890bf64dc 100644 --- a/modules/angular2/src/core/annotations_impl/annotations.js +++ b/modules/angular2/src/core/annotations_impl/annotations.js @@ -49,8 +49,8 @@ import {DEFAULT} from 'angular2/change_detection'; * Shadow DOM root. Current element is not included in the resolution, therefore even if it could resolve it, it will * be ignored. * - `@Parent() directive:DirectiveType`: any directive that matches the type on a direct parent element only. - * - `@Children query:Query`: A live collection of direct child directives (will be implemented in later release). - * - `@Descendants query:Query`: A live collection of any child directives (will be implemented in later relaese). + * - `@Query(DirectiveType) query:QueryList`: A live collection of direct child directives. + * - `@QueryDescendants(DirectiveType) query:QueryList`: A live collection of any child directives. * * To inject element-specific special objects, declare the constructor parameter as: * - `element: ElementRef` to obtain a reference to logical element in the view. @@ -193,7 +193,7 @@ import {DEFAULT} from 'angular2/change_detection'; * ``` * @Directive({ selector: '[my-directive]' }) * class MyDirective { - * constructor(@Query(Marker) dependencies:QueryList) { + * constructor(@Query(Dependency) dependencies:QueryList) { * } * } * ``` @@ -205,12 +205,12 @@ import {DEFAULT} from 'angular2/change_detection'; * * Note: This is will be implemented in later release. () * - * Similar to `@Children` above, but also includes the children of the child elements. + * Similar to `@Query` above, but also includes the children of the child elements. * * ``` * @Directive({ selector: '[my-directive]' }) * class MyDirective { - * constructor(@QueryDescendents(Marker) dependencies:QueryList) { + * constructor(@QueryDescendents(Dependency) dependencies:QueryList) { * } * } * ```