diff --git a/public/docs/js/latest/api/annotations/Attribute-class.jade b/public/docs/js/latest/api/annotations/Attribute-class.jade
index 0cd66c3bc2..7c58ac6f61 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 53)
+ defined in angular2/src/core/annotations/di.js (line 31)
:markdown
Specifies that a constant attribute value should be injected.
diff --git a/public/docs/js/latest/api/annotations/Component-class.jade b/public/docs/js/latest/api/annotations/Component-class.jade
index c917f38a5a..a07946ea59 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 521)
+ defined in angular2/src/core/annotations/annotations.js (line 547)
:markdown
Declare reusable UI building blocks for an application.
@@ -45,18 +45,20 @@ p.location-badge.
pre.prettyprint
code.
constructor({
- selector,
- properties,
- events,
- hostListeners,
- injectables,
- lifecycle,
- changeDetection = DEFAULT
+ selector,
+ properties,
+ events,
+ hostListeners,
+ hostProperties,
+ injectables,
+ lifecycle,
+ changeDetection = DEFAULT
}:{
selector:string,
properties:Object,
events:List,
- hostListeners:Object,
+ hostListeners:any,
+ hostProperties:any,
injectables:List,
lifecycle:List,
changeDetection:string
diff --git a/public/docs/js/latest/api/annotations/Decorator-class.jade b/public/docs/js/latest/api/annotations/Decorator-class.jade
index daa0783e70..39a879cb36 100644
--- a/public/docs/js/latest/api/annotations/Decorator-class.jade
+++ b/public/docs/js/latest/api/annotations/Decorator-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/annotations.js (line 755)
+ defined in angular2/src/core/annotations/annotations.js (line 787)
:markdown
Directive that attaches behavior to DOM elements.
@@ -74,6 +74,7 @@ p.location-badge.
properties,
events,
hostListeners,
+ hostProperties,
lifecycle,
compileChildren = true,
}:{
@@ -81,6 +82,7 @@ p.location-badge.
properties:any,
events:List,
hostListeners:any,
+ hostProperties:any,
lifecycle:List,
compileChildren:boolean
}={})
diff --git a/public/docs/js/latest/api/annotations/Directive-class.jade b/public/docs/js/latest/api/annotations/Directive-class.jade
index e938e3f6f1..872cdf526d 100644
--- a/public/docs/js/latest/api/annotations/Directive-class.jade
+++ b/public/docs/js/latest/api/annotations/Directive-class.jade
@@ -53,7 +53,7 @@ p.location-badge.
To inject element-specific special objects, declare the constructor parameter as:
- `element: NgElement` to obtain a DOM element (DEPRECATED: replacement coming)
- - `viewContainer: ViewContainer` to control child template instantiation, for Viewport directives only
+ - `viewContainer: ViewContainerRef` to control child template instantiation, for Viewport directives only
- `bindingPropagation: BindingPropagation` to control change detection in a more granular way.
## Example
@@ -185,8 +185,8 @@ 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
+ 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`.
```
@@ -197,7 +197,7 @@ p.location-badge.
}
```
- This directive would be instantiated with a QueryList which contains `Dependency` 4 and 6. Here, `Dependency`
+ This directive would be instantiated with a QueryList which contains `Dependency` 4 and 6. Here, `Dependency`
5 would not be included, because it is not a direct child.
### Injecting a live collection of descendant directives
@@ -246,12 +246,14 @@ p.location-badge.
properties,
events,
hostListeners,
+ hostProperties,
lifecycle
}:{
selector:string,
properties:any,
events:List,
hostListeners: any,
+ hostProperties: any,
lifecycle:List
}={})
@@ -369,6 +371,34 @@ p.location-badge.
+ .l-sub-section
+ h3 hostProperties
+
+
+ :markdown
+ Specifies which DOM properties a directives updates.
+
+ ## Syntax
+
+ ```
+ @Decorator({
+ selector: 'input',
+ hostProperties: {
+ 'value': 'value'
+ }
+ })
+ class InputDecorator {
+ value:string;
+ }
+
+ In this example every time the value property of the decorator changes, Angular will update the value property of
+ the host element.
+ ```
+
+
+
+
+
.l-sub-section
h3 lifecycle
diff --git a/public/docs/js/latest/api/annotations/DynamicComponent-class.jade b/public/docs/js/latest/api/annotations/DynamicComponent-class.jade
index 6dae2a59da..c98c9f6ff4 100644
--- a/public/docs/js/latest/api/annotations/DynamicComponent-class.jade
+++ b/public/docs/js/latest/api/annotations/DynamicComponent-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/annotations.js (line 660)
+ defined in angular2/src/core/annotations/annotations.js (line 689)
:markdown
Directive used for dynamically loading components.
@@ -57,17 +57,19 @@ p.location-badge.
pre.prettyprint
code.
constructor({
- selector,
- properties,
- events,
- hostListeners,
- injectables,
- lifecycle
+ selector,
+ properties,
+ events,
+ hostListeners,
+ hostProperties,
+ injectables,
+ lifecycle
}:{
selector:string,
- properties:Object,
+ properties:any,
events:List,
- hostListeners:Object,
+ hostListeners:any,
+ hostProperties:any,
injectables:List,
lifecycle:List
}={})
diff --git a/public/docs/js/latest/api/annotations/Query-class.jade b/public/docs/js/latest/api/annotations/Query-class.jade
index 1a7fd3457f..b574900646 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 77)
+ defined in angular2/src/core/annotations/di.js (line 55)
:markdown
Specifies that a QueryList should be injected.
diff --git a/public/docs/js/latest/api/annotations/View-class.jade b/public/docs/js/latest/api/annotations/View-class.jade
index 40032f41f6..4b58243c63 100644
--- a/public/docs/js/latest/api/annotations/View-class.jade
+++ b/public/docs/js/latest/api/annotations/View-class.jade
@@ -108,7 +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.
+ NOTE: either `templateUrl` or `template` should be used, but not both.
@@ -121,7 +121,7 @@ p.location-badge.
:markdown
Specifies a template URL for an angular component.
- NOTE: either `templateURL` or `template` should be used, but not both.
+ 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
index 32f02bebed..f92ad94fc2 100644
--- a/public/docs/js/latest/api/annotations/Viewport-class.jade
+++ b/public/docs/js/latest/api/annotations/Viewport-class.jade
@@ -1,13 +1,13 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/annotations.js (line 884)
+ 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 ViewContainer to instantiate, insert, move, and destroy views at runtime.
- The ViewContainer is created as a result of `` element, and represents a location in the current view
+ 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
@@ -52,10 +52,10 @@ p.location-badge.
}
})
export class Unless {
- viewContainer: ViewContainer;
+ viewContainer: ViewContainerRef;
prevCondition: boolean;
- constructor(viewContainer: ViewContainer) {
+ constructor(viewContainer: ViewContainerRef) {
this.viewContainer = viewContainer;
this.prevCondition = null;
}
@@ -107,12 +107,15 @@ p.location-badge.
properties,
events,
hostListeners,
+ hostProperties,
lifecycle
}:{
- selector:string,
- properties:any,
- events:List,
- lifecycle:List
+ selector:string,
+ properties:any,
+ hostListeners:any,
+ hostProperties:any,
+ events:List,
+ lifecycle:List
}={})
:markdown
diff --git a/public/docs/js/latest/api/annotations/_data.json b/public/docs/js/latest/api/annotations/_data.json
index 6d68af357c..d50a4ee397 100644
--- a/public/docs/js/latest/api/annotations/_data.json
+++ b/public/docs/js/latest/api/annotations/_data.json
@@ -36,10 +36,6 @@
"title" : "onAllChangesDone Var"
},
- "PropertySetter-class" : {
- "title" : "PropertySetter Class"
- },
-
"Attribute-class" : {
"title" : "Attribute Class"
},
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 f78bd2be1f..163386a74c 100644
--- a/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade
+++ b/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade
@@ -22,7 +22,7 @@ p.location-badge.
# Example
```javascript
- bootstrap(MyApp, [bind(ChangeDetection).toValue(dynamicChangeDetection)]);
+ bootstrap(MyApp, [bind(ChangeDetection).toClass(DynamicChangeDetection)]);
```
.l-main-section
h2 Members
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 bd4a2aa2e2..38a247faa2 100644
--- a/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade
+++ b/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade
@@ -1,9 +1,12 @@
p.location-badge.
exported from angular2/change_detection
- defined in angular2/src/change_detection/change_detection.js (line 51)
+ defined in angular2/src/change_detection/change_detection.js (line 55)
:markdown
+ Implements change detection that does not require `eval()`.
+
+ This is slower than JitChangeDetection.
.l-main-section
h2 Members
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 e4edcc3f81..be14f7b839 100644
--- a/public/docs/js/latest/api/change_detection/JitChangeDetection-class.jade
+++ b/public/docs/js/latest/api/change_detection/JitChangeDetection-class.jade
@@ -1,9 +1,12 @@
p.location-badge.
exported from angular2/change_detection
- defined in angular2/src/change_detection/change_detection.js (line 68)
+ defined in angular2/src/change_detection/change_detection.js (line 76)
:markdown
+ Implements faster change detection, by generating source code.
+
+ This requires `eval()`. For change detection that does not require `eval()`, see DynamicChangeDetection.
.l-main-section
h2 Members
diff --git a/public/docs/js/latest/api/core/_data.json b/public/docs/js/latest/api/core/_data.json
index 73e3d5cb98..5592782731 100644
--- a/public/docs/js/latest/api/core/_data.json
+++ b/public/docs/js/latest/api/core/_data.json
@@ -1,6 +1,7 @@
{
"index" : {
- "title" : "Core"
+ "title" : "Core",
+ "intro" : "Define angular core API here."
},
"bootstrap-function" : {
diff --git a/public/docs/js/latest/api/di/Key-class.jade b/public/docs/js/latest/api/di/Key-class.jade
index 0687c469de..610766ef1d 100644
--- a/public/docs/js/latest/api/di/Key-class.jade
+++ b/public/docs/js/latest/api/di/Key-class.jade
@@ -29,6 +29,17 @@ p.location-badge.
+ .l-sub-section
+ h3 displayName
+
+
+ :markdown
+
+
+
+
+
+
.l-sub-section
h3 get
@@ -55,17 +66,6 @@ p.location-badge.
- .l-sub-section
- h3 metadata
-
-
- :markdown
-
-
-
-
-
-
.l-sub-section
h3 numberOfKeys
diff --git a/public/docs/js/latest/api/directives/For-class.jade b/public/docs/js/latest/api/directives/For-class.jade
index 129521498e..3d74a581c0 100644
--- a/public/docs/js/latest/api/directives/For-class.jade
+++ b/public/docs/js/latest/api/directives/For-class.jade
@@ -41,7 +41,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(viewContainer:ViewContainer)
+ constructor(viewContainer:ViewContainerRef)
:markdown
diff --git a/public/docs/js/latest/api/directives/If-class.jade b/public/docs/js/latest/api/directives/If-class.jade
index 96e874c521..d6d181f2b2 100644
--- a/public/docs/js/latest/api/directives/If-class.jade
+++ b/public/docs/js/latest/api/directives/If-class.jade
@@ -32,7 +32,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(viewContainer: ViewContainer)
+ constructor(viewContainer: ViewContainerRef)
:markdown
diff --git a/public/docs/js/latest/api/directives/SwitchDefault-class.jade b/public/docs/js/latest/api/directives/SwitchDefault-class.jade
index b2e1d7f9ae..c94259a4fa 100644
--- a/public/docs/js/latest/api/directives/SwitchDefault-class.jade
+++ b/public/docs/js/latest/api/directives/SwitchDefault-class.jade
@@ -22,7 +22,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(viewContainer: ViewContainer, sswitch: Switch)
+ constructor(viewContainer: ViewContainerRef, sswitch: Switch)
:markdown
diff --git a/public/docs/js/latest/api/directives/SwitchWhen-class.jade b/public/docs/js/latest/api/directives/SwitchWhen-class.jade
index 669f6bcc8a..86b83d80c2 100644
--- a/public/docs/js/latest/api/directives/SwitchWhen-class.jade
+++ b/public/docs/js/latest/api/directives/SwitchWhen-class.jade
@@ -26,7 +26,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(viewContainer: ViewContainer, sswitch: Switch)
+ constructor(viewContainer: ViewContainerRef, sswitch: Switch)
:markdown
diff --git a/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade b/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade
index 6e8308c99f..4703c76e57 100644
--- a/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade
+++ b/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives.js (line 62)
+ defined in angular2/src/forms/directives.js (line 68)
:markdown
The accessor for writing a value and listening to changes on a checkbox input element.
@@ -20,7 +20,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(cd:ControlDirective, setCheckedProperty:Function)
+ constructor(cd:ControlDirective, elementRef:ElementRef, renderer:Renderer)
:markdown
@@ -28,6 +28,17 @@ p.location-badge.
+ .l-sub-section
+ h3 checked
+
+
+ :markdown
+
+
+
+
+
+
.l-sub-section
h3 onChange
diff --git a/public/docs/js/latest/api/forms/ControlDirective-class.jade b/public/docs/js/latest/api/forms/ControlDirective-class.jade
index db7629a2ac..7051d39f86 100644
--- a/public/docs/js/latest/api/forms/ControlDirective-class.jade
+++ b/public/docs/js/latest/api/forms/ControlDirective-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives.js (line 114)
+ defined in angular2/src/forms/directives.js (line 125)
:markdown
Binds a control to a DOM element.
diff --git a/public/docs/js/latest/api/forms/ControlGroupDirective-class.jade b/public/docs/js/latest/api/forms/ControlGroupDirective-class.jade
index 7e730e6ba7..187803f8e0 100644
--- a/public/docs/js/latest/api/forms/ControlGroupDirective-class.jade
+++ b/public/docs/js/latest/api/forms/ControlGroupDirective-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives.js (line 210)
+ defined in angular2/src/forms/directives.js (line 221)
:markdown
Binds a control group to a DOM element.
diff --git a/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade b/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade
index 9f4703a198..0c0e8b6dde 100644
--- a/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade
+++ b/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives.js (line 31)
+ defined in angular2/src/forms/directives.js (line 35)
:markdown
The default accessor for writing a value and listening to changes that is used by a Control directive.
@@ -21,7 +21,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(setValueProperty:Function)
+ constructor()
:markdown
@@ -40,6 +40,17 @@ p.location-badge.
+ .l-sub-section
+ h3 value
+
+
+ :markdown
+
+
+
+
+
+
.l-sub-section
h3 writeValue
diff --git a/public/docs/js/latest/api/router/Router-class.jade b/public/docs/js/latest/api/router/Router-class.jade
new file mode 100644
index 0000000000..ce34c08519
--- /dev/null
+++ b/public/docs/js/latest/api/router/Router-class.jade
@@ -0,0 +1,253 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/router.js (line 18)
+
+:markdown
+ # 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`.
+ This may be useful for showing a spinner, for instance.
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(registry:RouteRegistry, pipeline:Pipeline, parent:Router = null, name = '/')
+
+ :markdown
+
+
+
+
+
+ .l-sub-section
+ h3 activateOutlets
+
+
+ pre.prettyprint
+ code.
+ activateOutlets(instruction:Instruction)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 childRouter
+
+
+ pre.prettyprint
+ code.
+ childRouter(outletName = 'default')
+
+ :markdown
+ Constructs a child router. You probably don't need to use this unless you're writing a reusable component.
+
+
+
+
+
+ .l-sub-section
+ h3 config
+
+
+ pre.prettyprint
+ code.
+ config(path:string, component, alias:string=null)
+
+ :markdown
+ Update the routing configuration and trigger a navigation.
+
+ # Usage
+
+ ```
+ router.config('/', SomeCmp);
+ ```
+
+
+
+
+
+ .l-sub-section
+ h3 generate
+
+
+ pre.prettyprint
+ code.
+ 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.
+
+
+
+
+
+ .l-sub-section
+ h3 getRoot
+
+
+ pre.prettyprint
+ code.
+ getRoot()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 lastNavigationAttempt
+
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 name
+
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 navigate
+
+
+ pre.prettyprint
+ code.
+ navigate(url:string)
+
+ :markdown
+ Navigate to a URL. Returns a promise that resolves to the canonical URL for the route.
+
+
+
+
+
+ .l-sub-section
+ h3 navigating
+
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 parent
+
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 previousUrl
+
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 recognize
+
+
+ pre.prettyprint
+ code.
+ recognize(url:string)
+
+ :markdown
+ Given a URL, returns an instruction representing the component graph
+
+
+
+
+
+ .l-sub-section
+ h3 registerOutlet
+
+
+ pre.prettyprint
+ code.
+ 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.
+
+
+
+
+
+ .l-sub-section
+ h3 renavigate
+
+
+ pre.prettyprint
+ code.
+ renavigate()
+
+ :markdown
+ Navigates to either the last URL successfully navigated to, or the last URL requested if the router has yet to successfully navigate.
+
+
+
+
+
+ .l-sub-section
+ h3 subscribe
+
+
+ pre.prettyprint
+ code.
+ subscribe(onNext)
+
+ :markdown
+ Subscribe to URL updates from the router
+
+
+
+
+
+ .l-sub-section
+ h3 traverseOutlets
+
+
+ pre.prettyprint
+ code.
+ 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
new file mode 100644
index 0000000000..a41458f7be
--- /dev/null
+++ b/public/docs/js/latest/api/router/RouterLink-class.jade
@@ -0,0 +1,84 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/router_link.js (line 36)
+
+:markdown
+ The RouterLink directive lets you link to specific parts of your app.
+
+
+ Consider the following route configuration:
+
+ ```
+ @RouteConfig({
+ path: '/user', component: UserCmp, alias: 'user'
+ });
+ class MyComp {}
+ ```
+
+ When linking to a route, you can write:
+
+ ```
+ link to user component
+ ```
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(ngEl:NgElement, router:Router)
+
+ :markdown
+
+
+
+
+
+ .l-sub-section
+ h3 params
+
+
+ pre.prettyprint
+ code.
+ params(changes)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 route
+
+
+ pre.prettyprint
+ code.
+ route(changes)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 updateHref
+
+
+ pre.prettyprint
+ code.
+ updateHref()
+
+ :markdown
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/_data.json b/public/docs/js/latest/api/router/_data.json
new file mode 100644
index 0000000000..2a71f9595c
--- /dev/null
+++ b/public/docs/js/latest/api/router/_data.json
@@ -0,0 +1,14 @@
+{
+ "index" : {
+ "title" : "Router",
+ "intro" : "Maps application URLs into application states, to support deep-linking and navigation."
+ },
+
+ "Router-class" : {
+ "title" : "Router Class"
+ },
+
+ "RouterLink-class" : {
+ "title" : "RouterLink Class"
+ }
+}
\ No newline at end of file
diff --git a/public/docs/js/latest/api/router/index.jade b/public/docs/js/latest/api/router/index.jade
new file mode 100644
index 0000000000..1abcf9e6cd
--- /dev/null
+++ b/public/docs/js/latest/api/router/index.jade
@@ -0,0 +1,8 @@
+ul
+ for page, slug in public.docs[current.path[1]][current.path[2]][current.path[3]][current.path[4]]._data
+ if slug != 'index'
+ url = "/docs/" + current.path[1] + "/" + current.path[2] + "/" + current.path[3] + "/" + current.path[4] + "/" + slug + ".html"
+
+ li.c8
+ != partial("../../../../../_includes/_hover-card", {name: page.title, url: url })
+
diff --git a/public/docs/js/latest/api/test/TestBed-class.jade b/public/docs/js/latest/api/test/TestBed-class.jade
index c82b009beb..451bc1e657 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 24)
+ defined in angular2/src/test_lib/test_bed.js (line 19)
:markdown
diff --git a/public/docs/js/latest/api/view/ComponentRef-class.jade b/public/docs/js/latest/api/view/ComponentRef-class.jade
index 980d2887e5..3c2b4a72dc 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 14)
+ defined in angular2/src/core/compiler/dynamic_component_loader.js (line 11)
:markdown
diff --git a/public/docs/js/latest/api/view/DynamicComponentLoader-class.jade b/public/docs/js/latest/api/view/DynamicComponentLoader-class.jade
index c08bbb7469..7d7e68e2eb 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 47)
+ defined in angular2/src/core/compiler/dynamic_component_loader.js (line 44)
:markdown
Service for dynamically loading a Component into an arbitrary position in the internal Angular
@@ -15,7 +15,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(compiler:Compiler, directiveMetadataReader:DirectiveMetadataReader, viewFactory:ViewFactory, viewHydrator:AppViewHydrator)
+ constructor(compiler:Compiler, viewManager: AppViewManager)
:markdown
@@ -29,7 +29,7 @@ p.location-badge.
pre.prettyprint
code.
- loadIntoExistingLocation(type:Type, location:ElementRef, injector:Injector = null)
+ loadIntoExistingLocation(typeOrBinding, location:ElementRef, injector:Injector = null)
:markdown
Loads a component into the location given by the provided ElementRef. The loaded component
@@ -45,7 +45,7 @@ p.location-badge.
pre.prettyprint
code.
- loadIntoNewLocation(type:Type, parentComponentLocation:ElementRef, elementOrSelector:any, injector:Injector = null)
+ loadIntoNewLocation(typeOrBinding, parentComponentLocation:ElementRef, elementOrSelector:any, injector:Injector = null)
:markdown
Loads a component in the element specified by elementOrSelector. The loaded component receives
@@ -61,7 +61,7 @@ p.location-badge.
pre.prettyprint
code.
- loadNextToExistingLocation(type:Type, location:ElementRef, injector:Injector = null)
+ loadNextToExistingLocation(typeOrBinding, location:ElementRef, injector:Injector = null)
:markdown
Loads a component next to the provided ElementRef. The loaded component receives
diff --git a/public/docs/js/latest/api/view/ElementRef-class.jade b/public/docs/js/latest/api/view/ElementRef-class.jade
index 033758c3b0..e7a86b75f8 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 27)
+ defined in angular2/src/core/compiler/element_injector.js (line 28)
:markdown
@@ -13,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(elementInjector, hostView, boundElementIndex, injector)
+ constructor(elementInjector, hostView, boundElementIndex, injector, viewManager, defaultProtoView)
:markdown
diff --git a/public/docs/js/latest/api/view/QueryList-class.jade b/public/docs/js/latest/api/view/QueryList-class.jade
index 94c7d2fb69..1554a2e0f0 100644
--- a/public/docs/js/latest/api/view/QueryList-class.jade
+++ b/public/docs/js/latest/api/view/QueryList-class.jade
@@ -23,7 +23,7 @@ p.location-badge.
```html
...
- {{o.text}}
+ {{o.text}}
```
@@ -35,7 +35,7 @@ p.location-badge.
partialy since `*for` could rearange the list of `` components which would not be reported to ``
component and thus the list of `` componets would be out of sync with respect to the list of `` elements.
- A prefferd solution is to inject a `QueryList` which is a live list of directives in the component`s light DOM.
+ A preferred solution is to inject a `QueryList` which is a live list of directives in the component`s light DOM.
```javascript
@Component({
@@ -44,7 +44,7 @@ p.location-badge.
@View({
template: `
- - {{pane.title}}
+ - {{pane.title}}
`
diff --git a/public/docs/js/latest/api/view/ViewContainerRef-class.jade b/public/docs/js/latest/api/view/ViewContainerRef-class.jade
new file mode 100644
index 0000000000..d498b6ebd5
--- /dev/null
+++ b/public/docs/js/latest/api/view/ViewContainerRef-class.jade
@@ -0,0 +1,139 @@
+
+p.location-badge.
+ exported from angular2/view
+ defined in angular2/src/core/compiler/view_container_ref.js (line 11)
+
+:markdown
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(viewManager: avmModule.AppViewManager, location: eiModule.ElementRef, defaultProtoView: viewModule.AppProtoView)
+
+ :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 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 get
+
+
+ pre.prettyprint
+ code.
+ get(index: number)
+
+ :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 length
+
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 remove
+
+
+ pre.prettyprint
+ code.
+ remove(atIndex:number=-1)
+
+ :markdown
+
+
+
+
+
diff --git a/public/docs/js/latest/api/view/_data.json b/public/docs/js/latest/api/view/_data.json
index d5e42c8db4..ca814dc8cc 100644
--- a/public/docs/js/latest/api/view/_data.json
+++ b/public/docs/js/latest/api/view/_data.json
@@ -24,8 +24,8 @@
"title" : "QueryList Class"
},
- "ViewContainer-class" : {
- "title" : "ViewContainer Class"
+ "ViewContainerRef-class" : {
+ "title" : "ViewContainerRef Class"
},
"BaseQueryList-class" : {