diff --git a/public/docs/js/latest/api/annotations/Ancestor-class.jade b/public/docs/js/latest/api/annotations/Ancestor-class.jade
index 07658eba0f..1397f550a4 100644
--- a/public/docs/js/latest/api/annotations/Ancestor-class.jade
+++ b/public/docs/js/latest/api/annotations/Ancestor-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/visibility.js (line 105)
+ defined in angular2/src/core/annotations_impl/visibility.js (line 105)
:markdown
Specifies that an injector should retrieve a dependency from any ancestor element.
@@ -14,7 +14,7 @@ p.location-badge.
Here is a simple directive that retrieves a dependency from an ancestor element.
```
- @Decorator({
+ @Directive({
selector: '[dependency]',
properties: {
'id':'dependency'
@@ -25,7 +25,7 @@ p.location-badge.
}
- @Decorator({
+ @Directive({
selector: '[my-directive]'
})
class Dependency {
diff --git a/public/docs/js/latest/api/annotations/Attribute-class.jade b/public/docs/js/latest/api/annotations/Attribute-class.jade
index 7c58ac6f61..68a8010a4b 100644
--- a/public/docs/js/latest/api/annotations/Attribute-class.jade
+++ b/public/docs/js/latest/api/annotations/Attribute-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/di.js (line 31)
+ defined in angular2/src/core/annotations_impl/di.js (line 31)
:markdown
Specifies that a constant attribute value should be injected.
@@ -19,10 +19,10 @@ p.location-badge.
A decorator can inject string literal `text` like so:
```javascript
- @Decorator({
+ @Directive({
selector: `input'
})
- class InputDecorator {
+ class InputDirective {
constructor(@Attribute('type') type) {
// type would be `text` in this example
}
@@ -50,6 +50,7 @@ p.location-badge.
:markdown
+
@@ -61,6 +62,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/annotations/Component-class.jade b/public/docs/js/latest/api/annotations/Component-class.jade
index a07946ea59..cf6bcf58ff 100644
--- a/public/docs/js/latest/api/annotations/Component-class.jade
+++ b/public/docs/js/latest/api/annotations/Component-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/annotations.js (line 547)
+ defined in angular2/src/core/annotations_impl/annotations.js (line 732)
:markdown
Declare reusable UI building blocks for an application.
@@ -36,6 +36,51 @@ p.location-badge.
}
```
+
+ Dynamically loading a component at runtime:
+
+ Regular Angular components are statically resolved. Dynamic components allows to resolve a component at runtime
+ instead by providing a placeholder into which a regular Angular component can be dynamically loaded. Once loaded,
+ the dynamically-loaded component becomes permanent and cannot be changed.
+ Dynamic components are declared just like components, but without a `@View` annotation.
+
+
+ ## Example
+
+ Here we have `DynamicComp` which acts as the placeholder for `HelloCmp`. At runtime, the dynamic component
+ `DynamicComp` requests loading of the `HelloCmp` component.
+
+ There is nothing special about `HelloCmp`, which is a regular Angular component. It can also be used in other static
+ locations.
+
+ ```
+ @Component({
+ selector: 'dynamic-comp'
+ })
+ class DynamicComp {
+ helloCmp:HelloCmp;
+ constructor(loader:DynamicComponentLoader, location:ElementRef) {
+ loader.load(HelloCmp, location).then((helloCmp) => {
+ this.helloCmp = helloCmp;
+ });
+ }
+ }
+
+ @Component({
+ selector: 'hello-cmp'
+ })
+ @View({
+ template: "{{greeting}}"
+ })
+ class HelloCmp {
+ greeting:string;
+ constructor() {
+ this.greeting = "hello";
+ }
+ }
+ ```
+
+
.l-main-section
h2 Members
.l-sub-section
@@ -52,7 +97,8 @@ p.location-badge.
hostProperties,
injectables,
lifecycle,
- changeDetection = DEFAULT
+ changeDetection = DEFAULT,
+ compileChildren = true,
}:{
selector:string,
properties:Object,
@@ -61,7 +107,8 @@ p.location-badge.
hostProperties:any,
injectables:List,
lifecycle:List,
- changeDetection:string
+ changeDetection:string,
+ compileChildren:boolean
}={})
:markdown
@@ -75,6 +122,7 @@ p.location-badge.
:markdown
+
Defines the used change detection strategy.
When a component is instantiated, Angular creates a change detector, which is responsible for propagating
@@ -92,6 +140,7 @@ p.location-badge.
:markdown
+
Defines the set of injectable objects that are visible to a Component and its children.
The `injectables` defined in the Component annotation allow you to configure a set of bindings for the component's
diff --git a/public/docs/js/latest/api/annotations/Decorator-class.jade b/public/docs/js/latest/api/annotations/Decorator-class.jade
deleted file mode 100644
index 39a879cb36..0000000000
--- a/public/docs/js/latest/api/annotations/Decorator-class.jade
+++ /dev/null
@@ -1,105 +0,0 @@
-
-p.location-badge.
- exported from angular2/annotations
- defined in angular2/src/core/annotations/annotations.js (line 787)
-
-:markdown
- Directive that attaches behavior to DOM elements.
-
- A decorator directive attaches behavior to a DOM element in a composable manner.
- (see: http://en.wikipedia.org/wiki/Composition_over_inheritance)
-
- Decorators:
- - are simplest form of Directive
s.
- - are best used as a composition pattern ()
-
- Decorators differ from Component
s in that they:
- - can have multiple decorators per element
- - do not create their own evaluation context
- - do not have a template (and therefor do not create Shadow DOM)
-
-
- ## Example
-
- Here we use a decorator directive to simply define basic tool-tip behavior.
-
- ```
- @Decorator({
- selector: '[tooltip]',
- properties: {
- 'text': 'tooltip'
- },
- hostListeners: {
- 'onmouseenter': 'onMouseEnter()',
- 'onmouseleave': 'onMouseLeave()'
- }
- })
- class Tooltip{
- text:string;
- overlay:Overlay; // NOT YET IMPLEMENTED
- overlayManager:OverlayManager; // NOT YET IMPLEMENTED
-
- constructor(overlayManager:OverlayManager) {
- this.overlay = overlay;
- }
-
- onMouseEnter() {
- // exact signature to be determined
- this.overlay = this.overlayManager.open(text, ...);
- }
-
- onMouseLeave() {
- this.overlay.close();
- this.overlay = null;
- }
- }
- ```
- In our HTML template, we can then add this behavior to a `
Component
, DynamicComponent
, Decorator
- or Viewport
.
+ Directive
s with an embedded view are called Component
s.
A directive consists of a single directive annotation and a controller class. When the directive's `selector` matches
elements in the DOM, the following steps occur:
@@ -52,8 +51,8 @@ p.location-badge.
- `@Descendants query:QueryViewport
directives only
+ - `element: ElementRef` to obtain a reference to logical element in the view.
+ - `viewContainer: ViewContainerRef` to control child template instantiation, for Directive
directives only
- `bindingPropagation: BindingPropagation` to control change detection in a more granular way.
## Example
@@ -83,7 +82,7 @@ p.location-badge.
class SomeService {
}
- @Decorator({
+ @Directive({
selector: '[dependency]',
properties: {
'id':'dependency'
@@ -102,7 +101,7 @@ p.location-badge.
Here the constructor is declared with no arguments, therefore nothing is injected into `MyDirective`.
```
- @Decorator({ selector: '[my-directive]' })
+ @Directive({ selector: '[my-directive]' })
class MyDirective {
constructor() {
}
@@ -119,7 +118,7 @@ p.location-badge.
Here, the constructor declares a parameter, `someService`, and injects the `SomeService` type from the parent
component's injector.
```
- @Decorator({ selector: '[my-directive]' })
+ @Directive({ selector: '[my-directive]' })
class MyDirective {
constructor(someService: SomeService) {
}
@@ -134,7 +133,7 @@ p.location-badge.
Directives can inject other directives declared on the current element.
```
- @Decorator({ selector: '[my-directive]' })
+ @Directive({ selector: '[my-directive]' })
class MyDirective {
constructor(dependency: Dependency) {
expect(dependency.id).toEqual(3);
@@ -151,7 +150,7 @@ p.location-badge.
the dependency.
```
- @Decorator({ selector: '[my-directive]' })
+ @Directive({ selector: '[my-directive]' })
class MyDirective {
constructor(@Parent() dependency: Dependency) {
expect(dependency.id).toEqual(2);
@@ -168,7 +167,7 @@ p.location-badge.
resolve dependencies for the current element, even if this would satisfy the dependency.
```
- @Decorator({ selector: '[my-directive]' })
+ @Directive({ selector: '[my-directive]' })
class MyDirective {
constructor(@Ancestor() dependency: Dependency) {
expect(dependency.id).toEqual(2);
@@ -186,11 +185,11 @@ p.location-badge.
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 QueryList
, which updates its contents as children are added, removed, or moved by any
- Viewport
directive such as a `for`, an `if`, or a `switch`.
+ injects a QueryList
, which updates its contents as children are added, removed, or moved by a directive
+ that uses a ViewContainerRef
such as a `for`, an `if`, or a `switch`.
```
- @Decorator({ selector: '[my-directive]' })
+ @Directive({ selector: '[my-directive]' })
class MyDirective {
constructor(@Query(Marker) dependencies:QueryListViewContainerRef
to instantiate, insert, move, and destroy views at runtime.
+ The ViewContainerRef
is created as a result of `` element, and represents a location in the current view
+ where these actions are performed.
+
+ Views are always created as children of the current View
, and as siblings of the `` element. Thus a
+ directive in a child view cannot inject the directive that created it.
+
+ Since directives that create views via ViewContainers are common in Angular, and using the full `` element syntax is wordy, Angular
+ also supports a shorthand notation: `onChange
, onDestroy
, onAllChangesDone
for details.
@@ -315,6 +463,7 @@ p.location-badge.
:markdown
+
Specifies which DOM hostListeners a directive listens to.
The `hostListeners` property defines a set of `event` to `method` key-value pairs:
@@ -350,14 +499,14 @@ p.location-badge.
You would define the event binding as follows:
```
- @Decorator({
+ @Directive({
selector: 'input',
hostListeners: {
'change': 'onChange($event)',
'window:resize': 'onResize($event)'
}
})
- class InputDecorator {
+ class InputDirective {
onChange(event:Event) {
}
onResize(event:Event) {
@@ -365,7 +514,7 @@ p.location-badge.
}
```
- Here the `onChange` method of `InputDecorator` is invoked whenever the DOM element fires the 'change' event.
+ Here the `onChange` method of `InputDirective` is invoked whenever the DOM element fires the 'change' event.
@@ -376,18 +525,19 @@ p.location-badge.
:markdown
+
Specifies which DOM properties a directives updates.
## Syntax
```
- @Decorator({
+ @Directive({
selector: 'input',
hostProperties: {
'value': 'value'
}
})
- class InputDecorator {
+ class InputDirective {
value:string;
}
@@ -404,6 +554,7 @@ p.location-badge.
:markdown
+
Specifies a set of lifecycle hostListeners in which the directive participates.
See onChange
, onDestroy
, onAllChangesDone
for details.
@@ -417,6 +568,7 @@ p.location-badge.
:markdown
+
Enumerates the set of properties that accept data binding for a directive.
The `properties` property defines a set of `directiveProperty` to `bindingProperty`
@@ -448,7 +600,7 @@ p.location-badge.
with standard Angular syntax. For example:
```
- @Decorator({
+ @Directive({
selector: '[tooltip]',
properties: {
'text': 'tooltip'
@@ -484,7 +636,7 @@ p.location-badge.
See Pipe
and keyValDiff
documentation for more details.
```
- @Decorator({
+ @Directive({
selector: '[class-set]',
properties: {
'classChanges': 'classSet | keyValDiff'
@@ -514,6 +666,7 @@ p.location-badge.
:markdown
+
The CSS selector that triggers the instantiation of a directive.
Angular only allows directives to trigger on CSS selectors that do not cross element boundaries.
diff --git a/public/docs/js/latest/api/annotations/DynamicComponent-class.jade b/public/docs/js/latest/api/annotations/DynamicComponent-class.jade
deleted file mode 100644
index c98c9f6ff4..0000000000
--- a/public/docs/js/latest/api/annotations/DynamicComponent-class.jade
+++ /dev/null
@@ -1,92 +0,0 @@
-
-p.location-badge.
- exported from angular2/annotations
- defined in angular2/src/core/annotations/annotations.js (line 689)
-
-:markdown
- Directive used for dynamically loading components.
-
- Regular Angular components are statically resolved. DynamicComponent allows to you resolve a component at runtime
- instead by providing a placeholder into which a regular Angular component can be dynamically loaded. Once loaded,
- the dynamically-loaded component becomes permanent and cannot be changed.
-
-
- ## Example
-
- Here we have `DynamicComp` which acts as the placeholder for `HelloCmp`. At runtime, the dynamic component
- `DynamicComp` requests loading of the `HelloCmp` component.
-
- There is nothing special about `HelloCmp`, which is a regular Angular component. It can also be used in other static
- locations.
-
- ```
- @DynamicComponent({
- selector: 'dynamic-comp'
- })
- class DynamicComp {
- helloCmp:HelloCmp;
- constructor(loader:DynamicComponentLoader, location:PrivateComponentLocation) {
- loader.load(HelloCmp, location).then((helloCmp) => {
- this.helloCmp = helloCmp;
- });
- }
- }
-
- @Component({
- selector: 'hello-cmp'
- })
- @View({
- template: "{{greeting}}"
- })
- class HelloCmp {
- greeting:string;
- constructor() {
- this.greeting = "hello";
- }
- }
- ```
-
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor({
- selector,
- properties,
- events,
- hostListeners,
- hostProperties,
- injectables,
- lifecycle
- }:{
- selector:string,
- properties:any,
- events:List,
- hostListeners:any,
- hostProperties:any,
- injectables:List,
- lifecycle:List
- }={})
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 injectables
-
-
- :markdown
- Same as `injectables` in the Component
.
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/Parent-class.jade b/public/docs/js/latest/api/annotations/Parent-class.jade
index e0d38cbc76..e43cd333d9 100644
--- a/public/docs/js/latest/api/annotations/Parent-class.jade
+++ b/public/docs/js/latest/api/annotations/Parent-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/visibility.js (line 44)
+ defined in angular2/src/core/annotations_impl/visibility.js (line 44)
:markdown
Specifies that an injector should retrieve a dependency from the direct parent.
@@ -11,7 +11,7 @@ p.location-badge.
Here is a simple directive that retrieves a dependency from its parent element.
```
- @Decorator({
+ @Directive({
selector: '[dependency]',
properties: {
'id':'dependency'
@@ -22,7 +22,7 @@ p.location-badge.
}
- @Decorator({
+ @Directive({
selector: '[my-directive]'
})
class Dependency {
diff --git a/public/docs/js/latest/api/annotations/PropertySetter-class.jade b/public/docs/js/latest/api/annotations/PropertySetter-class.jade
deleted file mode 100644
index bbb305fb17..0000000000
--- a/public/docs/js/latest/api/annotations/PropertySetter-class.jade
+++ /dev/null
@@ -1,49 +0,0 @@
-
-p.location-badge.
- exported from angular2/annotations
- defined in angular2/src/core/annotations/di.js (line 12)
-
-:markdown
- Specifies that a function for setting host properties should be injected.
-
- NOTE: This is changing pre 1.0.
-
- The directive can inject a property setter that would allow setting this property on the host element.
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor(propName)
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 propName
-
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 token
-
-
- :markdown
-
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/Query-class.jade b/public/docs/js/latest/api/annotations/Query-class.jade
index b574900646..e8d4f9627c 100644
--- a/public/docs/js/latest/api/annotations/Query-class.jade
+++ b/public/docs/js/latest/api/annotations/Query-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/di.js (line 55)
+ defined in angular2/src/core/annotations_impl/di.js (line 55)
:markdown
Specifies that a QueryList
should be injected.
@@ -29,6 +29,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/annotations/View-class.jade b/public/docs/js/latest/api/annotations/View-class.jade
index 4b58243c63..032d8d64f5 100644
--- a/public/docs/js/latest/api/annotations/View-class.jade
+++ b/public/docs/js/latest/api/annotations/View-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/view.js (line 34)
+ defined in angular2/src/core/annotations_impl/view.js (line 34)
:markdown
Declares the available HTML templates for an application.
@@ -64,6 +64,7 @@ p.location-badge.
:markdown
+
Specifies a list of directives that can be used within a template.
Directives must be listed explicitly to provide proper component encapsulation.
@@ -94,6 +95,7 @@ p.location-badge.
:markdown
+
Specify a custom renderer for this View.
If this is set, neither `template`, `templateURL` nor `directives` are used.
@@ -106,6 +108,7 @@ p.location-badge.
:markdown
+
Specifies an inline template for an angular component.
NOTE: either `templateUrl` or `template` should be used, but not both.
@@ -119,6 +122,7 @@ p.location-badge.
:markdown
+
Specifies a template URL for an angular component.
NOTE: either `templateUrl` or `template` should be used, but not both.
diff --git a/public/docs/js/latest/api/annotations/Viewport-class.jade b/public/docs/js/latest/api/annotations/Viewport-class.jade
deleted file mode 100644
index f92ad94fc2..0000000000
--- a/public/docs/js/latest/api/annotations/Viewport-class.jade
+++ /dev/null
@@ -1,125 +0,0 @@
-
-p.location-badge.
- exported from angular2/annotations
- defined in angular2/src/core/annotations/annotations.js (line 919)
-
-:markdown
- Directive that controls the instantiation, destruction, and positioning of inline template elements.
-
- A viewport directive uses a ViewContainerRef
to instantiate, insert, move, and destroy views at runtime.
- The ViewContainerRef
is created as a result of `` element, and represents a location in the current view
- where these actions are performed.
-
- Views are always created as children of the current View
, and as siblings of the `` element. Thus a
- directive in a child view cannot inject the viewport directive that created it.
-
- Since viewport directives are common in Angular, and using the full `` element syntax is wordy, Angular
- also supports a shorthand notation: `Component
, Decorator
, and View
annotations, as well as Parent
and Ancestor
annotations that areused by Angular to resolve dependencies."
+ "intro" : "Annotations provide the additional information that Angular requires in order to run your application. This modulecontains Component
, Directive
, and View
annotations, as well as Parent
and Ancestor
annotations that areused by Angular to resolve dependencies."
},
"Directive-class" : {
@@ -12,18 +12,6 @@
"title" : "Component Class"
},
- "DynamicComponent-class" : {
- "title" : "DynamicComponent Class"
- },
-
- "Decorator-class" : {
- "title" : "Decorator Class"
- },
-
- "Viewport-class" : {
- "title" : "Viewport Class"
- },
-
"onDestroy-var" : {
"title" : "onDestroy Var"
},
diff --git a/public/docs/js/latest/api/annotations/onAllChangesDone-var.jade b/public/docs/js/latest/api/annotations/onAllChangesDone-var.jade
index 1ef6a68117..0ae8c09f9f 100644
--- a/public/docs/js/latest/api/annotations/onAllChangesDone-var.jade
+++ b/public/docs/js/latest/api/annotations/onAllChangesDone-var.jade
@@ -10,7 +10,7 @@
## Example:
```
- @Decorator({
+ @Directive({
selector: '[class-set]',
lifecycle: [onAllChangesDone]
})
diff --git a/public/docs/js/latest/api/annotations/onChange-var.jade b/public/docs/js/latest/api/annotations/onChange-var.jade
index 0eae724a04..64e4bf8ed3 100644
--- a/public/docs/js/latest/api/annotations/onChange-var.jade
+++ b/public/docs/js/latest/api/annotations/onChange-var.jade
@@ -15,7 +15,7 @@
## Example:
```
- @Decorator({
+ @Directive({
selector: '[class-set]',
properties: {
'propA': 'propA'
diff --git a/public/docs/js/latest/api/annotations/onDestroy-var.jade b/public/docs/js/latest/api/annotations/onDestroy-var.jade
index 0b952f4c0f..2841e122c6 100644
--- a/public/docs/js/latest/api/annotations/onDestroy-var.jade
+++ b/public/docs/js/latest/api/annotations/onDestroy-var.jade
@@ -10,7 +10,7 @@
## Example
```
- @Decorator({
+ @Directive({
...,
lifecycle: [onDestroy]
})
diff --git a/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade b/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade
index 163386a74c..f9bf8a688c 100644
--- a/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade
+++ b/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade
@@ -35,6 +35,7 @@ p.location-badge.
createProtoChangeDetector(name:string, changeControlStrategy:string=DEFAULT)
:markdown
+
diff --git a/public/docs/js/latest/api/change_detection/ChangeDetectorRef-class.jade b/public/docs/js/latest/api/change_detection/ChangeDetectorRef-class.jade
index d23a294dbc..84db6b1f73 100644
--- a/public/docs/js/latest/api/change_detection/ChangeDetectorRef-class.jade
+++ b/public/docs/js/latest/api/change_detection/ChangeDetectorRef-class.jade
@@ -34,6 +34,7 @@ p.location-badge.
detach()
:markdown
+
Detaches the change detector from the change detector tree.
The detached change detector will not be checked until it is reattached.
@@ -51,6 +52,7 @@ p.location-badge.
reattach()
:markdown
+
Reattach the change detector to the change detector tree.
This also requests a check of this change detector. This reattached change detector will be checked during the
@@ -69,6 +71,7 @@ p.location-badge.
requestCheck()
:markdown
+
Request to check all ON_PUSH ancestors.
diff --git a/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade b/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade
index 38a247faa2..89186ca003 100644
--- a/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade
+++ b/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade
@@ -33,6 +33,7 @@ p.location-badge.
createProtoChangeDetector(name:string, changeControlStrategy:string = DEFAULT)
:markdown
+
@@ -44,6 +45,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/change_detection/JitChangeDetection-class.jade b/public/docs/js/latest/api/change_detection/JitChangeDetection-class.jade
index be14f7b839..cd62a0144c 100644
--- a/public/docs/js/latest/api/change_detection/JitChangeDetection-class.jade
+++ b/public/docs/js/latest/api/change_detection/JitChangeDetection-class.jade
@@ -33,6 +33,7 @@ p.location-badge.
createProtoChangeDetector(name:string, changeControlStrategy:string = DEFAULT)
:markdown
+
@@ -44,6 +45,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/change_detection/LifeCycle-class.jade b/public/docs/js/latest/api/change_detection/LifeCycle-class.jade
index 431883b928..09bbaaf2f9 100644
--- a/public/docs/js/latest/api/change_detection/LifeCycle-class.jade
+++ b/public/docs/js/latest/api/change_detection/LifeCycle-class.jade
@@ -41,21 +41,6 @@ p.location-badge.
- .l-sub-section
- h3 registerWith
-
-
- pre.prettyprint
- code.
- registerWith(zone:VmTurnZone, changeDetector:ChangeDetector = null)
-
- :markdown
-
-
-
-
-
-
.l-sub-section
h3 tick
@@ -65,6 +50,7 @@ p.location-badge.
tick()
:markdown
+
Invoke this method to explicitly process change detection and its side-effects.
In development mode, `tick()` also performs a second change detection cycle to ensure that no further
diff --git a/public/docs/js/latest/api/core/ExceptionHandler-class.jade b/public/docs/js/latest/api/core/ExceptionHandler-class.jade
index a4c8d9c322..c23ddd1dc8 100644
--- a/public/docs/js/latest/api/core/ExceptionHandler-class.jade
+++ b/public/docs/js/latest/api/core/ExceptionHandler-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/core
- defined in angular2/src/core/exception_handler.js (line 34)
+ defined in angular2/src/core/exception_handler.js (line 35)
:markdown
Provides a hook for centralized exception handling.
@@ -41,6 +41,7 @@ p.location-badge.
call(error, stackTrace = null, reason = null)
:markdown
+
diff --git a/public/docs/js/latest/api/core/NgElement-class.jade b/public/docs/js/latest/api/core/NgElement-class.jade
deleted file mode 100644
index 25a1df5cc4..0000000000
--- a/public/docs/js/latest/api/core/NgElement-class.jade
+++ /dev/null
@@ -1,52 +0,0 @@
-
-p.location-badge.
- exported from angular2/core
- defined in angular2/src/core/compiler/ng_element.js (line 13)
-
-:markdown
- Allows direct access to the underlying DOM element.
-
- Attention: NgElement will be replaced by a different concept
- for accessing an element in a way that is compatible with the render layer.
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor(view, boundElementIndex)
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 domElement
-
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 getAttribute
-
-
- pre.prettyprint
- code.
- getAttribute(name:string)
-
- :markdown
-
-
-
-
-
diff --git a/public/docs/js/latest/api/view/ViewContainerRef-class.jade b/public/docs/js/latest/api/core/ViewContainerRef-class.jade
similarity index 73%
rename from public/docs/js/latest/api/view/ViewContainerRef-class.jade
rename to public/docs/js/latest/api/core/ViewContainerRef-class.jade
index d498b6ebd5..66a58d7b26 100644
--- a/public/docs/js/latest/api/view/ViewContainerRef-class.jade
+++ b/public/docs/js/latest/api/core/ViewContainerRef-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
- exported from angular2/view
- defined in angular2/src/core/compiler/view_container_ref.js (line 11)
+ exported from angular2/core
+ defined in angular2/src/core/compiler/view_container_ref.js (line 12)
:markdown
@@ -13,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(viewManager: avmModule.AppViewManager, location: eiModule.ElementRef, defaultProtoView: viewModule.AppProtoView)
+ constructor(viewManager: avmModule.AppViewManager, element: ElementRef)
:markdown
@@ -30,6 +30,7 @@ p.location-badge.
clear()
:markdown
+
@@ -42,9 +43,10 @@ p.location-badge.
pre.prettyprint
code.
- create(atIndex:number=-1, protoView:viewModule.AppProtoView = null, injector:Injector = null)
+ create(protoViewRef:ProtoViewRef = null, atIndex:number=-1, injector:Injector = null)
:markdown
+
@@ -60,6 +62,7 @@ p.location-badge.
detach(atIndex:number=-1)
:markdown
+
The method can be used together with insert to implement a view move, i.e.
moving the dom nodes while the directives in the view stay intact.
@@ -76,6 +79,7 @@ p.location-badge.
get(index: number)
:markdown
+
@@ -88,9 +92,10 @@ p.location-badge.
pre.prettyprint
code.
- indexOf(view:viewModule.AppView)
+ indexOf(viewRef:ViewRef)
:markdown
+
@@ -103,9 +108,10 @@ p.location-badge.
pre.prettyprint
code.
- insert(view:viewModule.AppView, atIndex:number=-1)
+ insert(viewRef:ViewRef, atIndex:number=-1)
:markdown
+
@@ -117,6 +123,7 @@ p.location-badge.
:markdown
+
@@ -132,6 +139,7 @@ p.location-badge.
remove(atIndex:number=-1)
:markdown
+
diff --git a/public/docs/js/latest/api/core/VmTurnZone-class.jade b/public/docs/js/latest/api/core/VmTurnZone-class.jade
index 92d8ad5eda..933748ecca 100644
--- a/public/docs/js/latest/api/core/VmTurnZone-class.jade
+++ b/public/docs/js/latest/api/core/VmTurnZone-class.jade
@@ -41,6 +41,7 @@ p.location-badge.
initCallbacks({onTurnStart, onTurnDone, onScheduleMicrotask, onErrorHandler} = {}, [object Object], [object Object], [object Object], [object Object])
:markdown
+
Initializes the zone hooks.
@@ -57,6 +58,7 @@ p.location-badge.
run(fn)
:markdown
+
Runs `fn` in the inner zone and returns whatever it returns.
In a typical app where the inner zone is the Angular zone, this allows one to make use of the
@@ -83,6 +85,7 @@ p.location-badge.
runOutsideAngular(fn)
:markdown
+
Runs `fn` in the outer zone and returns whatever it returns.
In a typical app where the inner zone is the Angular zone, this allows one to escape Angular's
diff --git a/public/docs/js/latest/api/core/_data.json b/public/docs/js/latest/api/core/_data.json
index 5592782731..0a335d5d69 100644
--- a/public/docs/js/latest/api/core/_data.json
+++ b/public/docs/js/latest/api/core/_data.json
@@ -8,8 +8,8 @@
"title" : "bootstrap Function"
},
- "NgElement-class" : {
- "title" : "NgElement Class"
+ "ViewContainerRef-class" : {
+ "title" : "ViewContainerRef Class"
},
"ExceptionHandler-class" : {
diff --git a/public/docs/js/latest/api/di/Binding-class.jade b/public/docs/js/latest/api/di/Binding-class.jade
index fa88da0601..310be56665 100644
--- a/public/docs/js/latest/api/di/Binding-class.jade
+++ b/public/docs/js/latest/api/di/Binding-class.jade
@@ -46,6 +46,7 @@ p.location-badge.
:markdown
+
Used in conjunction with `toFactory` or `toAsyncFactory` and specifies a set of dependencies (as `token`s) which
should be injected into the factory function.
@@ -75,6 +76,7 @@ p.location-badge.
resolve()
:markdown
+
Converts the Binding
into ResolvedBinding
.
Injector
internally only uses ResolvedBinding
, Binding
contains convenience binding syntax.
@@ -88,6 +90,7 @@ p.location-badge.
:markdown
+
Binds a key to the alias for an existing key.
An alias means that Injector
returns the same instance as if the alias token was used. This is in contrast to
@@ -128,6 +131,7 @@ p.location-badge.
:markdown
+
Binds a key to a function which computes the value asynchronously.
@@ -159,6 +163,7 @@ p.location-badge.
:markdown
+
Binds an interface to an implementation / subclass.
@@ -196,6 +201,7 @@ p.location-badge.
:markdown
+
Binds a key to a function which computes the value.
@@ -220,6 +226,7 @@ p.location-badge.
:markdown
+
Binds a key to a value.
@@ -241,6 +248,7 @@ p.location-badge.
:markdown
+
Token used when retrieving this binding. Usually the `Type`.
diff --git a/public/docs/js/latest/api/di/BindingBuilder-class.jade b/public/docs/js/latest/api/di/BindingBuilder-class.jade
index 74a2a1dd9d..43fcc3b72e 100644
--- a/public/docs/js/latest/api/di/BindingBuilder-class.jade
+++ b/public/docs/js/latest/api/di/BindingBuilder-class.jade
@@ -31,6 +31,7 @@ p.location-badge.
toAlias(aliasToken)
:markdown
+
Binds a key to the alias for an existing key.
An alias means that we will return the same instance as if the alias token was used. (This is in contrast to
@@ -75,6 +76,7 @@ p.location-badge.
toAsyncFactory(factoryFunction:Function, dependencies:List = null)
:markdown
+
Binds a key to a function which computes the value asynchronously.
@@ -109,6 +111,7 @@ p.location-badge.
toClass(type:Type)
:markdown
+
Binds an interface to an implementation / subclass.
@@ -150,6 +153,7 @@ p.location-badge.
toFactory(factoryFunction:Function, dependencies:List = null)
:markdown
+
Binds a key to a function which computes the value.
@@ -177,6 +181,7 @@ p.location-badge.
toValue(value)
:markdown
+
Binds a key to a value.
@@ -198,6 +203,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/di/Injector-class.jade b/public/docs/js/latest/api/di/Injector-class.jade
index a862306fc8..e6af427100 100644
--- a/public/docs/js/latest/api/di/Injector-class.jade
+++ b/public/docs/js/latest/api/di/Injector-class.jade
@@ -64,6 +64,7 @@ p.location-badge.
asyncGet(token, [object Object])
:markdown
+
Retrieves an instance from the injector asynchronously. Used with asynchronous bindings.
@@ -80,6 +81,7 @@ p.location-badge.
createChildFromResolved(bindings:List<ResolvedBinding>, [object Object])
:markdown
+
Creates a child injector and loads a new set of ResolvedBinding
s into it.
@@ -96,6 +98,7 @@ p.location-badge.
fromResolvedBindings(bindings:List<ResolvedBinding>, {defaultBindings=false}={}, [object Object], [object Object])
:markdown
+
Creates an injector from previously resolved bindings. This bypasses resolution and flattening. This API is the
recommended way to construct injectors in performance-sensitive parts.
@@ -113,6 +116,7 @@ p.location-badge.
get(token, [object Object])
:markdown
+
Retrieves an instance from the injector.
@@ -129,6 +133,7 @@ p.location-badge.
getOptional(token, [object Object])
:markdown
+
Retrieves an instance from the injector.
@@ -145,6 +150,7 @@ p.location-badge.
resolve(bindings:List, [object Object])
:markdown
+
Turns a list of binding definitions into an internal resolved list of resolved bindings.
A resolution is a process of flattening multiple nested lists and converting individual bindings into a
@@ -165,6 +171,7 @@ p.location-badge.
resolveAndCreate(bindings:List, {defaultBindings=false}={}, [object Object], [object Object])
:markdown
+
Resolves bindings and creates an injector based on those bindings. This function is slower than the
corresponding `fromResolvedBindings` because it needs to resolve bindings first. See `resolve` for the
Injector
.
@@ -185,6 +192,7 @@ p.location-badge.
resolveAndCreateChild(bindings:List, [object Object])
:markdown
+
Creates a child injector and loads a new set of bindings into it.
A resolution is a process of flattening multiple nested lists and converting individual bindings into a
diff --git a/public/docs/js/latest/api/di/Key-class.jade b/public/docs/js/latest/api/di/Key-class.jade
index 610766ef1d..7c31f50d1c 100644
--- a/public/docs/js/latest/api/di/Key-class.jade
+++ b/public/docs/js/latest/api/di/Key-class.jade
@@ -34,6 +34,7 @@ p.location-badge.
:markdown
+
@@ -49,6 +50,7 @@ p.location-badge.
get(token)
:markdown
+
Retrieves a `Key` for a token.
@@ -60,6 +62,7 @@ p.location-badge.
:markdown
+
@@ -71,6 +74,7 @@ p.location-badge.
:markdown
+
@@ -82,6 +86,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/di/ResolvedBinding-class.jade b/public/docs/js/latest/api/di/ResolvedBinding-class.jade
index c2d15c2425..4d0bced13a 100644
--- a/public/docs/js/latest/api/di/ResolvedBinding-class.jade
+++ b/public/docs/js/latest/api/di/ResolvedBinding-class.jade
@@ -30,6 +30,7 @@ p.location-badge.
:markdown
+
Arguments (dependencies) to the `factory` function.
@@ -41,6 +42,7 @@ p.location-badge.
:markdown
+
Factory function which can return an instance of an object represented by a key.
@@ -52,6 +54,7 @@ p.location-badge.
:markdown
+
A key, usually a `Type`.
@@ -63,6 +66,7 @@ p.location-badge.
:markdown
+
Specifies whether the `factory` function returns a `Promise`.
diff --git a/public/docs/js/latest/api/di_annotations/DependencyAnnotation-class.jade b/public/docs/js/latest/api/di_annotations/DependencyAnnotation-class.jade
index 6faa4d4c7d..028c28b977 100644
--- a/public/docs/js/latest/api/di_annotations/DependencyAnnotation-class.jade
+++ b/public/docs/js/latest/api/di_annotations/DependencyAnnotation-class.jade
@@ -49,6 +49,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/di_annotations/Inject-class.jade b/public/docs/js/latest/api/di_annotations/Inject-class.jade
index 2061f380ef..3ea4b91b32 100644
--- a/public/docs/js/latest/api/di_annotations/Inject-class.jade
+++ b/public/docs/js/latest/api/di_annotations/Inject-class.jade
@@ -33,6 +33,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/di_annotations/InjectLazy-class.jade b/public/docs/js/latest/api/di_annotations/InjectLazy-class.jade
index 5135fb88f4..2288e3ac2b 100644
--- a/public/docs/js/latest/api/di_annotations/InjectLazy-class.jade
+++ b/public/docs/js/latest/api/di_annotations/InjectLazy-class.jade
@@ -35,6 +35,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/di_annotations/InjectPromise-class.jade b/public/docs/js/latest/api/di_annotations/InjectPromise-class.jade
index a73c5749d8..cea5d6dfcd 100644
--- a/public/docs/js/latest/api/di_annotations/InjectPromise-class.jade
+++ b/public/docs/js/latest/api/di_annotations/InjectPromise-class.jade
@@ -35,6 +35,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/di_errors/AbstractBindingError-class.jade b/public/docs/js/latest/api/di_errors/AbstractBindingError-class.jade
index 51bed546a4..cdb591e024 100644
--- a/public/docs/js/latest/api/di_errors/AbstractBindingError-class.jade
+++ b/public/docs/js/latest/api/di_errors/AbstractBindingError-class.jade
@@ -31,6 +31,7 @@ p.location-badge.
addKey(key)
:markdown
+
@@ -42,6 +43,7 @@ p.location-badge.
:markdown
+
@@ -53,6 +55,7 @@ p.location-badge.
:markdown
+
@@ -64,6 +67,7 @@ p.location-badge.
:markdown
+
@@ -79,6 +83,7 @@ p.location-badge.
toString()
:markdown
+
diff --git a/public/docs/js/latest/api/di_errors/InstantiationError-class.jade b/public/docs/js/latest/api/di_errors/InstantiationError-class.jade
index 509706fbb1..f9899114fd 100644
--- a/public/docs/js/latest/api/di_errors/InstantiationError-class.jade
+++ b/public/docs/js/latest/api/di_errors/InstantiationError-class.jade
@@ -30,6 +30,7 @@ p.location-badge.
:markdown
+
@@ -41,6 +42,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/di_errors/InvalidBindingError-class.jade b/public/docs/js/latest/api/di_errors/InvalidBindingError-class.jade
index e46016097e..84eadb3614 100644
--- a/public/docs/js/latest/api/di_errors/InvalidBindingError-class.jade
+++ b/public/docs/js/latest/api/di_errors/InvalidBindingError-class.jade
@@ -27,6 +27,7 @@ p.location-badge.
:markdown
+
@@ -42,6 +43,7 @@ p.location-badge.
toString()
:markdown
+
diff --git a/public/docs/js/latest/api/di_errors/NoAnnotationError-class.jade b/public/docs/js/latest/api/di_errors/NoAnnotationError-class.jade
index 1a0f7af21a..83d77fba6d 100644
--- a/public/docs/js/latest/api/di_errors/NoAnnotationError-class.jade
+++ b/public/docs/js/latest/api/di_errors/NoAnnotationError-class.jade
@@ -30,6 +30,7 @@ p.location-badge.
:markdown
+
@@ -45,6 +46,7 @@ p.location-badge.
toString()
:markdown
+
diff --git a/public/docs/js/latest/api/directives/For-class.jade b/public/docs/js/latest/api/directives/For-class.jade
index 3d74a581c0..5dd97edc3c 100644
--- a/public/docs/js/latest/api/directives/For-class.jade
+++ b/public/docs/js/latest/api/directives/For-class.jade
@@ -21,7 +21,7 @@ p.location-badge.
```
Control
directive.
@@ -34,6 +34,7 @@ p.location-badge.
:markdown
+
@@ -45,6 +46,7 @@ p.location-badge.
:markdown
+
@@ -60,6 +62,7 @@ p.location-badge.
writeValue(value)
:markdown
+
diff --git a/public/docs/js/latest/api/forms/FormBuilder-class.jade b/public/docs/js/latest/api/forms/FormBuilder-class.jade
index 4f055b585e..0930574f56 100644
--- a/public/docs/js/latest/api/forms/FormBuilder-class.jade
+++ b/public/docs/js/latest/api/forms/FormBuilder-class.jade
@@ -33,6 +33,7 @@ p.location-badge.
array(controlsConfig:List, validator:Function = null)
:markdown
+
@@ -48,6 +49,7 @@ p.location-badge.
control(value, validator:Function = null)
:markdown
+
@@ -63,6 +65,7 @@ p.location-badge.
group(controlsConfig, extra = null)
:markdown
+
diff --git a/public/docs/js/latest/api/forms/Validators-class.jade b/public/docs/js/latest/api/forms/Validators-class.jade
index be8fe31d5f..fb3da5a5ba 100644
--- a/public/docs/js/latest/api/forms/Validators-class.jade
+++ b/public/docs/js/latest/api/forms/Validators-class.jade
@@ -23,6 +23,7 @@ p.location-badge.
array(c:modelModule.ControlArray)
:markdown
+
@@ -38,6 +39,7 @@ p.location-badge.
compose(validators:List<Function>)
:markdown
+
@@ -53,6 +55,7 @@ p.location-badge.
group(c:modelModule.ControlGroup)
:markdown
+
@@ -68,6 +71,7 @@ p.location-badge.
nullValidator(c:any)
:markdown
+
@@ -83,6 +87,7 @@ p.location-badge.
required(c:modelModule.Control)
:markdown
+
diff --git a/public/docs/js/latest/api/pipes/AsyncPipe-class.jade b/public/docs/js/latest/api/pipes/AsyncPipe-class.jade
index a5ec3c5336..fa2c415a68 100644
--- a/public/docs/js/latest/api/pipes/AsyncPipe-class.jade
+++ b/public/docs/js/latest/api/pipes/AsyncPipe-class.jade
@@ -50,6 +50,7 @@ p.location-badge.
onDestroy()
:markdown
+
@@ -65,6 +66,7 @@ p.location-badge.
supports(obs)
:markdown
+
@@ -80,6 +82,7 @@ p.location-badge.
transform(obs:Observable)
:markdown
+
diff --git a/public/docs/js/latest/api/pipes/AsyncPipeFactory-class.jade b/public/docs/js/latest/api/pipes/AsyncPipeFactory-class.jade
index b63e9311c0..5f8e107dd5 100644
--- a/public/docs/js/latest/api/pipes/AsyncPipeFactory-class.jade
+++ b/public/docs/js/latest/api/pipes/AsyncPipeFactory-class.jade
@@ -17,6 +17,7 @@ p.location-badge.
create(cdRef)
:markdown
+
@@ -32,6 +33,7 @@ p.location-badge.
supports(obs)
:markdown
+
diff --git a/public/docs/js/latest/api/pipes/CollectionChangeRecord-class.jade b/public/docs/js/latest/api/pipes/CollectionChangeRecord-class.jade
index cf1036886c..c16828a03d 100644
--- a/public/docs/js/latest/api/pipes/CollectionChangeRecord-class.jade
+++ b/public/docs/js/latest/api/pipes/CollectionChangeRecord-class.jade
@@ -26,6 +26,7 @@ p.location-badge.
:markdown
+
@@ -37,6 +38,7 @@ p.location-badge.
:markdown
+
@@ -48,6 +50,7 @@ p.location-badge.
:markdown
+
@@ -63,6 +66,7 @@ p.location-badge.
toString()
:markdown
+
diff --git a/public/docs/js/latest/api/pipes/IterableChanges-class.jade b/public/docs/js/latest/api/pipes/IterableChanges-class.jade
index 745d8bc828..544ab05509 100644
--- a/public/docs/js/latest/api/pipes/IterableChanges-class.jade
+++ b/public/docs/js/latest/api/pipes/IterableChanges-class.jade
@@ -30,6 +30,7 @@ p.location-badge.
check(collection)
:markdown
+
@@ -41,6 +42,7 @@ p.location-badge.
:markdown
+
@@ -56,6 +58,7 @@ p.location-badge.
forEachAddedItem(fn:Function)
:markdown
+
@@ -71,6 +74,7 @@ p.location-badge.
forEachItem(fn:Function)
:markdown
+
@@ -86,6 +90,7 @@ p.location-badge.
forEachMovedItem(fn:Function)
:markdown
+
@@ -101,6 +106,7 @@ p.location-badge.
forEachPreviousItem(fn:Function)
:markdown
+
@@ -116,6 +122,7 @@ p.location-badge.
forEachRemovedItem(fn:Function)
:markdown
+
@@ -127,6 +134,7 @@ p.location-badge.
:markdown
+
@@ -138,6 +146,7 @@ p.location-badge.
:markdown
+
@@ -153,6 +162,7 @@ p.location-badge.
supports(obj)
:markdown
+
@@ -168,6 +178,7 @@ p.location-badge.
supportsObj(obj)
:markdown
+
@@ -183,6 +194,7 @@ p.location-badge.
toString()
:markdown
+
@@ -198,6 +210,7 @@ p.location-badge.
transform(collection)
:markdown
+
diff --git a/public/docs/js/latest/api/pipes/KVChangeRecord-class.jade b/public/docs/js/latest/api/pipes/KVChangeRecord-class.jade
index 194e83283c..c6febc5700 100644
--- a/public/docs/js/latest/api/pipes/KVChangeRecord-class.jade
+++ b/public/docs/js/latest/api/pipes/KVChangeRecord-class.jade
@@ -26,6 +26,7 @@ p.location-badge.
:markdown
+
@@ -37,6 +38,7 @@ p.location-badge.
:markdown
+
@@ -48,6 +50,7 @@ p.location-badge.
:markdown
+
@@ -63,6 +66,7 @@ p.location-badge.
toString()
:markdown
+
diff --git a/public/docs/js/latest/api/pipes/KeyValueChanges-class.jade b/public/docs/js/latest/api/pipes/KeyValueChanges-class.jade
index 2083b2f4bd..36c01a25a1 100644
--- a/public/docs/js/latest/api/pipes/KeyValueChanges-class.jade
+++ b/public/docs/js/latest/api/pipes/KeyValueChanges-class.jade
@@ -30,6 +30,7 @@ p.location-badge.
check(map)
:markdown
+
@@ -45,6 +46,7 @@ p.location-badge.
forEachAddedItem(fn:Function)
:markdown
+
@@ -60,6 +62,7 @@ p.location-badge.
forEachChangedItem(fn:Function)
:markdown
+
@@ -75,6 +78,7 @@ p.location-badge.
forEachItem(fn:Function)
:markdown
+
@@ -90,6 +94,7 @@ p.location-badge.
forEachPreviousItem(fn:Function)
:markdown
+
@@ -105,6 +110,7 @@ p.location-badge.
forEachRemovedItem(fn:Function)
:markdown
+
@@ -116,6 +122,7 @@ p.location-badge.
:markdown
+
@@ -131,6 +138,7 @@ p.location-badge.
supports(obj)
:markdown
+
@@ -146,6 +154,7 @@ p.location-badge.
supportsObj(obj)
:markdown
+
@@ -161,6 +170,7 @@ p.location-badge.
toString()
:markdown
+
@@ -176,6 +186,7 @@ p.location-badge.
transform(map)
:markdown
+
diff --git a/public/docs/js/latest/api/pipes/KeyValueChangesFactory-class.jade b/public/docs/js/latest/api/pipes/KeyValueChangesFactory-class.jade
index cec356e687..fcb06dd299 100644
--- a/public/docs/js/latest/api/pipes/KeyValueChangesFactory-class.jade
+++ b/public/docs/js/latest/api/pipes/KeyValueChangesFactory-class.jade
@@ -16,6 +16,7 @@ p.location-badge.
create(cdRef)
:markdown
+
@@ -31,6 +32,7 @@ p.location-badge.
supports(obj)
:markdown
+
diff --git a/public/docs/js/latest/api/pipes/NullPipe-class.jade b/public/docs/js/latest/api/pipes/NullPipe-class.jade
index 3fc46c1a46..4c37ac0e41 100644
--- a/public/docs/js/latest/api/pipes/NullPipe-class.jade
+++ b/public/docs/js/latest/api/pipes/NullPipe-class.jade
@@ -26,6 +26,7 @@ p.location-badge.
:markdown
+
@@ -41,6 +42,7 @@ p.location-badge.
supports(obj)
:markdown
+
@@ -56,6 +58,7 @@ p.location-badge.
supportsObj(obj)
:markdown
+
@@ -71,6 +74,7 @@ p.location-badge.
transform(value)
:markdown
+
diff --git a/public/docs/js/latest/api/pipes/NullPipeFactory-class.jade b/public/docs/js/latest/api/pipes/NullPipeFactory-class.jade
index b4229db063..c7df0af1aa 100644
--- a/public/docs/js/latest/api/pipes/NullPipeFactory-class.jade
+++ b/public/docs/js/latest/api/pipes/NullPipeFactory-class.jade
@@ -16,6 +16,7 @@ p.location-badge.
create(cdRef)
:markdown
+
@@ -31,6 +32,7 @@ p.location-badge.
supports(obj)
:markdown
+
diff --git a/public/docs/js/latest/api/pipes/Pipe-class.jade b/public/docs/js/latest/api/pipes/Pipe-class.jade
index cbfb7436b5..f234751acf 100644
--- a/public/docs/js/latest/api/pipes/Pipe-class.jade
+++ b/public/docs/js/latest/api/pipes/Pipe-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/pipe.js (line 32)
+ defined in angular2/src/change_detection/pipes/pipe.js (line 52)
:markdown
An interface for extending the list of pipes known to Angular.
@@ -33,6 +33,7 @@ p.location-badge.
onDestroy()
:markdown
+
@@ -48,6 +49,7 @@ p.location-badge.
supports(obj)
:markdown
+
@@ -63,6 +65,7 @@ p.location-badge.
transform(value:any)
:markdown
+
diff --git a/public/docs/js/latest/api/router/Router-class.jade b/public/docs/js/latest/api/router/Router-class.jade
index ce34c08519..137f0edaf1 100644
--- a/public/docs/js/latest/api/router/Router-class.jade
+++ b/public/docs/js/latest/api/router/Router-class.jade
@@ -4,7 +4,7 @@ p.location-badge.
defined in angular2/src/router/router.js (line 18)
:markdown
- # Router
+ ## Router
The router is responsible for mapping URLs to components.
You can see the state of the router by inspecting the read-only field `router.navigating`.
@@ -35,6 +35,7 @@ p.location-badge.
activateOutlets(instruction:Instruction)
:markdown
+
@@ -50,6 +51,7 @@ p.location-badge.
childRouter(outletName = 'default')
:markdown
+
Constructs a child router. You probably don't need to use this unless you're writing a reusable component.
@@ -65,9 +67,10 @@ p.location-badge.
config(path:string, component, alias:string=null)
:markdown
+
Update the routing configuration and trigger a navigation.
- # Usage
+ ### Usage
```
router.config('/', SomeCmp);
@@ -86,6 +89,7 @@ p.location-badge.
generate(name:string, params:any)
:markdown
+
Generate a URL from a component name and optional map of parameters. The URL is relative to the app's base href.
@@ -101,6 +105,7 @@ p.location-badge.
getRoot()
:markdown
+
@@ -112,6 +117,7 @@ p.location-badge.
:markdown
+
@@ -123,6 +129,7 @@ p.location-badge.
:markdown
+
@@ -138,6 +145,7 @@ p.location-badge.
navigate(url:string)
:markdown
+
Navigate to a URL. Returns a promise that resolves to the canonical URL for the route.
@@ -149,6 +157,7 @@ p.location-badge.
:markdown
+
@@ -160,6 +169,7 @@ p.location-badge.
:markdown
+
@@ -171,6 +181,7 @@ p.location-badge.
:markdown
+
@@ -186,6 +197,7 @@ p.location-badge.
recognize(url:string)
:markdown
+
Given a URL, returns an instruction representing the component graph
@@ -201,6 +213,7 @@ p.location-badge.
registerOutlet(outlet:RouterOutlet, name = 'default')
:markdown
+
Register an object to notify of route changes. You probably don't need to use this unless you're writing a reusable component.
@@ -216,6 +229,7 @@ p.location-badge.
renavigate()
:markdown
+
Navigates to either the last URL successfully navigated to, or the last URL requested if the router has yet to successfully navigate.
@@ -231,6 +245,7 @@ p.location-badge.
subscribe(onNext)
:markdown
+
Subscribe to URL updates from the router
@@ -246,6 +261,7 @@ p.location-badge.
traverseOutlets(fn)
:markdown
+
diff --git a/public/docs/js/latest/api/router/RouterLink-class.jade b/public/docs/js/latest/api/router/RouterLink-class.jade
index a41458f7be..fcdd9a96f2 100644
--- a/public/docs/js/latest/api/router/RouterLink-class.jade
+++ b/public/docs/js/latest/api/router/RouterLink-class.jade
@@ -30,7 +30,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(ngEl:NgElement, router:Router)
+ constructor(elementRef:ElementRef, router:Router)
:markdown
@@ -47,6 +47,7 @@ p.location-badge.
params(changes)
:markdown
+
@@ -62,6 +63,7 @@ p.location-badge.
route(changes)
:markdown
+
@@ -77,6 +79,7 @@ p.location-badge.
updateHref()
:markdown
+
diff --git a/public/docs/js/latest/api/test/TestBed-class.jade b/public/docs/js/latest/api/test/TestBed-class.jade
index 451bc1e657..2e07dbba26 100644
--- a/public/docs/js/latest/api/test/TestBed-class.jade
+++ b/public/docs/js/latest/api/test/TestBed-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/test
- defined in angular2/src/test_lib/test_bed.js (line 19)
+ defined in angular2/src/test_lib/test_bed.js (line 20)
:markdown
@@ -30,6 +30,7 @@ p.location-badge.
createView(component: Type, {context = null, html = null}: {context:any, html: string} = {}, [object Object], [object Object], [object Object])
:markdown
+
Creates an `AppView` for the given component.
Only either a component or a context needs to be specified but both can be provided for
@@ -49,6 +50,7 @@ p.location-badge.
overrideDirective(component: Type, from: Type, to: Type, [object Object], [object Object], [object Object])
:markdown
+
Overrides the directives from the component View
.
@@ -65,6 +67,7 @@ p.location-badge.
overrideView(component: Type, template: View, [object Object], [object Object])
:markdown
+
Overrides the View
of a Component
.
@@ -81,6 +84,7 @@ p.location-badge.
setInlineTemplate(component: Type, html: string, [object Object], [object Object])
:markdown
+
Overrides only the html of a Component
.
All the other propoerties of the component's View
are preserved.
diff --git a/public/docs/js/latest/api/view/BaseQueryList-class.jade b/public/docs/js/latest/api/view/BaseQueryList-class.jade
index 62bfaa815f..0c9d62f9c2 100644
--- a/public/docs/js/latest/api/view/BaseQueryList-class.jade
+++ b/public/docs/js/latest/api/view/BaseQueryList-class.jade
@@ -35,6 +35,7 @@ p.location-badge.
[Symbol.iterator]()
:markdown
+
@@ -50,6 +51,7 @@ p.location-badge.
add(obj)
:markdown
+
@@ -65,6 +67,7 @@ p.location-badge.
fireCallbacks()
:markdown
+
@@ -80,6 +83,7 @@ p.location-badge.
onChange(callback)
:markdown
+
@@ -95,6 +99,7 @@ p.location-badge.
removeCallback(callback)
:markdown
+
@@ -110,6 +115,7 @@ p.location-badge.
reset(newList)
:markdown
+
diff --git a/public/docs/js/latest/api/view/Compiler-class.jade b/public/docs/js/latest/api/view/Compiler-class.jade
index d3a76ad9f4..e15cfc078c 100644
--- a/public/docs/js/latest/api/view/Compiler-class.jade
+++ b/public/docs/js/latest/api/view/Compiler-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/view
- defined in angular2/src/core/compiler/compiler.js (line 46)
+ defined in angular2/src/core/compiler/compiler.js (line 47)
:markdown
@@ -30,6 +30,7 @@ p.location-badge.
buildRenderDirective(directiveBinding)
:markdown
+
@@ -45,6 +46,7 @@ p.location-badge.
compile(component: Type)
:markdown
+
@@ -60,6 +62,7 @@ p.location-badge.
compileInHost(componentTypeOrBinding:any)
:markdown
+
diff --git a/public/docs/js/latest/api/view/ComponentRef-class.jade b/public/docs/js/latest/api/view/ComponentRef-class.jade
index 3c2b4a72dc..9e8c8bfbc2 100644
--- a/public/docs/js/latest/api/view/ComponentRef-class.jade
+++ b/public/docs/js/latest/api/view/ComponentRef-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/view
- defined in angular2/src/core/compiler/dynamic_component_loader.js (line 11)
+ defined in angular2/src/core/compiler/dynamic_component_loader.js (line 10)
:markdown
@@ -13,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(location:ElementRef, instance:any, componentView:AppView, dispose:Function)
+ constructor(location:ElementRef, instance:any, dispose:Function)
:markdown
@@ -21,17 +21,6 @@ p.location-badge.
- .l-sub-section
- h3 componentView
-
-
- :markdown
-
-
-
-
-
-
.l-sub-section
h3 dispose
@@ -41,6 +30,7 @@ p.location-badge.
dispose()
:markdown
+
@@ -52,17 +42,7 @@ p.location-badge.
:markdown
-
-
-
-
-
- .l-sub-section
- h3 injector
-
-
- :markdown
@@ -74,6 +54,7 @@ p.location-badge.
:markdown
+
@@ -85,6 +66,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/view/DynamicComponentLoader-class.jade b/public/docs/js/latest/api/view/DynamicComponentLoader-class.jade
index 7d7e68e2eb..2693b71c90 100644
--- a/public/docs/js/latest/api/view/DynamicComponentLoader-class.jade
+++ b/public/docs/js/latest/api/view/DynamicComponentLoader-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/view
- defined in angular2/src/core/compiler/dynamic_component_loader.js (line 44)
+ defined in angular2/src/core/compiler/dynamic_component_loader.js (line 37)
:markdown
Service for dynamically loading a Component into an arbitrary position in the internal Angular
@@ -32,6 +32,7 @@ p.location-badge.
loadIntoExistingLocation(typeOrBinding, location:ElementRef, injector:Injector = null)
:markdown
+
Loads a component into the location given by the provided ElementRef. The loaded component
receives injection as if it in the place of the provided ElementRef.
@@ -48,6 +49,7 @@ p.location-badge.
loadIntoNewLocation(typeOrBinding, parentComponentLocation:ElementRef, elementOrSelector:any, injector:Injector = null)
:markdown
+
Loads a component in the element specified by elementOrSelector. The loaded component receives
injection normally as a hosted view.
@@ -64,6 +66,7 @@ p.location-badge.
loadNextToExistingLocation(typeOrBinding, location:ElementRef, injector:Injector = null)
:markdown
+
Loads a component next to the provided ElementRef. The loaded component receives
injection normally as a hosted view.
diff --git a/public/docs/js/latest/api/view/ElementRef-class.jade b/public/docs/js/latest/api/view/ElementRef-class.jade
index e7a86b75f8..079d03d179 100644
--- a/public/docs/js/latest/api/view/ElementRef-class.jade
+++ b/public/docs/js/latest/api/view/ElementRef-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/view
- defined in angular2/src/core/compiler/element_injector.js (line 28)
+ defined in angular2/src/core/compiler/element_ref.js (line 8)
:markdown
@@ -13,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(elementInjector, hostView, boundElementIndex, injector, viewManager, defaultProtoView)
+ constructor(parentView:ViewRef, boundElementIndex:number)
:markdown
@@ -26,6 +26,7 @@ p.location-badge.
:markdown
+
@@ -33,43 +34,41 @@ p.location-badge.
.l-sub-section
- h3 elementInjector
+ h3 domElement
:markdown
-
+
+ Exposes the underlying DOM element.
+ (DEPRECATED way of accessing the DOM, replacement coming)
.l-sub-section
- h3 hostView
+ h3 getAttribute
+ pre.prettyprint
+ code.
+ getAttribute(name:string)
+
:markdown
-
+
+ Gets an attribute from the underlying DOM element.
+ (DEPRECATED way of accessing the DOM, replacement coming)
.l-sub-section
- h3 injector
-
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 viewContainer
+ h3 parentView
:markdown
+
diff --git a/public/docs/js/latest/api/view/ProtoViewRef-class.jade b/public/docs/js/latest/api/view/ProtoViewRef-class.jade
new file mode 100644
index 0000000000..ef404bf9f2
--- /dev/null
+++ b/public/docs/js/latest/api/view/ProtoViewRef-class.jade
@@ -0,0 +1,22 @@
+
+p.location-badge.
+ exported from angular2/view
+ defined in angular2/src/core/compiler/view_ref.js (line 36)
+
+:markdown
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(protoView)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/view/QueryList-class.jade b/public/docs/js/latest/api/view/QueryList-class.jade
index 1554a2e0f0..479a1f5605 100644
--- a/public/docs/js/latest/api/view/QueryList-class.jade
+++ b/public/docs/js/latest/api/view/QueryList-class.jade
@@ -10,7 +10,7 @@ p.location-badge.
The directives are kept in depth-first pre-order traversal of the DOM.
The `QueryList` is iterable, therefore it can be used in both javascript code with `for..of` loop as well as in
- template with `*for="of"` viewport.
+ template with `*for="of"` directive.
NOTE: In the future this class will implement an `Observable` interface. For now it uses a plain list of observable
callbacks.
@@ -78,6 +78,7 @@ p.location-badge.
onChange(callback)
:markdown
+
@@ -93,6 +94,7 @@ p.location-badge.
removeCallback(callback)
:markdown
+
diff --git a/public/docs/js/latest/api/view/ViewContainer-class.jade b/public/docs/js/latest/api/view/ViewContainer-class.jade
deleted file mode 100644
index 5c785a9c5d..0000000000
--- a/public/docs/js/latest/api/view/ViewContainer-class.jade
+++ /dev/null
@@ -1,217 +0,0 @@
-
-p.location-badge.
- exported from angular2/view
- defined in angular2/src/core/compiler/view_container.js (line 12)
-
-:markdown
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor(parentView: viewModule.AppView, defaultProtoView: viewModule.AppProtoView, elementInjector: eiModule.ElementInjector)
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 clear
-
-
- pre.prettyprint
- code.
- clear()
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 create
-
-
- pre.prettyprint
- code.
- create(atIndex:number=-1, protoView:viewModule.AppProtoView = null, injector:Injector = null)
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 defaultProtoView
-
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 detach
-
-
- pre.prettyprint
- code.
- detach(atIndex:number=-1)
-
- :markdown
- The method can be used together with insert to implement a view move, i.e.
- moving the dom nodes while the directives in the view stay intact.
-
-
-
-
-
- .l-sub-section
- h3 elementInjector
-
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 get
-
-
- pre.prettyprint
- code.
- get(index: number)
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 getRender
-
-
- pre.prettyprint
- code.
- getRender()
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 hydrated
-
-
- pre.prettyprint
- code.
- hydrated()
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 indexOf
-
-
- pre.prettyprint
- code.
- indexOf(view:viewModule.AppView)
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 insert
-
-
- pre.prettyprint
- code.
- insert(view:viewModule.AppView, atIndex:number=-1)
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 internalClearWithoutRender
-
-
- pre.prettyprint
- code.
- internalClearWithoutRender()
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 length
-
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 parentView
-
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 remove
-
-
- pre.prettyprint
- code.
- remove(atIndex:number=-1)
-
- :markdown
-
-
-
-
-
diff --git a/public/docs/js/latest/api/view/ViewRef-class.jade b/public/docs/js/latest/api/view/ViewRef-class.jade
new file mode 100644
index 0000000000..480145f99b
--- /dev/null
+++ b/public/docs/js/latest/api/view/ViewRef-class.jade
@@ -0,0 +1,50 @@
+
+p.location-badge.
+ exported from angular2/view
+ defined in angular2/src/core/compiler/view_ref.js (line 17)
+
+:markdown
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(view:viewModule.AppView)
+
+ :markdown
+
+
+
+
+
+ .l-sub-section
+ h3 render
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 setLocal
+
+
+ pre.prettyprint
+ code.
+ setLocal(contextName: string, value:any)
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/view/_data.json b/public/docs/js/latest/api/view/_data.json
index ca814dc8cc..0fa350d5e5 100644
--- a/public/docs/js/latest/api/view/_data.json
+++ b/public/docs/js/latest/api/view/_data.json
@@ -24,8 +24,12 @@
"title" : "QueryList Class"
},
- "ViewContainerRef-class" : {
- "title" : "ViewContainerRef Class"
+ "ViewRef-class" : {
+ "title" : "ViewRef Class"
+ },
+
+ "ProtoViewRef-class" : {
+ "title" : "ProtoViewRef Class"
},
"BaseQueryList-class" : {
diff --git a/public/resources/css/module/_code-box.scss b/public/resources/css/module/_code-box.scss
index f27fc93ea5..bbd1f8ac81 100644
--- a/public/resources/css/module/_code-box.scss
+++ b/public/resources/css/module/_code-box.scss
@@ -22,6 +22,7 @@
background: lighten($steel, 3%);
color: $tin;
font-weight: 500;
+ text-transform: none;
&.is-selected {
background: $blueberry;
diff --git a/public/resources/js/site.js b/public/resources/js/site.js
index 2a31633f07..a6f78a78e9 100644
--- a/public/resources/js/site.js
+++ b/public/resources/js/site.js
@@ -58,6 +58,18 @@ angularIO.controller('AppCtrl', ['$scope', '$mdDialog', function($scope, $mdDial
$scope.language = 'es5';
var $codeBoxes = $('.code-box');
+ var getTabName = function(name) {
+ var prettyName = name;
+
+ switch(name) {
+ case 'es5': prettyName = 'ES5'; break;
+ case 'typescript': prettyName = 'TypeScript'; break;
+ default: prettyName = name;
+ }
+
+ return prettyName;
+ };
+
if($codeBoxes.length) {
//UPDATE ALL CODE BOXES
$codeBoxes.each(function(index, codeBox) {
@@ -77,8 +89,9 @@ angularIO.controller('AppCtrl', ['$scope', '$mdDialog', function($scope, $mdDial
$examples.each(function(index, example) {
var $example = $(example);
var name = $example.data('name');
+ var tabName = getTabName(name);
var selected = (index === 0) ? 'is-selected' : '';
- var $button = $("");
+ var $button = $("");
// ADD EVENTS FOR CODE SNIPPETS
$button.on('click', function(e) {