docs(annotations): fixes
This commit is contained in:
parent
d18463dcdc
commit
7643d979c7
|
@ -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
|
* Shadow DOM root. Current element is not included in the resolution, therefore even if it could resolve it, it will
|
||||||
* be ignored.
|
* be ignored.
|
||||||
* - `@Parent() directive:DirectiveType`: any directive that matches the type on a direct parent element only.
|
* - `@Parent() directive:DirectiveType`: any directive that matches the type on a direct parent element only.
|
||||||
* - `@Children query:Query<DirectiveType>`: A live collection of direct child directives (will be implemented in later release).
|
* - `@Query(DirectiveType) query:QueryList<DirectiveType>`: A live collection of direct child directives.
|
||||||
* - `@Descendants query:Query<DirectiveType>`: A live collection of any child directives (will be implemented in later relaese).
|
* - `@QueryDescendants(DirectiveType) query:QueryList<DirectiveType>`: A live collection of any child directives.
|
||||||
*
|
*
|
||||||
* To inject element-specific special objects, declare the constructor parameter as:
|
* To inject element-specific special objects, declare the constructor parameter as:
|
||||||
* - `element: ElementRef` to obtain a reference to logical element in the view.
|
* - `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]' })
|
* @Directive({ selector: '[my-directive]' })
|
||||||
* class MyDirective {
|
* class MyDirective {
|
||||||
* constructor(@Query(Marker) dependencies:QueryList<Maker>) {
|
* constructor(@Query(Dependency) dependencies:QueryList<Dependency>) {
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
|
@ -205,12 +205,12 @@ import {DEFAULT} from 'angular2/change_detection';
|
||||||
*
|
*
|
||||||
* Note: This is will be implemented in later release. ()
|
* 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]' })
|
* @Directive({ selector: '[my-directive]' })
|
||||||
* class MyDirective {
|
* class MyDirective {
|
||||||
* constructor(@QueryDescendents(Marker) dependencies:QueryList<Maker>) {
|
* constructor(@QueryDescendents(Dependency) dependencies:QueryList<Dependency>) {
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
|
|
Loading…
Reference in New Issue