Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a3cee85

Browse files
committed
docs(alpha-33): fix bad enum styles and update API docs
1 parent 5d2a873 commit a3cee85

File tree

271 files changed

+1493
-620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

271 files changed

+1493
-620
lines changed

public/docs/js/latest/api/annotations/Attribute-var.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
h2 Attribute <span class="type">variable</span>
44
p.location-badge.
55
exported from <a href='../annotations'>angular2/annotations</a>
6-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/annotations/decorators.ts#L366-L366">angular2/src/core/annotations/decorators.ts (line 366)</a>
6+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/core/annotations/decorators.ts#L360-L360">angular2/src/core/annotations/decorators.ts (line 360)</a>
77

88
:markdown
99
<a href='Attribute-var.html'><code>Attribute</code></a> factory function.

public/docs/js/latest/api/annotations/AttributeAnnotation-class.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
p.location-badge.
33
exported from <a href='../annotations'>angular2/annotations</a>
4-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/annotations_impl/di.ts#L3-L44">angular2/src/core/annotations_impl/di.ts (line 3)</a>
4+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/core/annotations_impl/di.ts#L3-L44">angular2/src/core/annotations_impl/di.ts (line 3)</a>
55

66
:markdown
77
Specifies that a constant attribute value should be injected.

public/docs/js/latest/api/annotations/AttributeFactory-interface.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
p.location-badge.
33
exported from <a href='../annotations'>angular2/annotations</a>
4-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/annotations/decorators.ts#L242-L293">angular2/src/core/annotations/decorators.ts (line 242)</a>
4+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/core/annotations/decorators.ts#L236-L287">angular2/src/core/annotations/decorators.ts (line 236)</a>
55

66
:markdown
77
<a href='Attribute-var.html'><code>Attribute</code></a> factory for creating annotations, decorators or DSL.

public/docs/js/latest/api/annotations/Class-function.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
p.location-badge.
1212
exported from <a href='../annotations'>angular2/annotations</a>
13-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/util/decorators.ts#L124-L231">angular2/src/util/decorators.ts (line 124)</a>
13+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/util/decorators.ts#L119-L226">angular2/src/util/decorators.ts (line 119)</a>
1414

1515
:markdown
1616
Provides a way for expressing ES6 classes with parameter annotations in ES5.

public/docs/js/latest/api/annotations/ClassDefinition-interface.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
p.location-badge.
33
exported from <a href='../annotations'>angular2/annotations</a>
4-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/util/decorators.ts#L1-L22">angular2/src/util/decorators.ts (line 1)</a>
4+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/util/decorators.ts#L1-L22">angular2/src/util/decorators.ts (line 1)</a>
55

66
:markdown
77
Declares the interface to be used with <a href='Class-function.html'><code>Class</code></a>.

public/docs/js/latest/api/annotations/Component-var.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
h2 Component <span class="type">variable</span>
44
p.location-badge.
55
exported from <a href='../annotations'>angular2/annotations</a>
6-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/annotations/decorators.ts#L350-L351">angular2/src/core/annotations/decorators.ts (line 350)</a>
6+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/core/annotations/decorators.ts#L344-L345">angular2/src/core/annotations/decorators.ts (line 344)</a>
77

88
:markdown
99
<a href='Component-var.html'><code>Component</code></a> factory function.

public/docs/js/latest/api/annotations/ComponentAnnotation-class.jade

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
p.location-badge.
33
exported from <a href='../annotations'>angular2/annotations</a>
4-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/annotations_impl/annotations.ts#L782-L904">angular2/src/core/annotations_impl/annotations.ts (line 782)</a>
4+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/core/annotations_impl/annotations.ts#L778-L900">angular2/src/core/annotations_impl/annotations.ts (line 778)</a>
55

66
:markdown
77
Declare reusable UI building blocks for an application.
@@ -14,7 +14,7 @@ p.location-badge.
1414
When a component is instantiated, Angular
1515
- creates a shadow DOM for the component.
1616
- loads the selected template into the shadow DOM.
17-
- creates all the injectable objects configured with `hostInjector` and `viewInjector`.
17+
- creates all the injectable objects configured with `bindings` and `viewBindings`.
1818

1919
All template expressions and statements are then evaluated against the component instance.
2020

@@ -57,17 +57,17 @@ p.location-badge.
5757

5858
pre.prettyprint
5959
code.
60-
constructor({selector, properties, events, host, exportAs, lifecycle, hostInjector, viewInjector,
60+
constructor({selector, properties, events, host, exportAs, lifecycle, bindings, viewBindings,
6161
changeDetection = DEFAULT, compileChildren = true}?: {
6262
selector?: string,
6363
properties?: List&lt;string&gt;,
6464
events?: List&lt;string&gt;,
6565
host?: StringMap&lt;string, string&gt;,
6666
lifecycle?: List&lt;LifecycleEvent&gt;,
67-
hostInjector?: List&lt;any&gt;,
67+
bindings?: List&lt;any&gt;,
6868
exportAs?: string,
6969
compileChildren?: boolean,
70-
viewInjector?: List&lt;any&gt;,
70+
viewBindings?: List&lt;any&gt;,
7171
changeDetection?: string,
7272
})
7373

@@ -100,7 +100,7 @@ p.location-badge.
100100

101101

102102
.l-sub-section
103-
h3 viewInjector
103+
h3 viewBindings
104104

105105

106106
:markdown
@@ -130,7 +130,7 @@ p.location-badge.
130130

131131
@Component({
132132
selector: 'greet',
133-
viewInjector: [
133+
viewBindings: [
134134
Greeter
135135
]
136136
})

public/docs/js/latest/api/annotations/ComponentDecorator-interface.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
p.location-badge.
33
exported from <a href='../annotations'>angular2/annotations</a>
4-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/annotations/decorators.ts#L19-L38">angular2/src/core/annotations/decorators.ts (line 19)</a>
4+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/core/annotations/decorators.ts#L13-L32">angular2/src/core/annotations/decorators.ts (line 13)</a>
55

66
:markdown
77
Interface for the <a href='Component-var.html'><code>Component</code></a> decorator function.

public/docs/js/latest/api/annotations/ComponentFactory-interface.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
p.location-badge.
33
exported from <a href='../annotations'>angular2/annotations</a>
4-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/annotations/decorators.ts#L110-L180">angular2/src/core/annotations/decorators.ts (line 110)</a>
4+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/core/annotations/decorators.ts#L104-L174">angular2/src/core/annotations/decorators.ts (line 104)</a>
55

66
:markdown
77
<a href='ComponentAnnotation-class.html'><code>ComponentAnnotation</code></a> factory for creating annotations, decorators or DSL.

public/docs/js/latest/api/annotations/Directive-var.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
h2 Directive <span class="type">variable</span>
44
p.location-badge.
55
exported from <a href='../annotations'>angular2/annotations</a>
6-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/annotations/decorators.ts#L355-L355">angular2/src/core/annotations/decorators.ts (line 355)</a>
6+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/core/annotations/decorators.ts#L349-L349">angular2/src/core/annotations/decorators.ts (line 349)</a>
77

88
:markdown
99
<a href='Directive-var.html'><code>Directive</code></a> factory function.

public/docs/js/latest/api/annotations/DirectiveAnnotation-class.jade

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
p.location-badge.
33
exported from <a href='../annotations'>angular2/annotations</a>
4-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/annotations_impl/annotations.ts#L4-L782">angular2/src/core/annotations_impl/annotations.ts (line 4)</a>
4+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/core/annotations_impl/annotations.ts#L4-L778">angular2/src/core/annotations_impl/annotations.ts (line 4)</a>
55

66
:markdown
77
Directives allow you to attach behavior to elements in the DOM.
@@ -53,11 +53,9 @@ p.location-badge.
5353

5454
To inject other directives, declare the constructor parameter as:
5555
- `directive:DirectiveType`: a directive on the current element only
56-
- `@Ancestor() directive:DirectiveType`: any directive that matches the type between the current
56+
- `@Host() directive:DirectiveType`: any directive that matches the type between the current
5757
element and the
58-
Shadow DOM root. Current element is not included in the resolution, therefore even if it could
59-
resolve it, it will
60-
be ignored.
58+
Shadow DOM root.
6159
- `@Query(DirectiveType) query:QueryList<DirectiveType>`: A live collection of direct child
6260
directives.
6361
- `@QueryDescendants(DirectiveType) query:QueryList<DirectiveType>`: A live collection of any
@@ -164,21 +162,19 @@ p.location-badge.
164162
### Injecting a directive from any ancestor elements
165163

166164
Directives can inject other directives declared on any ancestor element (in the current Shadow
167-
DOM), i.e. on the
168-
parent element and its parents. By definition, a directive with an `@Ancestor` annotation does
169-
not attempt to
170-
resolve dependencies for the current element, even if this would satisfy the dependency.
171-
165+
DOM), i.e. on the current element, the
166+
parent element, or its parents.
172167
```
173168
@Directive({ selector: '[my-directive]' })
174169
class MyDirective {
175-
constructor(@Ancestor() dependency: Dependency) {
170+
constructor(@Host() dependency: Dependency) {
176171
expect(dependency.id).toEqual(2);
177172
}
178173
}
179174
```
180175

181-
`@Ancestor` checks the parent, as well as its parents recursively. If `dependency="2"` didn't
176+
`@Host` checks the current element, the parent, as well as its parents recursively. If
177+
`dependency="2"` didn't
182178
exist on the direct parent, this injection would
183179
have returned
184180
`dependency="1"`.
@@ -401,15 +397,15 @@ p.location-badge.
401397
pre.prettyprint
402398
code.
403399
constructor({
404-
selector, properties, events, host, lifecycle, hostInjector, exportAs,
400+
selector, properties, events, host, lifecycle, bindings, exportAs,
405401
compileChildren = true,
406402
}?: {
407403
selector?: string,
408404
properties?: List&lt;string&gt;,
409405
events?: List&lt;string&gt;,
410406
host?: StringMap&lt;string, string&gt;,
411407
lifecycle?: List&lt;LifecycleEvent&gt;,
412-
hostInjector?: List&lt;any&gt;,
408+
bindings?: List&lt;any&gt;,
413409
exportAs?: string,
414410
compileChildren?: boolean,
415411
})
@@ -780,7 +776,7 @@ p.location-badge.
780776

781777

782778
.l-sub-section
783-
h3 hostInjector
779+
h3 bindings
784780

785781

786782
:markdown
@@ -800,7 +796,7 @@ p.location-badge.
800796

801797
@Directive({
802798
selector: 'greet',
803-
hostInjector: [
799+
bindings: [
804800
Greeter
805801
]
806802
})

public/docs/js/latest/api/annotations/DirectiveDecorator-interface.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
p.location-badge.
33
exported from <a href='../annotations'>angular2/annotations</a>
4-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/annotations/decorators.ts#L12-L19">angular2/src/core/annotations/decorators.ts (line 12)</a>
4+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/core/annotations/decorators.ts#L6-L13">angular2/src/core/annotations/decorators.ts (line 6)</a>
55

66
:markdown
77
Interface for the <a href='Directive-var.html'><code>Directive</code></a> decorator function.

public/docs/js/latest/api/annotations/DirectiveFactory-interface.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
p.location-badge.
33
exported from <a href='../annotations'>angular2/annotations</a>
4-
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/annotations/decorators.ts#L57-L110">angular2/src/core/annotations/decorators.ts (line 57)</a>
4+
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.33/modules/angular2/src/core/annotations/decorators.ts#L51-L104">angular2/src/core/annotations/decorators.ts (line 51)</a>
55

66
:markdown
77
<a href='Directive-var.html'><code>Directive</code></a> factory for creating annotations, decorators or DSL.

0 commit comments

Comments
 (0)