Skip to content

Commit 7643d97

Browse files
eggersvicb
authored andcommitted
docs(annotations): fixes
1 parent d18463d commit 7643d97

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ import {DEFAULT} from 'angular2/change_detection';
4949
* Shadow DOM root. Current element is not included in the resolution, therefore even if it could resolve it, it will
5050
* be ignored.
5151
* - `@Parent() directive:DirectiveType`: any directive that matches the type on a direct parent element only.
52-
* - `@Children query:Query<DirectiveType>`: A live collection of direct child directives (will be implemented in later release).
53-
* - `@Descendants query:Query<DirectiveType>`: A live collection of any child directives (will be implemented in later relaese).
52+
* - `@Query(DirectiveType) query:QueryList<DirectiveType>`: A live collection of direct child directives.
53+
* - `@QueryDescendants(DirectiveType) query:QueryList<DirectiveType>`: A live collection of any child directives.
5454
*
5555
* To inject element-specific special objects, declare the constructor parameter as:
5656
* - `element: ElementRef` to obtain a reference to logical element in the view.
@@ -193,7 +193,7 @@ import {DEFAULT} from 'angular2/change_detection';
193193
* ```
194194
* @Directive({ selector: '[my-directive]' })
195195
* class MyDirective {
196-
* constructor(@Query(Marker) dependencies:QueryList<Maker>) {
196+
* constructor(@Query(Dependency) dependencies:QueryList<Dependency>) {
197197
* }
198198
* }
199199
* ```
@@ -205,12 +205,12 @@ import {DEFAULT} from 'angular2/change_detection';
205205
*
206206
* Note: This is will be implemented in later release. ()
207207
*
208-
* Similar to `@Children` above, but also includes the children of the child elements.
208+
* Similar to `@Query` above, but also includes the children of the child elements.
209209
*
210210
* ```
211211
* @Directive({ selector: '[my-directive]' })
212212
* class MyDirective {
213-
* constructor(@QueryDescendents(Marker) dependencies:QueryList<Maker>) {
213+
* constructor(@QueryDescendents(Dependency) dependencies:QueryList<Dependency>) {
214214
* }
215215
* }
216216
* ```

0 commit comments

Comments
 (0)