+ ```
+
+ In this case, the two pipes compose as if they were inlined: `someExpression | somePipe |
+ keyValDiff`.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 events
+
+
+ :markdown
+
+ Enumerates the set of emitted events.
+
+ ## Syntax
+
+ ```
+ @Component({
+ events: ['statusChange']
+ })
+ class TaskComponent {
+ statusChange: EventEmitter;
+
+ constructor() {
+ this.statusChange = new EventEmitter();
+ }
+
+ onComplete() {
+ this.statusChange.next('completed');
+ }
+ }
+ ```
+
+ Use `propertyName: eventName` when the event emitter property name is different from the name
+ of the emitted event:
+
+ ```
+ @Component({
+ events: ['status: statusChange']
+ })
+ class TaskComponent {
+ status: EventEmitter;
+
+ constructor() {
+ this.status = new EventEmitter();
+ }
+
+ onComplete() {
+ this.status.next('completed');
+ }
+ }
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 host
+
+
+ :markdown
+
+ Specifiy the events, actions, properties and attributes related to the host element.
+
+ ## Events
+
+ Specifies which DOM hostListeners a directive listens to via a set of `(event)` to `method`
+ key-value pairs:
+
+ - `event1`: the DOM event that the directive listens to.
+ - `statement`: the statement to execute when the event occurs.
+ If the evalutation of the statement returns `false`, then `preventDefault`is applied on the DOM
+ event.
+
+ To listen to global events, a target must be added to the event name.
+ The target can be `window`, `document` or `body`.
+
+ When writing a directive event binding, you can also refer to the following local variables:
+ - `$event`: Current event object which triggered the event.
+ - `$target`: The source of the event. This will be either a DOM element or an Angular
+ directive. (will be implemented in later release)
+
+ ## Syntax
+
+ ```
+ @Directive({
+ host: {
+ '(event1)': 'onMethod1(arguments)',
+ '(target:event2)': 'onMethod2(arguments)',
+ ...
+ }
+ }
+ ```
+
+ ## Basic Event Binding:
+
+ Suppose you want to write a directive that reacts to `change` events in the DOM and on
+ `resize` events in window.
+ You would define the event binding as follows:
+
+ ```
+ @Directive({
+ selector: 'input',
+ host: {
+ '(change)': 'onChange($event)',
+ '(window:resize)': 'onResize($event)'
+ }
+ })
+ class InputDirective {
+ onChange(event:Event) {
+ // invoked when the input element fires the 'change' event
+ }
+ onResize(event:Event) {
+ // invoked when the window fires the 'resize' event
+ }
+ }
+ ```
+
+ ## Properties
+
+ Specifies which DOM properties a directives updates.
+
+ ## Syntax
+
+ ```
+ @Directive({
+ selector: 'input',
+ host: {
+ '[prop]': 'expression'
+ }
+ })
+ class InputDirective {
+ value:string;
+ }
+ ```
+
+ In this example the prop property of the host element is updated with the expression value
+ every time it changes.
+
+ ## Attributes
+
+ Specifies static attributes that should be propagated to a host element. Attributes specified
+ in `hostAttributes` are propagated only if a given attribute is not present on a host element.
+
+ ## Syntax
+
+ ```
+ @Directive({
+ selector: '[my-button]',
+ host: {
+ 'role': 'button'
+ }
+ })
+ class MyButton {
+ }
+ ```
+
+ In this example using `my-button` directive (ex.: `
` ) will ensure that this element will get the "button" role.
+
+ ## Actions
+
+ Specifies which DOM methods a directive can invoke.
+
+ ## Syntax
+
+ ```
+ @Directive({
+ selector: 'input',
+ host: {
+ '@emitFocus': 'focus()'
+ }
+ })
+ class InputDirective {
+ constructor() {
+ this.emitFocus = new EventEmitter();
+ }
+
+ focus() {
+ this.emitFocus.next();
+ }
+ }
+ ```
+
+ In this example calling focus on InputDirective will result in calling focus on the input.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 lifecycle
+
+
+ :markdown
+
+ Specifies which lifecycle should be notified to the directive.
+
+ See
LifecycleEvent
for details.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 compileChildren
+
+
+ :markdown
+
+ If set to false the compiler does not compile the children of this directive.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 hostInjector
+
+
+ :markdown
+
+ Defines the set of injectable objects that are visible to a Directive and its light dom
+ children.
+
+ ## Simple Example
+
+ Here is an example of a class that can be injected:
+
+ ```
+ class Greeter {
+ greet(name:string) {
+ return 'Hello ' + name + '!';
+ }
+ }
+
+ @Directive({
+ selector: 'greet',
+ hostInjector: [
+ Greeter
+ ]
+ })
+ class HelloWorld {
+ greeter:Greeter;
+
+ constructor(greeter:Greeter) {
+ this.greeter = greeter;
+ }
+ }
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 exportAs
+
+
+ :markdown
+
+ Defines the name that can be used in the template to assign this directive to a variable.
+
+ ## Simple Example
+
+ ```
+ @Directive({
+ selector: 'child-dir',
+ exportAs: 'child'
+ })
+ class ChildDir {
+ }
+
+ @Component({
+ selector: 'main',
+ })
+ @View({
+ template: `
`,
+ directives: [ChildDir]
+ })
+ class MainComponent {
+ }
+
+ ```
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/DirectiveDecorator-interface.jade b/public/docs/js/latest/api/annotations/DirectiveDecorator-interface.jade
new file mode 100644
index 0000000000..f3b39b86c4
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/DirectiveDecorator-interface.jade
@@ -0,0 +1,11 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 11)
+
+:markdown
+ Interface for the
Directive
decorator function.
+
+ See
DirectiveFactory
.
+
+
diff --git a/public/docs/js/latest/api/annotations/DirectiveFactory-interface.jade b/public/docs/js/latest/api/annotations/DirectiveFactory-interface.jade
new file mode 100644
index 0000000000..d4d6d141a7
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/DirectiveFactory-interface.jade
@@ -0,0 +1,46 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 56)
+
+:markdown
+
Directive
factory for creating annotations, decorators or DSL.
+
+ ## Example as TypeScript Decorator
+
+ ```
+ import {Directive} from "angular2/angular2";
+
+ @Directive({...})
+ class MyDirective {
+ constructor() {
+ ...
+ }
+ }
+ ```
+
+ ## Example as ES5 DSL
+
+ ```
+ var MyDirective = ng
+ .Directive({...})
+ .Class({
+ constructor: function() {
+ ...
+ }
+ })
+ ```
+
+ ## Example as ES5 annotation
+
+ ```
+ var MyDirective = function() {
+ ...
+ };
+
+ MyDirective.annotations = [
+ new ng.Directive({...})
+ ]
+ ```
+
+
diff --git a/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade b/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade
new file mode 100644
index 0000000000..9f45ac1786
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade
@@ -0,0 +1,13 @@
+
+
angular2/annotations/LifecycleEvent
+
(enum)
+
+
Lifecycle events are guaranteed to be called in the following order:
+
+onChange
(optional if any bindings have changed),
+onInit
(optional after the first check only),
+onCheck
,
+onAllChangesDone
+
+
+
diff --git a/public/docs/js/latest/api/annotations/OnAllChangesDone-interface.jade b/public/docs/js/latest/api/annotations/OnAllChangesDone-interface.jade
new file mode 100644
index 0000000000..490c5fcdb2
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/OnAllChangesDone-interface.jade
@@ -0,0 +1,28 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/compiler/interfaces.ts (line 27)
+
+:markdown
+ Defines lifecycle method [onAllChangesDone ] called when the bindings of all its children have
+ been changed.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 onAllChangesDone
+
+
+ pre.prettyprint
+ code.
+ onAllChangesDone()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/OnChange-interface.jade b/public/docs/js/latest/api/annotations/OnChange-interface.jade
new file mode 100644
index 0000000000..4bba72c15c
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/OnChange-interface.jade
@@ -0,0 +1,28 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/compiler/interfaces.ts (line 7)
+
+:markdown
+ Defines lifecycle method [onChange] called after all of component's bound
+ properties are updated.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 onChange
+
+
+ pre.prettyprint
+ code.
+ onChange(changes: StringMap<string, any>)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/OnCheck-interface.jade b/public/docs/js/latest/api/annotations/OnCheck-interface.jade
new file mode 100644
index 0000000000..5559e30dec
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/OnCheck-interface.jade
@@ -0,0 +1,27 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/compiler/interfaces.ts (line 17)
+
+:markdown
+ Defines lifecycle method [onCheck] called when a directive is being checked.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 onCheck
+
+
+ pre.prettyprint
+ code.
+ onCheck()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/OnDestroy-interface.jade b/public/docs/js/latest/api/annotations/OnDestroy-interface.jade
new file mode 100644
index 0000000000..5199ae472f
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/OnDestroy-interface.jade
@@ -0,0 +1,27 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/compiler/interfaces.ts (line 12)
+
+:markdown
+ Defines lifecycle method [onDestroy] called when a directive is being destroyed.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/OnInit-interface.jade b/public/docs/js/latest/api/annotations/OnInit-interface.jade
new file mode 100644
index 0000000000..4c13218233
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/OnInit-interface.jade
@@ -0,0 +1,27 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/compiler/interfaces.ts (line 22)
+
+:markdown
+ Defines lifecycle method [onInit] called when a directive is being checked the first time.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 onInit
+
+
+ pre.prettyprint
+ code.
+ onInit()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/ParameterDecorator-interface.jade b/public/docs/js/latest/api/annotations/ParameterDecorator-interface.jade
new file mode 100644
index 0000000000..8d4f862c70
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/ParameterDecorator-interface.jade
@@ -0,0 +1,10 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/util/decorators.ts (line 63)
+
+:markdown
+ An interface implemented by all Angular parameter decorators, which allows them to be used as ES7
+ decorators.
+
+
diff --git a/public/docs/js/latest/api/annotations/Query-var.jade b/public/docs/js/latest/api/annotations/Query-var.jade
new file mode 100644
index 0000000000..a1c26f6336
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/Query-var.jade
@@ -0,0 +1,12 @@
+
+.l-main-section
+ h2 Query
variable
+ p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 370)
+
+ :markdown
+
Query
factory function.
+
+
+
diff --git a/public/docs/js/latest/api/annotations/QueryAnnotation-class.jade b/public/docs/js/latest/api/annotations/QueryAnnotation-class.jade
new file mode 100644
index 0000000000..6a8dbdf2dd
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/QueryAnnotation-class.jade
@@ -0,0 +1,109 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations_impl/di.ts (line 44)
+
+:markdown
+ Specifies that a
QueryList
should be injected.
+
+ See
QueryList
for usage and example.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_selector: Type | string, {descendants = false}?: {descendants?: boolean})
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 descendants
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isViewQuery
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 selector
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isVarBindingQuery
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 varBindings
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/QueryFactory-interface.jade b/public/docs/js/latest/api/annotations/QueryFactory-interface.jade
new file mode 100644
index 0000000000..879a6bcd12
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/QueryFactory-interface.jade
@@ -0,0 +1,52 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 292)
+
+:markdown
+
Query
factory for creating annotations, decorators or DSL.
+
+ ## Example as TypeScript Decorator
+
+ ```
+ import {Query, QueryList, Component, View} from "angular2/angular2";
+
+ @Component({...})
+ @View({...})
+ class MyComponent {
+ constructor(@Query(SomeType) queryList: QueryList) {
+ ...
+ }
+ }
+ ```
+
+ ## Example as ES5 DSL
+
+ ```
+ var MyComponent = ng
+ .Component({...})
+ .View({...})
+ .Class({
+ constructor: [new ng.Query(SomeType), function(queryList) {
+ ...
+ }]
+ })
+ ```
+
+ ## Example as ES5 annotation
+
+ ```
+ var MyComponent = function(queryList) {
+ ...
+ };
+
+ MyComponent.annotations = [
+ new ng.Component({...})
+ new ng.View({...})
+ ]
+ MyComponent.parameters = [
+ [new ng.Query(SomeType)]
+ ]
+ ```
+
+
diff --git a/public/docs/js/latest/api/annotations/TypeDecorator-interface.jade b/public/docs/js/latest/api/annotations/TypeDecorator-interface.jade
new file mode 100644
index 0000000000..fd9584a2f9
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/TypeDecorator-interface.jade
@@ -0,0 +1,63 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/util/decorators.ts (line 22)
+
+:markdown
+ An interface implemented by all Angular type decorators, which allows them to be used as ES7
+ decorators as well as
+ Angular DSL syntax.
+
+ DSL syntax:
+
+ ```
+ var MyClass = ng
+ .Component({...})
+ .View({...})
+ .Class({...});
+ ```
+
+ ES7 syntax:
+
+ ```
+ @ng.Component({...})
+ @ng.View({...})
+ class MyClass {...}
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 annotations
+
+
+ :markdown
+
+ Storage for the accumulated annotations so far used by the DSL syntax.
+
+ Used by
Class
to annotate the generated class.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Class
+
+
+ pre.prettyprint
+ code.
+ Class(obj: ClassDefinition)
+
+ :markdown
+
+ Generate a class from the definition and annotate it with
TypeDecorator
.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/View-var.jade b/public/docs/js/latest/api/annotations/View-var.jade
new file mode 100644
index 0000000000..a53361e03a
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/View-var.jade
@@ -0,0 +1,12 @@
+
+.l-main-section
+ h2 View
variable
+ p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 359)
+
+ :markdown
+
View
factory function.
+
+
+
diff --git a/public/docs/js/latest/api/annotations/ViewAnnotation-class.jade b/public/docs/js/latest/api/annotations/ViewAnnotation-class.jade
new file mode 100644
index 0000000000..cb46cda534
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/ViewAnnotation-class.jade
@@ -0,0 +1,169 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations_impl/view.ts (line 1)
+
+:markdown
+ Declares the available HTML templates for an application.
+
+ Each angular component requires a single `@Component` and at least one `@View` annotation. The
+ `@View` annotation specifies the HTML template to use, and lists the directives that are active
+ within the template.
+
+ When a component is instantiated, the template is loaded into the component's shadow root, and
+ the expressions and statements in the template are evaluated against the component.
+
+ For details on the `@Component` annotation, see
Component
.
+
+ ## Example
+
+ ```
+ @Component({
+ selector: 'greet'
+ })
+ @View({
+ template: 'Hello {{name}}!',
+ directives: [GreetUser, Bold]
+ })
+ class Greet {
+ name: string;
+
+ constructor() {
+ this.name = 'World';
+ }
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({templateUrl, template, directives, renderer, styles, styleUrls}?: {
+ templateUrl?: string,
+ template?: string,
+ directives?: List<Type | any | List<any>>,
+ renderer?: string,
+ styles?: List<string>,
+ styleUrls?: List<string>,
+ })
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 templateUrl
+
+
+ :markdown
+
+ Specifies an inline template for an angular component.
+
+ NOTE: either `templateUrl` or `template` should be used, but not both.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 template
+
+
+ :markdown
+
+ Specifies a template URL for an angular component.
+
+ NOTE: either `templateUrl` or `template` should be used, but not both.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 styleUrls
+
+
+ :markdown
+
+ Specifies stylesheet URLs for an angular component.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 styles
+
+
+ :markdown
+
+ Specifies an inline stylesheet for an angular component.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 directives
+
+
+ :markdown
+
+ Specifies a list of directives that can be used within a template.
+
+ Directives must be listed explicitly to provide proper component encapsulation.
+
+
+
+ ```javascript
+ @Component({
+ selector: 'my-component'
+ })
+ @View({
+ directives: [For]
+ template: '
+
'
+ })
+ class MyComponent {
+ }
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 renderer
+
+
+ :markdown
+
+ Specify a custom renderer for this View.
+ If this is set, neither `template`, `templateUrl`, `styles`, `styleUrls` nor `directives` are
+ used.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/ViewDecorator-interface.jade b/public/docs/js/latest/api/annotations/ViewDecorator-interface.jade
new file mode 100644
index 0000000000..4b7287702d
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/ViewDecorator-interface.jade
@@ -0,0 +1,37 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 37)
+
+:markdown
+ Interface for the
View
decorator function.
+
+ See
ViewFactory
.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 View
+
+
+ pre.prettyprint
+ code.
+ View(obj: {
+ templateUrl?: string,
+ template?: string,
+ directives?: List<Type | any | List<any>>,
+ renderer?: string,
+ styles?: List<string>,
+ styleUrls?: List<string>,
+ })
+
+ :markdown
+
+ Chain
View
annotation.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/ViewFactory-interface.jade b/public/docs/js/latest/api/annotations/ViewFactory-interface.jade
new file mode 100644
index 0000000000..12c1ddd346
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/ViewFactory-interface.jade
@@ -0,0 +1,49 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 179)
+
+:markdown
+
ViewAnnotation
factory for creating annotations, decorators or DSL.
+
+ ## Example as TypeScript Decorator
+
+ ```
+ import {Component, View} from "angular2/angular2";
+
+ @Component({...})
+ @View({...})
+ class MyComponent {
+ constructor() {
+ ...
+ }
+ }
+ ```
+
+ ## Example as ES5 DSL
+
+ ```
+ var MyComponent = ng
+ .Component({...})
+ .View({...})
+ .Class({
+ constructor: function() {
+ ...
+ }
+ })
+ ```
+
+ ## Example as ES5 annotation
+
+ ```
+ var MyComponent = function() {
+ ...
+ };
+
+ MyComponent.annotations = [
+ new ng.Component({...})
+ new ng.View({...})
+ ]
+ ```
+
+
diff --git a/public/docs/js/latest/api/annotations/ViewQuery-var.jade b/public/docs/js/latest/api/annotations/ViewQuery-var.jade
new file mode 100644
index 0000000000..2003d3c197
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/ViewQuery-var.jade
@@ -0,0 +1,12 @@
+
+.l-main-section
+ h2 ViewQuery
variable
+ p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 376)
+
+ :markdown
+
ViewQuery
factory function.
+
+
+
diff --git a/public/docs/js/latest/api/annotations/_data.json b/public/docs/js/latest/api/annotations/_data.json
new file mode 100644
index 0000000000..900312ed63
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/_data.json
@@ -0,0 +1,122 @@
+{
+ "index" : {
+ "title" : "Annotations",
+ "intro" : "Annotations provide the additional information that Angular requires in order to run yourapplication. This modulecontains
Component
,
Directive
, and
View
annotations, as well asthe
Ancestor
annotation that is used by Angular to resolve dependencies."
+ },
+
+ "ComponentAnnotation-class" : {
+ "title" : "ComponentAnnotation Class"
+ },
+
+ "DirectiveAnnotation-class" : {
+ "title" : "DirectiveAnnotation Class"
+ },
+
+ "LifecycleEvent-enum" : {
+ "title" : "LifecycleEvent Enum"
+ },
+
+ "ViewAnnotation-class" : {
+ "title" : "ViewAnnotation Class"
+ },
+
+ "QueryAnnotation-class" : {
+ "title" : "QueryAnnotation Class"
+ },
+
+ "AttributeAnnotation-class" : {
+ "title" : "AttributeAnnotation Class"
+ },
+
+ "OnAllChangesDone-interface" : {
+ "title" : "OnAllChangesDone Interface"
+ },
+
+ "OnChange-interface" : {
+ "title" : "OnChange Interface"
+ },
+
+ "OnDestroy-interface" : {
+ "title" : "OnDestroy Interface"
+ },
+
+ "OnInit-interface" : {
+ "title" : "OnInit Interface"
+ },
+
+ "OnCheck-interface" : {
+ "title" : "OnCheck Interface"
+ },
+
+ "Class-function" : {
+ "title" : "Class Function"
+ },
+
+ "ClassDefinition-interface" : {
+ "title" : "ClassDefinition Interface"
+ },
+
+ "ParameterDecorator-interface" : {
+ "title" : "ParameterDecorator Interface"
+ },
+
+ "TypeDecorator-interface" : {
+ "title" : "TypeDecorator Interface"
+ },
+
+ "Attribute-var" : {
+ "title" : "Attribute Var"
+ },
+
+ "AttributeFactory-interface" : {
+ "title" : "AttributeFactory Interface"
+ },
+
+ "Component-var" : {
+ "title" : "Component Var"
+ },
+
+ "ComponentDecorator-interface" : {
+ "title" : "ComponentDecorator Interface"
+ },
+
+ "ComponentFactory-interface" : {
+ "title" : "ComponentFactory Interface"
+ },
+
+ "Directive-var" : {
+ "title" : "Directive Var"
+ },
+
+ "DirectiveDecorator-interface" : {
+ "title" : "DirectiveDecorator Interface"
+ },
+
+ "DirectiveFactory-interface" : {
+ "title" : "DirectiveFactory Interface"
+ },
+
+ "View-var" : {
+ "title" : "View Var"
+ },
+
+ "ViewDecorator-interface" : {
+ "title" : "ViewDecorator Interface"
+ },
+
+ "ViewFactory-interface" : {
+ "title" : "ViewFactory Interface"
+ },
+
+ "Query-var" : {
+ "title" : "Query Var"
+ },
+
+ "QueryFactory-interface" : {
+ "title" : "QueryFactory Interface"
+ },
+
+ "ViewQuery-var" : {
+ "title" : "ViewQuery Var"
+ }
+}
\ No newline at end of file
diff --git a/public/docs/js/latest/api/annotations/index.jade b/public/docs/js/latest/api/annotations/index.jade
new file mode 100644
index 0000000000..fd9c824767
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/index.jade
@@ -0,0 +1,11 @@
+p.location-badge.
+ defined in
angular2/annotations.ts (line 1)
+
+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/change_detection/AST-class.jade b/public/docs/js/latest/api/change_detection/AST-class.jade
new file mode 100644
index 0000000000..63209ce81a
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/AST-class.jade
@@ -0,0 +1,90 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/parser/ast.ts (line 3)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 eval
+
+
+ pre.prettyprint
+ code.
+ eval(context: any, locals: Locals)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isAssignable
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 assign
+
+
+ pre.prettyprint
+ code.
+ assign(context: any, locals: Locals, value: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visit
+
+
+ pre.prettyprint
+ code.
+ visit(visitor: AstVisitor)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/ASTWithSource-class.jade b/public/docs/js/latest/api/change_detection/ASTWithSource-class.jade
new file mode 100644
index 0000000000..41928103e3
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/ASTWithSource-class.jade
@@ -0,0 +1,144 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/parser/ast.ts (line 310)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(ast: AST, source: string, location: string)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 ast
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 source
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 location
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 eval
+
+
+ pre.prettyprint
+ code.
+ eval(context: any, locals: Locals)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isAssignable
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 assign
+
+
+ pre.prettyprint
+ code.
+ assign(context: any, locals: Locals, value: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visit
+
+
+ pre.prettyprint
+ code.
+ visit(visitor: AstVisitor)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/AccessMember-class.jade b/public/docs/js/latest/api/change_detection/AccessMember-class.jade
new file mode 100644
index 0000000000..53387c46f7
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/AccessMember-class.jade
@@ -0,0 +1,140 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/parser/ast.ts (line 75)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(receiver: AST, name: string, getter: Function, setter: Function)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 receiver
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 name
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getter
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 setter
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 eval
+
+
+ pre.prettyprint
+ code.
+ eval(context: any, locals: Locals)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isAssignable
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 assign
+
+
+ pre.prettyprint
+ code.
+ assign(context: any, locals: Locals, value: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visit
+
+
+ pre.prettyprint
+ code.
+ visit(visitor: AstVisitor)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/AstTransformer-class.jade b/public/docs/js/latest/api/change_detection/AstTransformer-class.jade
new file mode 100644
index 0000000000..57447c6be5
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/AstTransformer-class.jade
@@ -0,0 +1,332 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/parser/ast.ts (line 352)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 visitImplicitReceiver
+
+
+ pre.prettyprint
+ code.
+ visitImplicitReceiver(ast: ImplicitReceiver)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitInterpolation
+
+
+ pre.prettyprint
+ code.
+ visitInterpolation(ast: Interpolation)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitLiteralPrimitive
+
+
+ pre.prettyprint
+ code.
+ visitLiteralPrimitive(ast: LiteralPrimitive)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitAccessMember
+
+
+ pre.prettyprint
+ code.
+ visitAccessMember(ast: AccessMember)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitSafeAccessMember
+
+
+ pre.prettyprint
+ code.
+ visitSafeAccessMember(ast: SafeAccessMember)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitMethodCall
+
+
+ pre.prettyprint
+ code.
+ visitMethodCall(ast: MethodCall)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitSafeMethodCall
+
+
+ pre.prettyprint
+ code.
+ visitSafeMethodCall(ast: SafeMethodCall)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitFunctionCall
+
+
+ pre.prettyprint
+ code.
+ visitFunctionCall(ast: FunctionCall)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitLiteralArray
+
+
+ pre.prettyprint
+ code.
+ visitLiteralArray(ast: LiteralArray)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitLiteralMap
+
+
+ pre.prettyprint
+ code.
+ visitLiteralMap(ast: LiteralMap)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitBinary
+
+
+ pre.prettyprint
+ code.
+ visitBinary(ast: Binary)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitPrefixNot
+
+
+ pre.prettyprint
+ code.
+ visitPrefixNot(ast: PrefixNot)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitConditional
+
+
+ pre.prettyprint
+ code.
+ visitConditional(ast: Conditional)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitPipe
+
+
+ pre.prettyprint
+ code.
+ visitPipe(ast: BindingPipe)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitKeyedAccess
+
+
+ pre.prettyprint
+ code.
+ visitKeyedAccess(ast: KeyedAccess)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitAll
+
+
+ pre.prettyprint
+ code.
+ visitAll(asts: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitChain
+
+
+ pre.prettyprint
+ code.
+ visitChain(ast: Chain)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitAssignment
+
+
+ pre.prettyprint
+ code.
+ visitAssignment(ast: Assignment)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visitIf
+
+
+ pre.prettyprint
+ code.
+ visitIf(ast: If)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/BasePipe-class.jade b/public/docs/js/latest/api/change_detection/BasePipe-class.jade
new file mode 100644
index 0000000000..026b140b84
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/BasePipe-class.jade
@@ -0,0 +1,71 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/pipes/pipe.ts (line 55)
+
+:markdown
+ Provides default implementation of supports and onDestroy.
+
+ #Example
+
+ ```
+ class DoublePipe extends BasePipe {*
+ transform(value) {
+ return `${value}${value}`;
+ }
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(obj: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(value: any, args: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/BindingRecord-class.jade b/public/docs/js/latest/api/change_detection/BindingRecord-class.jade
new file mode 100644
index 0000000000..4214a47d48
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/BindingRecord-class.jade
@@ -0,0 +1,294 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/binding_record.ts (line 12)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(mode: string, implicitReceiver: any, ast: AST, elementIndex: number, propertyName: string, propertyUnit: string, setter: SetterFn, lifecycleEvent: string, directiveRecord: DirectiveRecord)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 mode
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 implicitReceiver
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ast
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 elementIndex
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 propertyName
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 propertyUnit
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 setter
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 lifecycleEvent
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 directiveRecord
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 callOnChange
+
+
+ pre.prettyprint
+ code.
+ callOnChange()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isOnPushChangeDetection
+
+
+ pre.prettyprint
+ code.
+ isOnPushChangeDetection()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isDirective
+
+
+ pre.prettyprint
+ code.
+ isDirective()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isDirectiveLifecycle
+
+
+ pre.prettyprint
+ code.
+ isDirectiveLifecycle()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isElementProperty
+
+
+ pre.prettyprint
+ code.
+ isElementProperty()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isElementAttribute
+
+
+ pre.prettyprint
+ code.
+ isElementAttribute()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isElementClass
+
+
+ pre.prettyprint
+ code.
+ isElementClass()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isElementStyle
+
+
+ pre.prettyprint
+ code.
+ isElementStyle()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isTextNode
+
+
+ pre.prettyprint
+ code.
+ isTextNode()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/CHECKED-var.jade b/public/docs/js/latest/api/change_detection/CHECKED-var.jade
new file mode 100644
index 0000000000..4e84dd2051
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/CHECKED-var.jade
@@ -0,0 +1,13 @@
+
+.l-main-section
+ h2 CHECKED
variable
+ p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/constants.ts (line 13)
+
+ :markdown
+ CHECKED means that the change detector should be skipped until its mode changes to
+ CHECK_ONCE or CHECK_ALWAYS.
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/CHECK_ALWAYS-var.jade b/public/docs/js/latest/api/change_detection/CHECK_ALWAYS-var.jade
new file mode 100644
index 0000000000..54d272f734
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/CHECK_ALWAYS-var.jade
@@ -0,0 +1,13 @@
+
+.l-main-section
+ h2 CHECK_ALWAYS
variable
+ p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/constants.ts (line 19)
+
+ :markdown
+ CHECK_ALWAYS means that after calling detectChanges the mode of the change detector
+ will remain CHECK_ALWAYS.
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/CHECK_ONCE-var.jade b/public/docs/js/latest/api/change_detection/CHECK_ONCE-var.jade
new file mode 100644
index 0000000000..2b74953a36
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/CHECK_ONCE-var.jade
@@ -0,0 +1,13 @@
+
+.l-main-section
+ h2 CHECK_ONCE
variable
+ p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/constants.ts (line 7)
+
+ :markdown
+ CHECK_ONCE means that after calling detectChanges the mode of the change detector
+ will become CHECKED.
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade b/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade
new file mode 100644
index 0000000000..9005d2924b
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade
@@ -0,0 +1,49 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/interfaces.ts (line 5)
+
+:markdown
+ Interface used by Angular to control the change detection strategy for an application.
+
+ Angular implements the following change detection strategies by default:
+
+ -
DynamicChangeDetection
: slower, but does not require `eval()`.
+ -
JitChangeDetection
: faster, but requires `eval()`.
+
+ In JavaScript, you should always use `JitChangeDetection`, unless you are in an environment that
+ has
+ [CSP](https://developer.mozilla.org/en-US/docs/Web/Security/CSP), such as a Chrome Extension.
+
+ In Dart, use `DynamicChangeDetection` during development. The Angular transformer generates an
+ analog to the
+ `JitChangeDetection` strategy at compile time.
+
+
+ See:
DynamicChangeDetection
,
JitChangeDetection
,
+
PreGeneratedChangeDetection
+
+ # Example
+ ```javascript
+ bootstrap(MyApp, [bind(ChangeDetection).toClass(DynamicChangeDetection)]);
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 createProtoChangeDetector
+
+
+ pre.prettyprint
+ code.
+ createProtoChangeDetector(definition: ChangeDetectorDefinition)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/ChangeDetectionError-class.jade b/public/docs/js/latest/api/change_detection/ChangeDetectionError-class.jade
new file mode 100644
index 0000000000..fed81f3c73
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/ChangeDetectionError-class.jade
@@ -0,0 +1,37 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/exceptions.ts (line 9)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(proto: ProtoRecord, originalException: any, originalStack: any)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 location
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/ChangeDetector-interface.jade b/public/docs/js/latest/api/change_detection/ChangeDetector-interface.jade
new file mode 100644
index 0000000000..9b929256dd
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/ChangeDetector-interface.jade
@@ -0,0 +1,205 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/interfaces.ts (line 42)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 parent
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mode
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 addChild
+
+
+ pre.prettyprint
+ code.
+ addChild(cd: ChangeDetector)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 addShadowDomChild
+
+
+ pre.prettyprint
+ code.
+ addShadowDomChild(cd: ChangeDetector)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 removeChild
+
+
+ pre.prettyprint
+ code.
+ removeChild(cd: ChangeDetector)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 removeShadowDomChild
+
+
+ pre.prettyprint
+ code.
+ removeShadowDomChild(cd: ChangeDetector)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 remove
+
+
+ pre.prettyprint
+ code.
+ remove()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 hydrate
+
+
+ pre.prettyprint
+ code.
+ hydrate(context: any, locals: Locals, directives: any, pipes: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dehydrate
+
+
+ pre.prettyprint
+ code.
+ dehydrate()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 markPathToRootAsCheckOnce
+
+
+ pre.prettyprint
+ code.
+ markPathToRootAsCheckOnce()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 detectChanges
+
+
+ pre.prettyprint
+ code.
+ detectChanges()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 checkNoChanges
+
+
+ pre.prettyprint
+ code.
+ checkNoChanges()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/ChangeDetectorDefinition-class.jade b/public/docs/js/latest/api/change_detection/ChangeDetectorDefinition-class.jade
new file mode 100644
index 0000000000..6b5e3d80ee
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/ChangeDetectorDefinition-class.jade
@@ -0,0 +1,89 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/interfaces.ts (line 61)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(id: string, strategy: string, variableNames: List<string>, bindingRecords: List<BindingRecord>, directiveRecords: List<DirectiveRecord>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 id
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 strategy
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 variableNames
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 bindingRecords
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 directiveRecords
+
+
+ :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
new file mode 100644
index 0000000000..0a6f4bfe7f
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/ChangeDetectorRef-class.jade
@@ -0,0 +1,89 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/change_detector_ref.ts (line 2)
+
+:markdown
+ Controls change detection.
+
+
ChangeDetectorRef
allows requesting checks for detectors that rely on observables. It
+ also allows detaching and
+ attaching change detector subtrees.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_cd: ChangeDetector)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 requestCheck
+
+
+ pre.prettyprint
+ code.
+ requestCheck()
+
+ :markdown
+
+ Request to check all ON_PUSH ancestors.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 detach
+
+
+ pre.prettyprint
+ code.
+ detach()
+
+ :markdown
+
+ Detaches the change detector from the change detector tree.
+
+ The detached change detector will not be checked until it is reattached.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 reattach
+
+
+ pre.prettyprint
+ code.
+ 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
+ next change detection run.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/ChangeDispatcher-interface.jade b/public/docs/js/latest/api/change_detection/ChangeDispatcher-interface.jade
new file mode 100644
index 0000000000..e7733a9991
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/ChangeDispatcher-interface.jade
@@ -0,0 +1,43 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/interfaces.ts (line 37)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 notifyOnBinding
+
+
+ pre.prettyprint
+ code.
+ notifyOnBinding(bindingRecord: BindingRecord, value: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 notifyOnAllChangesDone
+
+
+ pre.prettyprint
+ code.
+ notifyOnAllChangesDone()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/DEFAULT-var.jade b/public/docs/js/latest/api/change_detection/DEFAULT-var.jade
new file mode 100644
index 0000000000..41858800e5
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/DEFAULT-var.jade
@@ -0,0 +1,12 @@
+
+.l-main-section
+ h2 DEFAULT
variable
+ p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/constants.ts (line 35)
+
+ :markdown
+ DEFAULT means that the change detector's mode will be set to CHECK_ALWAYS during hydration.
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/DETACHED-var.jade b/public/docs/js/latest/api/change_detection/DETACHED-var.jade
new file mode 100644
index 0000000000..f57aa6844b
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/DETACHED-var.jade
@@ -0,0 +1,13 @@
+
+.l-main-section
+ h2 DETACHED
variable
+ p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/constants.ts (line 25)
+
+ :markdown
+ DETACHED means that the change detector sub tree is not a part of the main tree and
+ should be skipped.
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/DehydratedException-class.jade b/public/docs/js/latest/api/change_detection/DehydratedException-class.jade
new file mode 100644
index 0000000000..d908cef366
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/DehydratedException-class.jade
@@ -0,0 +1,24 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/exceptions.ts (line 19)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/DirectiveIndex-class.jade b/public/docs/js/latest/api/change_detection/DirectiveIndex-class.jade
new file mode 100644
index 0000000000..3a928f3ff1
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/DirectiveIndex-class.jade
@@ -0,0 +1,63 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/directive_record.ts (line 2)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(elementIndex: number, directiveIndex: number)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 elementIndex
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 directiveIndex
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 name
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/DirectiveRecord-class.jade b/public/docs/js/latest/api/change_detection/DirectiveRecord-class.jade
new file mode 100644
index 0000000000..2b9815f22e
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/DirectiveRecord-class.jade
@@ -0,0 +1,127 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/directive_record.ts (line 8)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({directiveIndex, callOnAllChangesDone, callOnChange, callOnCheck, callOnInit,
+ changeDetection}?: {
+ directiveIndex?: DirectiveIndex,
+ callOnAllChangesDone?: boolean,
+ callOnChange?: boolean,
+ callOnCheck?: boolean,
+ callOnInit?: boolean,
+ changeDetection?: string
+ })
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 directiveIndex
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 callOnAllChangesDone
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 callOnChange
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 callOnCheck
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 callOnInit
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 changeDetection
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isOnPushChangeDetection
+
+
+ pre.prettyprint
+ code.
+ isOnPushChangeDetection()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade b/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade
new file mode 100644
index 0000000000..67d7f0164a
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade
@@ -0,0 +1,29 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/change_detection.ts (line 143)
+
+:markdown
+ Implements change detection that does not require `eval()`.
+
+ This is slower than
JitChangeDetection
.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 createProtoChangeDetector
+
+
+ pre.prettyprint
+ code.
+ createProtoChangeDetector(definition: ChangeDetectorDefinition)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/DynamicChangeDetector-class.jade b/public/docs/js/latest/api/change_detection/DynamicChangeDetector-class.jade
new file mode 100644
index 0000000000..a2227ba72d
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/DynamicChangeDetector-class.jade
@@ -0,0 +1,265 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/dynamic_change_detector.ts (line 11)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(id: string, changeControlStrategy: string, dispatcher: any, protos: List<ProtoRecord>, directiveRecords: List<any>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 locals
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 values
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 changes
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 localPipes
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 prevContexts
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 directives
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 alreadyChecked
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 pipes
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 changeControlStrategy
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dispatcher
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 protos
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 directiveRecords
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 hydrate
+
+
+ pre.prettyprint
+ code.
+ hydrate(context: any, locals: Locals, directives: any, pipes: Pipes)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dehydrate
+
+
+ pre.prettyprint
+ code.
+ dehydrate()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 hydrated
+
+
+ pre.prettyprint
+ code.
+ hydrated()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 detectChangesInRecords
+
+
+ pre.prettyprint
+ code.
+ detectChangesInRecords(throwOnChange: boolean)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 callOnAllChangesDone
+
+
+ pre.prettyprint
+ code.
+ callOnAllChangesDone()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/DynamicProtoChangeDetector-class.jade b/public/docs/js/latest/api/change_detection/DynamicProtoChangeDetector-class.jade
new file mode 100644
index 0000000000..a20ffcd835
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/DynamicProtoChangeDetector-class.jade
@@ -0,0 +1,54 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/proto_change_detector.ts (line 36)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(definition: ChangeDetectorDefinition)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 definition
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 instantiate
+
+
+ pre.prettyprint
+ code.
+ instantiate(dispatcher: any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/ExpressionChangedAfterItHasBeenChecked-class.jade b/public/docs/js/latest/api/change_detection/ExpressionChangedAfterItHasBeenChecked-class.jade
new file mode 100644
index 0000000000..426a291b65
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/ExpressionChangedAfterItHasBeenChecked-class.jade
@@ -0,0 +1,24 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/exceptions.ts (line 2)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(proto: ProtoRecord, change: any)
+
+ :markdown
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/ImplicitReceiver-class.jade b/public/docs/js/latest/api/change_detection/ImplicitReceiver-class.jade
new file mode 100644
index 0000000000..d2f2c5af3a
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/ImplicitReceiver-class.jade
@@ -0,0 +1,43 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/parser/ast.ts (line 23)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 eval
+
+
+ pre.prettyprint
+ code.
+ eval(context: any, locals: Locals)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visit
+
+
+ pre.prettyprint
+ code.
+ visit(visitor: AstVisitor)
+
+ :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
new file mode 100644
index 0000000000..9b05b2e812
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/JitChangeDetection-class.jade
@@ -0,0 +1,30 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/change_detection.ts (line 156)
+
+:markdown
+ Implements faster change detection by generating source code.
+
+ This requires `eval()`. For change detection that does not require `eval()`, see
+
DynamicChangeDetection
and
PreGeneratedChangeDetection
.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 createProtoChangeDetector
+
+
+ pre.prettyprint
+ code.
+ createProtoChangeDetector(definition: ChangeDetectorDefinition)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/Lexer-class.jade b/public/docs/js/latest/api/change_detection/Lexer-class.jade
new file mode 100644
index 0000000000..246ac55d73
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/Lexer-class.jade
@@ -0,0 +1,26 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/parser/lexer.ts (line 18)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 tokenize
+
+
+ pre.prettyprint
+ code.
+ tokenize(text: string)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/LiteralArray-class.jade b/public/docs/js/latest/api/change_detection/LiteralArray-class.jade
new file mode 100644
index 0000000000..4b65bfe249
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/LiteralArray-class.jade
@@ -0,0 +1,71 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/parser/ast.ts (line 156)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(expressions: List<any>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 expressions
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 eval
+
+
+ pre.prettyprint
+ code.
+ eval(context: any, locals: Locals)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visit
+
+
+ pre.prettyprint
+ code.
+ visit(visitor: AstVisitor)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/Locals-class.jade b/public/docs/js/latest/api/change_detection/Locals-class.jade
new file mode 100644
index 0000000000..da7f222383
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/Locals-class.jade
@@ -0,0 +1,118 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/parser/locals.ts (line 2)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(parent: Locals, current: Map<any, any>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 parent
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 current
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 contains
+
+
+ pre.prettyprint
+ code.
+ contains(name: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 get
+
+
+ pre.prettyprint
+ code.
+ get(name: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 set
+
+
+ pre.prettyprint
+ code.
+ set(name: string, value: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 clearValues
+
+
+ pre.prettyprint
+ code.
+ clearValues()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/NullPipe-class.jade b/public/docs/js/latest/api/change_detection/NullPipe-class.jade
new file mode 100644
index 0000000000..fc029c7d8c
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/NullPipe-class.jade
@@ -0,0 +1,56 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/pipes/null_pipe.ts (line 10)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 called
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(obj: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(value: any, args?: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/NullPipeFactory-class.jade b/public/docs/js/latest/api/change_detection/NullPipeFactory-class.jade
new file mode 100644
index 0000000000..c6fe13012e
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/NullPipeFactory-class.jade
@@ -0,0 +1,43 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/pipes/null_pipe.ts (line 3)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(obj: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 create
+
+
+ pre.prettyprint
+ code.
+ create(cdRef: ChangeDetectorRef)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/ON_PUSH-var.jade b/public/docs/js/latest/api/change_detection/ON_PUSH-var.jade
new file mode 100644
index 0000000000..fd9a6a966d
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/ON_PUSH-var.jade
@@ -0,0 +1,12 @@
+
+.l-main-section
+ h2 ON_PUSH
variable
+ p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/constants.ts (line 30)
+
+ :markdown
+ ON_PUSH means that the change detector's mode will be set to CHECK_ONCE during hydration.
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/Parser-class.jade b/public/docs/js/latest/api/change_detection/Parser-class.jade
new file mode 100644
index 0000000000..875531a5eb
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/Parser-class.jade
@@ -0,0 +1,126 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/parser/parser.ts (line 49)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_lexer: Lexer, providedReflector?: Reflector)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 parseAction
+
+
+ pre.prettyprint
+ code.
+ parseAction(input: string, location: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 parseBinding
+
+
+ pre.prettyprint
+ code.
+ parseBinding(input: string, location: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 parseSimpleBinding
+
+
+ pre.prettyprint
+ code.
+ parseSimpleBinding(input: string, location: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 parseTemplateBindings
+
+
+ pre.prettyprint
+ code.
+ parseTemplateBindings(input: string, location: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 parseInterpolation
+
+
+ pre.prettyprint
+ code.
+ parseInterpolation(input: string, location: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 wrapLiteralPrimitive
+
+
+ pre.prettyprint
+ code.
+ wrapLiteralPrimitive(input: string, location: any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/Pipe-interface.jade b/public/docs/js/latest/api/change_detection/Pipe-interface.jade
new file mode 100644
index 0000000000..7d1e72ffa1
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/Pipe-interface.jade
@@ -0,0 +1,79 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/pipes/pipe.ts (line 28)
+
+:markdown
+ An interface for extending the list of pipes known to Angular.
+
+ If you are writing a custom
Pipe
, you must extend this interface.
+
+ #Example
+
+ ```
+ class DoublePipe implements Pipe {
+ supports(obj) {
+ return true;
+ }
+
+ onDestroy() {}
+
+ transform(value, args = []) {
+ return `${value}${value}`;
+ }
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(obj: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(value: any, args: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/PipeFactory-interface.jade b/public/docs/js/latest/api/change_detection/PipeFactory-interface.jade
new file mode 100644
index 0000000000..585bed043e
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/PipeFactory-interface.jade
@@ -0,0 +1,43 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/pipes/pipe.ts (line 75)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(obs: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 create
+
+
+ pre.prettyprint
+ code.
+ create(cdRef: ChangeDetectorRef)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/Pipes-class.jade b/public/docs/js/latest/api/change_detection/Pipes-class.jade
new file mode 100644
index 0000000000..e641adbe99
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/Pipes-class.jade
@@ -0,0 +1,69 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/pipes/pipes.ts (line 6)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(config: StringMap<string, PipeFactory[]>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 config
+
+
+ :markdown
+
+ Map of
Pipe
names to
PipeFactory
lists used to configure the
+
Pipes
registry.
+
+ #Example
+
+ ```
+ var pipesConfig = {
+ 'json': [jsonPipeFactory]
+ }
+ @Component({
+ viewInjector: [
+ bind(Pipes).toValue(new Pipes(pipesConfig))
+ ]
+ })
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 get
+
+
+ pre.prettyprint
+ code.
+ get(type: string, obj: any, cdRef?: ChangeDetectorRef, existingPipe?: Pipe)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/PreGeneratedChangeDetection-class.jade b/public/docs/js/latest/api/change_detection/PreGeneratedChangeDetection-class.jade
new file mode 100644
index 0000000000..b902c8a51f
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/PreGeneratedChangeDetection-class.jade
@@ -0,0 +1,43 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/change_detection.ts (line 115)
+
+:markdown
+ Implements change detection using a map of pregenerated proto detectors.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(protoChangeDetectorsForTest?:
+ StringMap<string, Function>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 createProtoChangeDetector
+
+
+ pre.prettyprint
+ code.
+ createProtoChangeDetector(definition: ChangeDetectorDefinition)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/ProtoChangeDetector-interface.jade b/public/docs/js/latest/api/change_detection/ProtoChangeDetector-interface.jade
new file mode 100644
index 0000000000..c11711586e
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/ProtoChangeDetector-interface.jade
@@ -0,0 +1,26 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/interfaces.ts (line 59)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 instantiate
+
+
+ pre.prettyprint
+ code.
+ instantiate(dispatcher: any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/WrappedValue-class.jade b/public/docs/js/latest/api/change_detection/WrappedValue-class.jade
new file mode 100644
index 0000000000..50e3986a2b
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/WrappedValue-class.jade
@@ -0,0 +1,41 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/pipes/pipe.ts (line 2)
+
+:markdown
+ Indicates that the result of a
Pipe
transformation has changed even though the reference
+ has not changed.
+
+ The wrapped value will be unwrapped by change detection, and the unwrapped value will be stored.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(wrapped: any)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 wrapped
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/_data.json b/public/docs/js/latest/api/change_detection/_data.json
new file mode 100644
index 0000000000..0f2cae4b11
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/_data.json
@@ -0,0 +1,174 @@
+{
+ "index" : {
+ "title" : "Change Detection",
+ "intro" : "Change detection enables data binding in Angular."
+ },
+
+ "ASTWithSource-class" : {
+ "title" : "ASTWithSource Class"
+ },
+
+ "AST-class" : {
+ "title" : "AST Class"
+ },
+
+ "AstTransformer-class" : {
+ "title" : "AstTransformer Class"
+ },
+
+ "AccessMember-class" : {
+ "title" : "AccessMember Class"
+ },
+
+ "LiteralArray-class" : {
+ "title" : "LiteralArray Class"
+ },
+
+ "ImplicitReceiver-class" : {
+ "title" : "ImplicitReceiver Class"
+ },
+
+ "Lexer-class" : {
+ "title" : "Lexer Class"
+ },
+
+ "Parser-class" : {
+ "title" : "Parser Class"
+ },
+
+ "Locals-class" : {
+ "title" : "Locals Class"
+ },
+
+ "DehydratedException-class" : {
+ "title" : "DehydratedException Class"
+ },
+
+ "ExpressionChangedAfterItHasBeenChecked-class" : {
+ "title" : "ExpressionChangedAfterItHasBeenChecked Class"
+ },
+
+ "ChangeDetectionError-class" : {
+ "title" : "ChangeDetectionError Class"
+ },
+
+ "ProtoChangeDetector-interface" : {
+ "title" : "ProtoChangeDetector Interface"
+ },
+
+ "ChangeDetector-interface" : {
+ "title" : "ChangeDetector Interface"
+ },
+
+ "ChangeDispatcher-interface" : {
+ "title" : "ChangeDispatcher Interface"
+ },
+
+ "ChangeDetection-class" : {
+ "title" : "ChangeDetection Class"
+ },
+
+ "ChangeDetectorDefinition-class" : {
+ "title" : "ChangeDetectorDefinition Class"
+ },
+
+ "CHECK_ONCE-var" : {
+ "title" : "CHECK_ONCE Var"
+ },
+
+ "CHECK_ALWAYS-var" : {
+ "title" : "CHECK_ALWAYS Var"
+ },
+
+ "DETACHED-var" : {
+ "title" : "DETACHED Var"
+ },
+
+ "CHECKED-var" : {
+ "title" : "CHECKED Var"
+ },
+
+ "ON_PUSH-var" : {
+ "title" : "ON_PUSH Var"
+ },
+
+ "DEFAULT-var" : {
+ "title" : "DEFAULT Var"
+ },
+
+ "DynamicProtoChangeDetector-class" : {
+ "title" : "DynamicProtoChangeDetector Class"
+ },
+
+ "BindingRecord-class" : {
+ "title" : "BindingRecord Class"
+ },
+
+ "DirectiveIndex-class" : {
+ "title" : "DirectiveIndex Class"
+ },
+
+ "DirectiveRecord-class" : {
+ "title" : "DirectiveRecord Class"
+ },
+
+ "DynamicChangeDetector-class" : {
+ "title" : "DynamicChangeDetector Class"
+ },
+
+ "ChangeDetectorRef-class" : {
+ "title" : "ChangeDetectorRef Class"
+ },
+
+ "Pipes-class" : {
+ "title" : "Pipes Class"
+ },
+
+ "uninitialized-var" : {
+ "title" : "uninitialized Var"
+ },
+
+ "WrappedValue-class" : {
+ "title" : "WrappedValue Class"
+ },
+
+ "Pipe-interface" : {
+ "title" : "Pipe Interface"
+ },
+
+ "PipeFactory-interface" : {
+ "title" : "PipeFactory Interface"
+ },
+
+ "BasePipe-class" : {
+ "title" : "BasePipe Class"
+ },
+
+ "NullPipe-class" : {
+ "title" : "NullPipe Class"
+ },
+
+ "NullPipeFactory-class" : {
+ "title" : "NullPipeFactory Class"
+ },
+
+ "defaultPipes-var" : {
+ "title" : "defaultPipes Var"
+ },
+
+ "DynamicChangeDetection-class" : {
+ "title" : "DynamicChangeDetection Class"
+ },
+
+ "JitChangeDetection-class" : {
+ "title" : "JitChangeDetection Class"
+ },
+
+ "PreGeneratedChangeDetection-class" : {
+ "title" : "PreGeneratedChangeDetection Class"
+ },
+
+ "preGeneratedProtoDetectors-var" : {
+ "title" : "preGeneratedProtoDetectors Var"
+ }
+}
\ No newline at end of file
diff --git a/public/docs/js/latest/api/change_detection/defaultPipes-var.jade b/public/docs/js/latest/api/change_detection/defaultPipes-var.jade
new file mode 100644
index 0000000000..ccbb11c339
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/defaultPipes-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 defaultPipes
variable
+ p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/change_detection.ts (line 92)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/index.jade b/public/docs/js/latest/api/change_detection/index.jade
new file mode 100644
index 0000000000..39334d2efb
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/index.jade
@@ -0,0 +1,11 @@
+p.location-badge.
+ defined in
angular2/change_detection.ts (line 1)
+
+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/change_detection/preGeneratedProtoDetectors-var.jade b/public/docs/js/latest/api/change_detection/preGeneratedProtoDetectors-var.jade
new file mode 100644
index 0000000000..4d74942139
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/preGeneratedProtoDetectors-var.jade
@@ -0,0 +1,14 @@
+
+.l-main-section
+ h2 preGeneratedProtoDetectors
variable
+ p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/change_detection.ts (line 113)
+
+ :markdown
+ Map from
ChangeDetectorDefinition
to a factory method which takes a
+
Pipes
and a
ChangeDetectorDefinition
and generates a
+
ProtoChangeDetector
associated with the definition.
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/uninitialized-var.jade b/public/docs/js/latest/api/change_detection/uninitialized-var.jade
new file mode 100644
index 0000000000..0bc41896f6
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/uninitialized-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 uninitialized
variable
+ p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/change_detection_util.ts (line 8)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/core/AppRootUrl-class.jade b/public/docs/js/latest/api/core/AppRootUrl-class.jade
new file mode 100644
index 0000000000..17673fc71a
--- /dev/null
+++ b/public/docs/js/latest/api/core/AppRootUrl-class.jade
@@ -0,0 +1,30 @@
+
+p.location-badge.
+ exported from
angular2/core
+ defined in
angular2/src/services/app_root_url.ts (line 3)
+
+:markdown
+ Specifies app root url for the application.
+
+ Used by the
Compiler
when resolving HTML and CSS template URLs.
+
+ This interface can be overridden by the application developer to create custom behavior.
+
+ See
Compiler
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 value
+
+
+ :markdown
+
+ Returns the base URL of the currently running application.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/AppViewManager-class.jade b/public/docs/js/latest/api/core/AppViewManager-class.jade
new file mode 100644
index 0000000000..aa55998cfa
--- /dev/null
+++ b/public/docs/js/latest/api/core/AppViewManager-class.jade
@@ -0,0 +1,284 @@
+
+p.location-badge.
+ exported from
angular2/core
+ defined in
angular2/src/core/compiler/view_manager.ts (line 17)
+
+:markdown
+ Entry point for creating, moving views in the view hierarchy and destroying views.
+ This manager contains all recursion and delegates to helper methods
+ in AppViewManagerUtils and the Renderer, so unit tests get simpler.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_viewPool: AppViewPool, _viewListener: AppViewListener, _utils: AppViewManagerUtils, _renderer: Renderer)
+
+ :markdown
+
+
+
+
+
+ .l-sub-section
+ h3 getViewContainer
+
+
+ pre.prettyprint
+ code.
+ getViewContainer(location: ElementRef)
+
+ :markdown
+
+ Returns a
ViewContainerRef
at the
ElementRef
location.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getHostElement
+
+
+ pre.prettyprint
+ code.
+ getHostElement(hostViewRef: ViewRef)
+
+ :markdown
+
+ Return the first child element of the host element view.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getNamedElementInComponentView
+
+
+ pre.prettyprint
+ code.
+ getNamedElementInComponentView(hostLocation: ElementRef, variableName: string)
+
+ :markdown
+
+ Returns an ElementRef for the element with the given variable name
+ in the current view.
+
+ - `hostLocation`:
ElementRef
of any element in the View which defines the scope of
+ search.
+ - `variableName`: Name of the variable to locate.
+ - Returns
ElementRef
of the found element or null. (Throws if not found.)
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getComponent
+
+
+ pre.prettyprint
+ code.
+ getComponent(hostLocation: ElementRef)
+
+ :markdown
+
+ Returns the component instance for a given element.
+
+ The component is the execution context as seen by an expression at that
ElementRef
+ location.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 createRootHostView
+
+
+ pre.prettyprint
+ code.
+ createRootHostView(hostProtoViewRef: ProtoViewRef, overrideSelector: string, injector: Injector)
+
+ :markdown
+
+ Load component view into existing element.
+
+ Use this if a host element is already in the DOM and it is necessary to upgrade
+ the element into Angular component by attaching a view but reusing the existing element.
+
+ - `hostProtoViewRef`:
ProtoViewRef
Proto view to use in creating a view for this
+ component.
+ - `overrideSelector`: (optional) selector to use in locating the existing element to load
+ the view into. If not specified use the selector in the component definition of the
+ `hostProtoView`.
+ - injector:
Injector
to use as parent injector for the view.
+
+ See
AppViewManager
.
+
+
+
+ ```
+ @ng.Component({
+ selector: 'child-component'
+ })
+ @ng.View({
+ template: 'Child'
+ })
+ class ChildComponent {
+
+ }
+
+ @ng.Component({
+ selector: 'my-app'
+ })
+ @ng.View({
+ template: `
+ Parent (
)
+ `
+ })
+ class MyApp {
+ viewRef: ng.ViewRef;
+
+ constructor(public appViewManager: ng.AppViewManager, compiler: ng.Compiler) {
+ compiler.compileInHost(ChildComponent).then((protoView: ng.ProtoViewRef) => {
+ this.viewRef = appViewManager.createRootHostView(protoView, 'some-component', null);
+ })
+ }
+
+ onDestroy() {
+ this.appViewManager.destroyRootHostView(this.viewRef);
+ this.viewRef = null;
+ }
+ }
+
+ ng.bootstrap(MyApp);
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 destroyRootHostView
+
+
+ pre.prettyprint
+ code.
+ destroyRootHostView(hostViewRef: ViewRef)
+
+ :markdown
+
+ Remove the View created with
AppViewManager
.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 createEmbeddedViewInContainer
+
+
+ pre.prettyprint
+ code.
+ createEmbeddedViewInContainer(viewContainerLocation: ElementRef, atIndex: number, templateRef: TemplateRef)
+
+ :markdown
+
+ See
AppViewManager
.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 createHostViewInContainer
+
+
+ pre.prettyprint
+ code.
+ createHostViewInContainer(viewContainerLocation: ElementRef, atIndex: number, protoViewRef: ProtoViewRef, imperativelyCreatedInjector: ResolvedBinding[])
+
+ :markdown
+
+ See
AppViewManager
.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 destroyViewInContainer
+
+
+ pre.prettyprint
+ code.
+ destroyViewInContainer(viewContainerLocation: ElementRef, atIndex: number)
+
+ :markdown
+
+ See
AppViewManager
.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 attachViewInContainer
+
+
+ pre.prettyprint
+ code.
+ attachViewInContainer(viewContainerLocation: ElementRef, atIndex: number, viewRef: ViewRef)
+
+ :markdown
+
+ See
AppViewManager
.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 detachViewInContainer
+
+
+ pre.prettyprint
+ code.
+ detachViewInContainer(viewContainerLocation: ElementRef, atIndex: number)
+
+ :markdown
+
+ See
AppViewManager
.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/ApplicationRef-class.jade b/public/docs/js/latest/api/core/ApplicationRef-class.jade
new file mode 100644
index 0000000000..0e78dccbb3
--- /dev/null
+++ b/public/docs/js/latest/api/core/ApplicationRef-class.jade
@@ -0,0 +1,88 @@
+
+p.location-badge.
+ exported from
angular2/core
+ defined in
angular2/src/core/application_common.ts (line 317)
+
+:markdown
+ Represents a Angular's representation of an Application.
+
+ `ApplicationRef` represents a running application instance. Use it to retrieve the host
+ component, injector,
+ or dispose of an application.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(hostComponent: ComponentRef, hostComponentType: Type, injector: Injector)
+
+ :markdown
+
+
+
+
+
+ .l-sub-section
+ h3 hostComponentType
+
+
+ :markdown
+
+ Returns the current
Component
type.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 hostComponent
+
+
+ :markdown
+
+ Returns the current
Component
instance.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dispose
+
+
+ pre.prettyprint
+ code.
+ dispose()
+
+ :markdown
+
+ Dispose (un-load) the application.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 injector
+
+
+ :markdown
+
+ Returns the root application
Injector
.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/Compiler-class.jade b/public/docs/js/latest/api/core/Compiler-class.jade
new file mode 100644
index 0000000000..7ccfcf00e4
--- /dev/null
+++ b/public/docs/js/latest/api/core/Compiler-class.jade
@@ -0,0 +1,58 @@
+
+p.location-badge.
+ exported from
angular2/core
+ defined in
angular2/src/core/compiler/compiler.ts (line 60)
+
+:markdown
+ ## URL Resolution
+
+ ```
+ var appRootUrl: AppRootUrl = ...;
+ var componentUrlMapper: ComponentUrlMapper = ...;
+ var urlResolver: UrlResolver = ...;
+
+ var componentType: Type = ...;
+ var componentAnnotation: ComponentAnnotation = ...;
+ var viewAnnotation: ViewAnnotation = ...;
+
+ // Resolving a URL
+
+ var url = viewAnnotation.templateUrl;
+ var componentUrl = componentUrlMapper.getUrl(componentType);
+ var componentResolvedUrl = urlResolver.resolve(appRootUrl.value, componentUrl);
+ var templateResolvedUrl = urlResolver.resolve(componetResolvedUrl, url);
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(reader: DirectiveResolver, cache: CompilerCache, viewResolver: ViewResolver, componentUrlMapper: ComponentUrlMapper, urlResolver: UrlResolver, render:RenderCompiler, protoViewFactory: ProtoViewFactory, appUrl: AppRootUrl)
+
+ :markdown
+
+
+
+
+
+ .l-sub-section
+ h3 compileInHost
+
+
+ pre.prettyprint
+ code.
+ compileInHost(componentTypeOrBinding: Type | Binding)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/ComponentRef-class.jade b/public/docs/js/latest/api/core/ComponentRef-class.jade
new file mode 100644
index 0000000000..8670be1c82
--- /dev/null
+++ b/public/docs/js/latest/api/core/ComponentRef-class.jade
@@ -0,0 +1,76 @@
+
+p.location-badge.
+ exported from
angular2/core
+ defined in
angular2/src/core/compiler/dynamic_component_loader.ts (line 7)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(location: ElementRef, instance: any, dispose: Function)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 location
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 instance
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dispose
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 hostView
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/ComponentUrlMapper-class.jade b/public/docs/js/latest/api/core/ComponentUrlMapper-class.jade
new file mode 100644
index 0000000000..93c76d515c
--- /dev/null
+++ b/public/docs/js/latest/api/core/ComponentUrlMapper-class.jade
@@ -0,0 +1,35 @@
+
+p.location-badge.
+ exported from
angular2/core
+ defined in
angular2/src/core/compiler/component_url_mapper.ts (line 3)
+
+:markdown
+ Resolve a `Type` from a
Component
into a URL.
+
+ This interface can be overridden by the application developer to create custom behavior.
+
+ See
Compiler
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 getUrl
+
+
+ pre.prettyprint
+ code.
+ getUrl(component: Type)
+
+ :markdown
+
+ Returns the base URL to the component source file.
+ The returned URL could be:
+ - an absolute URL,
+ - a path relative to the application
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/DirectiveResolver-class.jade b/public/docs/js/latest/api/core/DirectiveResolver-class.jade
new file mode 100644
index 0000000000..75863ee57e
--- /dev/null
+++ b/public/docs/js/latest/api/core/DirectiveResolver-class.jade
@@ -0,0 +1,32 @@
+
+p.location-badge.
+ exported from
angular2/core
+ defined in
angular2/src/core/compiler/directive_resolver.ts (line 4)
+
+:markdown
+ Resolve a `Type` for
Directive
.
+
+ This interface can be overridden by the application developer to create custom behavior.
+
+ See
Compiler
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 resolve
+
+
+ pre.prettyprint
+ code.
+ resolve(type: Type)
+
+ :markdown
+
+ Return
Directive
for a given `Type`.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/DynamicComponentLoader-class.jade b/public/docs/js/latest/api/core/DynamicComponentLoader-class.jade
new file mode 100644
index 0000000000..c401fedd31
--- /dev/null
+++ b/public/docs/js/latest/api/core/DynamicComponentLoader-class.jade
@@ -0,0 +1,87 @@
+
+p.location-badge.
+ exported from
angular2/core
+ defined in
angular2/src/core/compiler/dynamic_component_loader.ts (line 13)
+
+:markdown
+ Service for dynamically loading a Component into an arbitrary position in the internal Angular
+ application tree.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_compiler: Compiler, _viewManager: AppViewManager)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 loadAsRoot
+
+
+ pre.prettyprint
+ code.
+ loadAsRoot(typeOrBinding: Type | Binding, overrideSelector: string, injector: Injector)
+
+ :markdown
+
+ Loads a root component that is placed at the first element that matches the component's
+ selector.
+
+ The loaded component receives injection normally as a hosted view.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 loadIntoLocation
+
+
+ pre.prettyprint
+ code.
+ loadIntoLocation(typeOrBinding: Type | Binding, hostLocation: ElementRef, anchorName: string, bindings?: ResolvedBinding[])
+
+ :markdown
+
+ Loads a component into the component view of the provided ElementRef
+ next to the element with the given name
+ The loaded component receives
+ injection normally as a hosted view.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 loadNextToLocation
+
+
+ pre.prettyprint
+ code.
+ loadNextToLocation(typeOrBinding: Type | Binding, location: ElementRef, bindings?: ResolvedBinding[])
+
+ :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/core/ElementRef-class.jade b/public/docs/js/latest/api/core/ElementRef-class.jade
new file mode 100644
index 0000000000..2de4a24d2d
--- /dev/null
+++ b/public/docs/js/latest/api/core/ElementRef-class.jade
@@ -0,0 +1,113 @@
+
+p.location-badge.
+ exported from
angular2/core
+ defined in
angular2/src/core/compiler/element_ref.ts (line 3)
+
+:markdown
+ Reference to the element.
+
+ Represents an opaque reference to the underlying element. The element is a DOM ELement in
+ a Browser, but may represent other types on other rendering platforms. In the browser the
+ `ElementRef` can be sent to the web-worker. Web Workers can not have references to the
+ DOM Elements.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(parentView: ViewRef, boundElementIndex: number, renderBoundElementIndex: number, _renderer: Renderer)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 parentView
+
+
+ :markdown
+
+ Reference to the
ViewRef
where the `ElementRef` is inside of.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 boundElementIndex
+
+
+ :markdown
+
+ Index of the element inside the
ViewRef
.
+
+ This is used internally by the Angular framework to locate elements.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 renderBoundElementIndex
+
+
+ :markdown
+
+ Index of the element inside the `RenderViewRef`.
+
+ This is used internally by the Angular framework to locate elements.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 renderView
+
+
+ :markdown
+
+
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 nativeElement
+
+
+ :markdown
+
+ Returns the native Element implementation.
+
+ In the browser this represents the DOM Element.
+
+ The `nativeElement` can be used as an escape hatch when direct DOM manipulation is needed. Use
+ this with caution, as it creates tight coupling between your application and the Browser, which
+ will not work in WebWorkers.
+
+ NOTE: This method will return null in the webworker scenario!
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/EventEmitter-class.jade b/public/docs/js/latest/api/core/EventEmitter-class.jade
new file mode 100644
index 0000000000..eea7334e96
--- /dev/null
+++ b/public/docs/js/latest/api/core/EventEmitter-class.jade
@@ -0,0 +1,113 @@
+
+p.location-badge.
+ exported from
angular2/core
+ defined in
angular2/src/facade/async.ts (line 89)
+
+:markdown
+ Use Rx.Observable but provides an adapter to make it work as specified here:
+ https://github.com/jhusain/observable-spec
+
+ Once a reference implementation of the spec is available, switch to it.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 observer
+
+
+ pre.prettyprint
+ code.
+ observer(generator: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toRx
+
+
+ pre.prettyprint
+ code.
+ toRx()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 next
+
+
+ pre.prettyprint
+ code.
+ next(value: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 throw
+
+
+ pre.prettyprint
+ code.
+ throw(error: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 return
+
+
+ pre.prettyprint
+ code.
+ return(value?: any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/IQueryList-interface.jade b/public/docs/js/latest/api/core/IQueryList-interface.jade
new file mode 100644
index 0000000000..0128ec184e
--- /dev/null
+++ b/public/docs/js/latest/api/core/IQueryList-interface.jade
@@ -0,0 +1,79 @@
+
+p.location-badge.
+ exported from
angular2/core
+ defined in
angular2/src/core/compiler/interface_query.ts (line 1)
+
+:markdown
+ An iterable live list of components in the Light DOM.
+
+ Injectable Objects that contains a live list of child directives in the light DOM of a directive.
+ 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 `*ng-for="of"` directive.
+
+ NOTE: In the future this class will implement an `Observable` interface. For now it uses a plain
+ list of observable
+ callbacks.
+
+ # Example:
+
+ Assume that `
` component would like to get a list its children which are ``
+ components as shown in this
+ example:
+
+ ```html
+
+ ...
+ {{o.text}}
+
+ ```
+
+ In the above example the list of `` elements needs to get a list of `` elements so
+ that it could render
+ tabs with the correct titles and in the correct order.
+
+ A possible solution would be for a `` to inject `` component and then register itself
+ with ``
+ component's on `hydrate` and deregister on `dehydrate` event. While a reasonable approach, this
+ would only work
+ partialy since `*ng-for` could rearrange the list of `` components which would not be
+ reported to ``
+ component and thus the list of `` components would be out of sync with respect to the list
+ of `` elements.
+
+ A preferred solution is to inject a `QueryList` which is a live list of directives in the
+ component`s light DOM.
+
+ ```javascript
+ @Component({
+ selector: 'tabs'
+ })
+ @View({
+ template: `
+
+
+ `
+ })
+ class Tabs {
+ panes: QueryList
+
+ constructor(@Query(Pane) panes:QueryList) {
+ this.panes = panes;
+ }
+ }
+
+ @Component({
+ selector: 'pane',
+ properties: ['title']
+ })
+ @View(...)
+ class Pane {
+ title:string;
+ }
+ ```
+
+
diff --git a/public/docs/js/latest/api/core/NgZone-class.jade b/public/docs/js/latest/api/core/NgZone-class.jade
new file mode 100644
index 0000000000..064f90eb89
--- /dev/null
+++ b/public/docs/js/latest/api/core/NgZone-class.jade
@@ -0,0 +1,176 @@
+
+p.location-badge.
+ exported from angular2/core
+ defined in angular2/src/core/zone/ng_zone.ts (line 4)
+
+:markdown
+ A wrapper around zones that lets you schedule tasks after it has executed a task.
+
+ The wrapper maintains an "inner" and an "mount" `Zone`. The application code will executes
+ in the "inner" zone unless `runOutsideAngular` is explicitely called.
+
+ A typical application will create a singleton `NgZone`. The outer `Zone` is a fork of the root
+ `Zone`. The default `onTurnDone` runs the Angular change detection.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({enableLongStackTrace}: any)
+
+ :markdown
+ Associates with this
+
+ - a "root" zone, which the one that instantiated this.
+ - an "inner" zone, which is a child of the root zone.
+
+
+
+
+
+ .l-sub-section
+ h3 overrideOnTurnStart
+
+
+ pre.prettyprint
+ code.
+ overrideOnTurnStart(onTurnStartFn: Function)
+
+ :markdown
+
+ Sets the zone hook that is called just before Angular event turn starts.
+ It is called once per browser event.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 overrideOnTurnDone
+
+
+ pre.prettyprint
+ code.
+ overrideOnTurnDone(onTurnDoneFn: Function)
+
+ :markdown
+
+ Sets the zone hook that is called immediately after Angular processes
+ all pending microtasks.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 overrideOnEventDone
+
+
+ pre.prettyprint
+ code.
+ overrideOnEventDone(onEventDoneFn: Function)
+
+ :markdown
+
+ Sets the zone hook that is called immediately after the last turn in
+ an event completes. At this point Angular will no longer attempt to
+ sync the UI. Any changes to the data model will not be reflected in the
+ DOM. `onEventDoneFn` is executed outside Angular zone.
+
+ This hook is useful for validating application state (e.g. in a test).
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 overrideOnErrorHandler
+
+
+ pre.prettyprint
+ code.
+ overrideOnErrorHandler(errorHandlingFn: Function)
+
+ :markdown
+
+ Sets the zone hook that is called when an error is uncaught in the
+ Angular zone. The first argument is the error. The second argument is
+ the stack trace.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 run
+
+
+ pre.prettyprint
+ code.
+ run(fn: () => any)
+
+ :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
+ Angular's auto digest mechanism.
+
+ ```
+ var zone: NgZone = [ref to the application zone];
+
+ zone.run(() => {
+ // the change detection will run after this function and the microtasks it enqueues have
+ executed.
+ });
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 runOutsideAngular
+
+
+ pre.prettyprint
+ code.
+ runOutsideAngular(fn: () => any)
+
+ :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
+ auto-digest mechanism.
+
+ ```
+ var zone: NgZone = [ref to the application zone];
+
+ zone.runOusideAngular(() => {
+ element.onClick(() => {
+ // Clicking on the element would not trigger the change detection
+ });
+ });
+ ```
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/Observable-class.jade b/public/docs/js/latest/api/core/Observable-class.jade
new file mode 100644
index 0000000000..c502a9de1e
--- /dev/null
+++ b/public/docs/js/latest/api/core/Observable-class.jade
@@ -0,0 +1,26 @@
+
+p.location-badge.
+ exported from angular2/core
+ defined in angular2/src/facade/async.ts (line 84)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 observer
+
+
+ pre.prettyprint
+ code.
+ observer(generator: any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/ProtoViewRef-class.jade b/public/docs/js/latest/api/core/ProtoViewRef-class.jade
new file mode 100644
index 0000000000..11dfd5bfb3
--- /dev/null
+++ b/public/docs/js/latest/api/core/ProtoViewRef-class.jade
@@ -0,0 +1,57 @@
+
+p.location-badge.
+ exported from angular2/core
+ defined in angular2/src/core/compiler/view_ref.ts (line 85)
+
+:markdown
+ A reference to an Angular ProtoView.
+
+ A ProtoView is a reference to a template for easy creation of views.
+ (See AppViewManager
and AppViewManager
).
+
+ A `ProtoView` is a foctary for creating `View`s.
+
+ ## Example
+
+ Given this template
+
+ ```
+ Count: {{items.length}}
+
+ ```
+
+ The above example we have two ProtoViewRef
s:
+
+ Outter ProtoViewRef
:
+ ```
+ Count: {{items.length}}
+
+ ```
+
+ Inner ProtoViewRef
:
+ ```
+ {{item}}
+ ```
+
+ Notice that the original template is broken down into two separate ProtoViewRef
s.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_protoView:AppProtoView)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/core/QueryList-class.jade b/public/docs/js/latest/api/core/QueryList-class.jade
new file mode 100644
index 0000000000..0ac5b50c70
--- /dev/null
+++ b/public/docs/js/latest/api/core/QueryList-class.jade
@@ -0,0 +1,155 @@
+
+p.location-badge.
+ exported from angular2/core
+ defined in angular2/src/core/compiler/query_list.ts (line 2)
+
+:markdown
+ Injectable Objects that contains a live list of child directives in the light Dom of a directive.
+ The directives are kept in depth-first pre-order traversal of the DOM.
+
+ In the future this class will implement an Observable interface.
+ For now it uses a plain list of observable callbacks.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 reset
+
+
+ pre.prettyprint
+ code.
+ reset(newList: List<T>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 add
+
+
+ pre.prettyprint
+ code.
+ add(obj: T)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 fireCallbacks
+
+
+ pre.prettyprint
+ code.
+ fireCallbacks()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onChange
+
+
+ pre.prettyprint
+ code.
+ onChange(callback: () => void)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 removeCallback
+
+
+ pre.prettyprint
+ code.
+ removeCallback(callback: () => void)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 length
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 first
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 last
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 map
+
+
+ pre.prettyprint
+ code.
+ map(fn: (T) => U)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/RenderElementRef-interface.jade b/public/docs/js/latest/api/core/RenderElementRef-interface.jade
new file mode 100644
index 0000000000..c5129ee3c3
--- /dev/null
+++ b/public/docs/js/latest/api/core/RenderElementRef-interface.jade
@@ -0,0 +1,42 @@
+
+p.location-badge.
+ exported from angular2/core
+ defined in angular2/src/render/api.ts (line 350)
+
+:markdown
+ Abstract reference to the element which can be marshaled across web-worker boundry.
+
+ This interface is used by the Renderer API.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 renderView
+
+
+ :markdown
+
+ Reference to the `RenderViewRef` where the `RenderElementRef` is inside of.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 renderBoundElementIndex
+
+
+ :markdown
+
+ Index of the element inside the `RenderViewRef`.
+
+ This is used internally by the Angular framework to locate elements.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/TemplateRef-class.jade b/public/docs/js/latest/api/core/TemplateRef-class.jade
new file mode 100644
index 0000000000..5de355c610
--- /dev/null
+++ b/public/docs/js/latest/api/core/TemplateRef-class.jade
@@ -0,0 +1,73 @@
+
+p.location-badge.
+ exported from angular2/core
+ defined in angular2/src/core/compiler/template_ref.ts (line 3)
+
+:markdown
+ Reference to a template within a component.
+
+ Represents an opaque reference to the underlying template that can
+ be instantiated using the ViewContainerRef
.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(elementRef: ElementRef)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 elementRef
+
+
+ :markdown
+
+ The location of the template
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 protoViewRef
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 hasLocal
+
+
+ pre.prettyprint
+ code.
+ hasLocal(name: string)
+
+ :markdown
+
+ Whether this template has a local variable with the given name
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/UrlResolver-class.jade b/public/docs/js/latest/api/core/UrlResolver-class.jade
new file mode 100644
index 0000000000..a5fedd1fd4
--- /dev/null
+++ b/public/docs/js/latest/api/core/UrlResolver-class.jade
@@ -0,0 +1,36 @@
+
+p.location-badge.
+ exported from angular2/core
+ defined in angular2/src/services/url_resolver.ts (line 9)
+
+:markdown
+ Used by the Compiler
when resolving HTML and CSS template URLs.
+
+ This interface can be overridden by the application developer to create custom behavior.
+
+ See Compiler
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 resolve
+
+
+ pre.prettyprint
+ code.
+ resolve(baseUrl: string, url: string)
+
+ :markdown
+
+ Resolves the `url` given the `baseUrl`:
+ - when the `url` is null, the `baseUrl` is returned,
+ - if `url` is relative ('path/to/here', './path/to/here'), the resolved url is a combination of
+ `baseUrl` and `url`,
+ - if `url` is absolute (it has a scheme: 'http://', 'https://' or start with '/'), the `url` is
+ returned as is (ignoring the `baseUrl`)
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/ViewContainerRef-class.jade b/public/docs/js/latest/api/core/ViewContainerRef-class.jade
new file mode 100644
index 0000000000..e08331d4eb
--- /dev/null
+++ b/public/docs/js/latest/api/core/ViewContainerRef-class.jade
@@ -0,0 +1,201 @@
+
+p.location-badge.
+ exported from angular2/core
+ defined in angular2/src/core/compiler/view_container_ref.ts (line 10)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(viewManager:AppViewManager, element: ElementRef)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 viewManager
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 element
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 clear
+
+
+ pre.prettyprint
+ code.
+ clear()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 get
+
+
+ pre.prettyprint
+ code.
+ get(index: number)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 length
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 createEmbeddedView
+
+
+ pre.prettyprint
+ code.
+ createEmbeddedView(templateRef: TemplateRef, atIndex?: number)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 createHostView
+
+
+ pre.prettyprint
+ code.
+ createHostView(protoViewRef?: ProtoViewRef, atIndex?: number, dynamicallyCreatedBindings?: ResolvedBinding[])
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 insert
+
+
+ pre.prettyprint
+ code.
+ insert(viewRef: ViewRef, atIndex?: number)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 indexOf
+
+
+ pre.prettyprint
+ code.
+ indexOf(viewRef: ViewRef)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 remove
+
+
+ pre.prettyprint
+ code.
+ remove(atIndex?: number)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 detach
+
+
+ pre.prettyprint
+ code.
+ detach(atIndex?: number)
+
+ :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.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/ViewRef-class.jade b/public/docs/js/latest/api/core/ViewRef-class.jade
new file mode 100644
index 0000000000..d85ddbbb84
--- /dev/null
+++ b/public/docs/js/latest/api/core/ViewRef-class.jade
@@ -0,0 +1,119 @@
+
+p.location-badge.
+ exported from angular2/core
+ defined in angular2/src/core/compiler/view_ref.ts (line 13)
+
+:markdown
+ A reference to an Angular View.
+
+ A View is a fundamental building block of Application UI. A View is the smallest set of
+ elements which are created and destroyed together. A View can change properties on the elements
+ within the view, but it can not change the structure of those elements.
+
+ To change structure of the elements, the Views can contain zero or more ViewContainerRef
s
+ which allow the views to be nested.
+
+ ## Example
+
+ Given this template
+
+ ```
+ Count: {{items.length}}
+
+ ```
+
+ The above example we have two ProtoViewRef
s:
+
+ Outter ProtoViewRef
:
+ ```
+ Count: {{items.length}}
+
+ ```
+
+ Inner ProtoViewRef
:
+ ```
+ {{item}}
+ ```
+
+ Notice that the original template is broken down into two separate ProtoViewRef
s.
+
+ The outter/inner ProtoViewRef
s are then assembled into views like so:
+
+ ```
+
+ Count: 2
+
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_view:AppView)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 render
+
+
+ :markdown
+
+ Return `RenderViewRef`
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 renderFragment
+
+
+ :markdown
+
+ Return `RenderFragmentRef`
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 setLocal
+
+
+ pre.prettyprint
+ code.
+ setLocal(contextName: string, value: any)
+
+ :markdown
+
+ Set local variable for a view.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/_data.json b/public/docs/js/latest/api/core/_data.json
new file mode 100644
index 0000000000..dd2c39139c
--- /dev/null
+++ b/public/docs/js/latest/api/core/_data.json
@@ -0,0 +1,90 @@
+{
+ "index" : {
+ "title" : "Core",
+ "intro" : "Define angular core API here."
+ },
+
+ "appComponentTypeToken-var" : {
+ "title" : "appComponentTypeToken Var"
+ },
+
+ "ApplicationRef-class" : {
+ "title" : "ApplicationRef Class"
+ },
+
+ "AppRootUrl-class" : {
+ "title" : "AppRootUrl Class"
+ },
+
+ "UrlResolver-class" : {
+ "title" : "UrlResolver Class"
+ },
+
+ "ComponentUrlMapper-class" : {
+ "title" : "ComponentUrlMapper Class"
+ },
+
+ "DirectiveResolver-class" : {
+ "title" : "DirectiveResolver Class"
+ },
+
+ "Compiler-class" : {
+ "title" : "Compiler Class"
+ },
+
+ "AppViewManager-class" : {
+ "title" : "AppViewManager Class"
+ },
+
+ "IQueryList-interface" : {
+ "title" : "IQueryList Interface"
+ },
+
+ "QueryList-class" : {
+ "title" : "QueryList Class"
+ },
+
+ "ElementRef-class" : {
+ "title" : "ElementRef Class"
+ },
+
+ "TemplateRef-class" : {
+ "title" : "TemplateRef Class"
+ },
+
+ "RenderElementRef-interface" : {
+ "title" : "RenderElementRef Interface"
+ },
+
+ "ViewRef-class" : {
+ "title" : "ViewRef Class"
+ },
+
+ "ProtoViewRef-class" : {
+ "title" : "ProtoViewRef Class"
+ },
+
+ "ViewContainerRef-class" : {
+ "title" : "ViewContainerRef Class"
+ },
+
+ "DynamicComponentLoader-class" : {
+ "title" : "DynamicComponentLoader Class"
+ },
+
+ "ComponentRef-class" : {
+ "title" : "ComponentRef Class"
+ },
+
+ "NgZone-class" : {
+ "title" : "NgZone Class"
+ },
+
+ "Observable-class" : {
+ "title" : "Observable Class"
+ },
+
+ "EventEmitter-class" : {
+ "title" : "EventEmitter Class"
+ }
+}
\ No newline at end of file
diff --git a/public/docs/js/latest/api/core/appComponentTypeToken-var.jade b/public/docs/js/latest/api/core/appComponentTypeToken-var.jade
new file mode 100644
index 0000000000..0317bfbbcf
--- /dev/null
+++ b/public/docs/js/latest/api/core/appComponentTypeToken-var.jade
@@ -0,0 +1,25 @@
+
+.l-main-section
+ h2 appComponentTypeToken variable
+ p.location-badge.
+ exported from angular2/core
+ defined in angular2/src/core/application_tokens.ts (line 25)
+
+ :markdown
+ An opaque token representing the application root type in the Injector
.
+
+ ```
+ @Component(...)
+ @View(...)
+ class MyApp {
+ ...
+ }
+
+ bootstrap(MyApp).then((appRef:ApplicationRef) {
+ expect(appRef.injector.get(appComponentTypeToken)).toEqual(MyApp);
+ });
+
+ ```
+
+
+
diff --git a/public/docs/js/latest/api/core/index.jade b/public/docs/js/latest/api/core/index.jade
new file mode 100644
index 0000000000..68148a033e
--- /dev/null
+++ b/public/docs/js/latest/api/core/index.jade
@@ -0,0 +1,11 @@
+p.location-badge.
+ defined in angular2/core.ts (line 1)
+
+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/di/AbstractBindingError-class.jade b/public/docs/js/latest/api/di/AbstractBindingError-class.jade
new file mode 100644
index 0000000000..ae690c9060
--- /dev/null
+++ b/public/docs/js/latest/api/di/AbstractBindingError-class.jade
@@ -0,0 +1,137 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/exceptions.ts (line 27)
+
+:markdown
+ Base class for all errors arising from misconfigured bindings.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(injector: Injector, key: Key, constructResolvingMessage: Function, originalException?: any, originalStack?: any)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 name
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 message
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 keys
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 injectors
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 constructResolvingMessage
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 addKey
+
+
+ pre.prettyprint
+ code.
+ addKey(injector: Injector, key: Key)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 context
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/Ancestor-var.jade b/public/docs/js/latest/api/di/Ancestor-var.jade
new file mode 100644
index 0000000000..616661b9bf
--- /dev/null
+++ b/public/docs/js/latest/api/di/Ancestor-var.jade
@@ -0,0 +1,12 @@
+
+.l-main-section
+ h2 Ancestor variable
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 83)
+
+ :markdown
+ Factory for creating AncestorMetadata
.
+
+
+
diff --git a/public/docs/js/latest/api/di/AncestorFactory-interface.jade b/public/docs/js/latest/api/di/AncestorFactory-interface.jade
new file mode 100644
index 0000000000..9120ca429e
--- /dev/null
+++ b/public/docs/js/latest/api/di/AncestorFactory-interface.jade
@@ -0,0 +1,9 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 42)
+
+:markdown
+ Factory for creating AncestorMetadata
.
+
+
diff --git a/public/docs/js/latest/api/di/AncestorMetadata-class.jade b/public/docs/js/latest/api/di/AncestorMetadata-class.jade
new file mode 100644
index 0000000000..845ff7f74d
--- /dev/null
+++ b/public/docs/js/latest/api/di/AncestorMetadata-class.jade
@@ -0,0 +1,70 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/metadata.ts (line 123)
+
+:markdown
+ Specifies that an injector should retrieve a dependency from any ancestor from the same boundary.
+
+ ## Example
+
+ ```
+ class Dependency {
+ }
+
+ class NeedsDependency {
+ constructor(public @Ancestor() dependency:Dependency) {}
+ }
+
+ var parent = Injector.resolveAndCreate([
+ bind(Dependency).toClass(AncestorDependency)
+ ]);
+ var child = parent.resolveAndCreateChild([]);
+ var grandChild = child.resolveAndCreateChild([NeedsDependency, Depedency]);
+ var nd = grandChild.get(NeedsDependency);
+ expect(nd.dependency).toBeAnInstanceOf(AncestorDependency);
+ ```
+
+ You can make an injector to retrive a dependency either from itself or its ancestor by setting
+ self to true.
+
+ ```
+ class NeedsDependency {
+ constructor(public @Ancestor({self:true}) dependency:Dependency) {}
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({self}?: {self?: boolean})
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/Binding-class.jade b/public/docs/js/latest/api/di/Binding-class.jade
new file mode 100644
index 0000000000..64a58a4d9e
--- /dev/null
+++ b/public/docs/js/latest/api/di/Binding-class.jade
@@ -0,0 +1,237 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/binding.ts (line 37)
+
+:markdown
+ Describes how the Injector
should instantiate a given token.
+
+ See bind
.
+
+ ## Example
+
+ ```javascript
+ var injector = Injector.resolveAndCreate([
+ new Binding(String, { toValue: 'Hello' })
+ ]);
+
+ expect(injector.get(String)).toEqual('Hello');
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(token: any, {toClass, toValue, toAlias, toFactory, deps}:
+ {toClass?: Type, toValue?: any, toAlias?: any, toFactory?: Function, deps?: List<any>})
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 token
+
+
+ :markdown
+
+ Token used when retrieving this binding. Usually the `Type`.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toClass
+
+
+ :markdown
+
+ Binds an interface to an implementation / subclass.
+
+
+
+ Becuse `toAlias` and `toClass` are often confused, the example contains both use cases for easy
+ comparison.
+
+ ```javascript
+
+ class Vehicle {}
+
+ class Car extends Vehicle {}
+
+ var injectorClass = Injector.resolveAndCreate([
+ Car,
+ new Binding(Vehicle, { toClass: Car })
+ ]);
+ var injectorAlias = Injector.resolveAndCreate([
+ Car,
+ new Binding(Vehicle, { toAlias: Car })
+ ]);
+
+ expect(injectorClass.get(Vehicle)).not.toBe(injectorClass.get(Car));
+ expect(injectorClass.get(Vehicle) instanceof Car).toBe(true);
+
+ expect(injectorAlias.get(Vehicle)).toBe(injectorAlias.get(Car));
+ expect(injectorAlias.get(Vehicle) instanceof Car).toBe(true);
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toValue
+
+
+ :markdown
+
+ Binds a key to a value.
+
+
+
+ ```javascript
+ var injector = Injector.resolveAndCreate([
+ new Binding(String, { toValue: 'Hello' })
+ ]);
+
+ expect(injector.get(String)).toEqual('Hello');
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toAlias
+
+
+ :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 `toClass` where a separate instance of `toClass` is returned.
+
+
+
+ Becuse `toAlias` and `toClass` are often confused the example contains both use cases for easy
+ comparison.
+
+ ```javascript
+
+ class Vehicle {}
+
+ class Car extends Vehicle {}
+
+ var injectorAlias = Injector.resolveAndCreate([
+ Car,
+ new Binding(Vehicle, { toAlias: Car })
+ ]);
+ var injectorClass = Injector.resolveAndCreate([
+ Car,
+ new Binding(Vehicle, { toClass: Car })
+ ]);
+
+ expect(injectorAlias.get(Vehicle)).toBe(injectorAlias.get(Car));
+ expect(injectorAlias.get(Vehicle) instanceof Car).toBe(true);
+
+ expect(injectorClass.get(Vehicle)).not.toBe(injectorClass.get(Car));
+ expect(injectorClass.get(Vehicle) instanceof Car).toBe(true);
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toFactory
+
+
+ :markdown
+
+ Binds a key to a function which computes the value.
+
+
+
+ ```javascript
+ var injector = Injector.resolveAndCreate([
+ new Binding(Number, { toFactory: () => { return 1+2; }}),
+ new Binding(String, { toFactory: (value) => { return "Value: " + value; },
+ dependencies: [Number] })
+ ]);
+
+ expect(injector.get(Number)).toEqual(3);
+ expect(injector.get(String)).toEqual('Value: 3');
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dependencies
+
+
+ :markdown
+
+ Used in conjunction with `toFactory` and specifies a set of dependencies
+ (as `token`s) which should be injected into the factory function.
+
+
+
+ ```javascript
+ var injector = Injector.resolveAndCreate([
+ new Binding(Number, { toFactory: () => { return 1+2; }}),
+ new Binding(String, { toFactory: (value) => { return "Value: " + value; },
+ dependencies: [Number] })
+ ]);
+
+ expect(injector.get(Number)).toEqual(3);
+ expect(injector.get(String)).toEqual('Value: 3');
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 resolve
+
+
+ pre.prettyprint
+ code.
+ resolve()
+
+ :markdown
+
+ Converts the Binding
into ResolvedBinding
.
+
+ Injector
internally only uses ResolvedBinding
, Binding
contains
+ convenience binding syntax.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/BindingBuilder-class.jade b/public/docs/js/latest/api/di/BindingBuilder-class.jade
new file mode 100644
index 0000000000..0b7e03744a
--- /dev/null
+++ b/public/docs/js/latest/api/di/BindingBuilder-class.jade
@@ -0,0 +1,189 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/binding.ts (line 259)
+
+:markdown
+ Helper class for the bind
function.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(token: any)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 token
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toClass
+
+
+ pre.prettyprint
+ code.
+ toClass(type: Type)
+
+ :markdown
+
+ Binds an interface to an implementation / subclass.
+
+
+
+ Because `toAlias` and `toClass` are often confused, the example contains both use cases for
+ easy comparison.
+
+ ```javascript
+
+ class Vehicle {}
+
+ class Car extends Vehicle {}
+
+ var injectorClass = Injector.resolveAndCreate([
+ Car,
+ bind(Vehicle).toClass(Car)
+ ]);
+ var injectorAlias = Injector.resolveAndCreate([
+ Car,
+ bind(Vehicle).toAlias(Car)
+ ]);
+
+ expect(injectorClass.get(Vehicle)).not.toBe(injectorClass.get(Car));
+ expect(injectorClass.get(Vehicle) instanceof Car).toBe(true);
+
+ expect(injectorAlias.get(Vehicle)).toBe(injectorAlias.get(Car));
+ expect(injectorAlias.get(Vehicle) instanceof Car).toBe(true);
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toValue
+
+
+ pre.prettyprint
+ code.
+ toValue(value: any)
+
+ :markdown
+
+ Binds a key to a value.
+
+
+
+ ```javascript
+ var injector = Injector.resolveAndCreate([
+ bind(String).toValue('Hello')
+ ]);
+
+ expect(injector.get(String)).toEqual('Hello');
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toAlias
+
+
+ pre.prettyprint
+ code.
+ toAlias(aliasToken: /*Type*/ any)
+
+ :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 `toClass` where a separate instance of `toClass` will be returned.)
+
+
+
+ Becuse `toAlias` and `toClass` are often confused, the example contains both use cases for easy
+ comparison.
+
+ ```javascript
+
+ class Vehicle {}
+
+ class Car extends Vehicle {}
+
+ var injectorAlias = Injector.resolveAndCreate([
+ Car,
+ bind(Vehicle).toAlias(Car)
+ ]);
+ var injectorClass = Injector.resolveAndCreate([
+ Car,
+ bind(Vehicle).toClass(Car)
+ ]);
+
+ expect(injectorAlias.get(Vehicle)).toBe(injectorAlias.get(Car));
+ expect(injectorAlias.get(Vehicle) instanceof Car).toBe(true);
+
+ expect(injectorClass.get(Vehicle)).not.toBe(injectorClass.get(Car));
+ expect(injectorClass.get(Vehicle) instanceof Car).toBe(true);
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toFactory
+
+
+ pre.prettyprint
+ code.
+ toFactory(factoryFunction: Function, dependencies?: List<any>)
+
+ :markdown
+
+ Binds a key to a function which computes the value.
+
+
+
+ ```javascript
+ var injector = Injector.resolveAndCreate([
+ bind(Number).toFactory(() => { return 1+2; }),
+ bind(String).toFactory((v) => { return "Value: " + v; }, [Number])
+ ]);
+
+ expect(injector.get(Number)).toEqual(3);
+ expect(injector.get(String)).toEqual('Value: 3');
+ ```
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/BindingWithVisibility-class.jade b/public/docs/js/latest/api/di/BindingWithVisibility-class.jade
new file mode 100644
index 0000000000..f3b6303d14
--- /dev/null
+++ b/public/docs/js/latest/api/di/BindingWithVisibility-class.jade
@@ -0,0 +1,67 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/injector.ts (line 357)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(binding: ResolvedBinding, visibility: number)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 binding
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visibility
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getKeyId
+
+
+ pre.prettyprint
+ code.
+ getKeyId()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/CyclicDependencyError-class.jade b/public/docs/js/latest/api/di/CyclicDependencyError-class.jade
new file mode 100644
index 0000000000..49b7f0ca01
--- /dev/null
+++ b/public/docs/js/latest/api/di/CyclicDependencyError-class.jade
@@ -0,0 +1,38 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/exceptions.ts (line 71)
+
+:markdown
+ Thrown when dependencies form a cycle.
+
+ ## Example:
+
+ ```javascript
+ class A {
+ constructor(b:B) {}
+ }
+ class B {
+ constructor(a:A) {}
+ }
+ ```
+
+ Retrieving `A` or `B` throws a `CyclicDependencyError` as the graph above cannot be constructed.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(injector: Injector, key: Key)
+
+ :markdown
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/DEFAULT_VISIBILITY-var.jade b/public/docs/js/latest/api/di/DEFAULT_VISIBILITY-var.jade
new file mode 100644
index 0000000000..91e4fffcd1
--- /dev/null
+++ b/public/docs/js/latest/api/di/DEFAULT_VISIBILITY-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 DEFAULT_VISIBILITY variable
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/metadata.ts (line 199)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/di/Dependency-class.jade b/public/docs/js/latest/api/di/Dependency-class.jade
new file mode 100644
index 0000000000..92c85410b0
--- /dev/null
+++ b/public/docs/js/latest/api/di/Dependency-class.jade
@@ -0,0 +1,75 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/binding.ts (line 23)
+
+:markdown
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(key: Key, optional: boolean, visibility: VisibilityMetadata, properties: List<any>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 key
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 optional
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visibility
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 properties
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/DependencyMetadata-class.jade b/public/docs/js/latest/api/di/DependencyMetadata-class.jade
new file mode 100644
index 0000000000..1dbb04e613
--- /dev/null
+++ b/public/docs/js/latest/api/di/DependencyMetadata-class.jade
@@ -0,0 +1,46 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/metadata.ts (line 34)
+
+:markdown
+ `DependencyMetadata is used by the framework to extend DI.
+
+ Only metadata implementing `DependencyMetadata` are added to the list of dependency
+ properties.
+
+ For example:
+
+ ```
+ class Exclude extends DependencyMetadata {}
+ class NotDependencyProperty {}
+
+ class AComponent {
+ constructor(@Exclude @NotDependencyProperty aService:AService) {}
+ }
+ ```
+
+ will create the following dependency:
+
+ ```
+ new Dependency(Key.get(AService), [new Exclude()])
+ ```
+
+ The framework can use `new Exclude()` to handle the `aService` dependency
+ in a specific way.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 token
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/DependencyProvider-interface.jade b/public/docs/js/latest/api/di/DependencyProvider-interface.jade
new file mode 100644
index 0000000000..bea329d6b2
--- /dev/null
+++ b/public/docs/js/latest/api/di/DependencyProvider-interface.jade
@@ -0,0 +1,27 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/injector.ts (line 363)
+
+:markdown
+ Used to provide dependencies that cannot be easily expressed as bindings.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 getDependency
+
+
+ pre.prettyprint
+ code.
+ getDependency(injector: Injector, binding: ResolvedBinding, dependency: Dependency)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/ForwardRefFn-interface.jade b/public/docs/js/latest/api/di/ForwardRefFn-interface.jade
new file mode 100644
index 0000000000..f8b8afc6af
--- /dev/null
+++ b/public/docs/js/latest/api/di/ForwardRefFn-interface.jade
@@ -0,0 +1,8 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/forward_ref.ts (line 1)
+
+:markdown
+
+
diff --git a/public/docs/js/latest/api/di/Inject-var.jade b/public/docs/js/latest/api/di/Inject-var.jade
new file mode 100644
index 0000000000..58c86e598b
--- /dev/null
+++ b/public/docs/js/latest/api/di/Inject-var.jade
@@ -0,0 +1,12 @@
+
+.l-main-section
+ h2 Inject variable
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 63)
+
+ :markdown
+ Factory for creating InjectMetadata
.
+
+
+
diff --git a/public/docs/js/latest/api/di/InjectFactory-interface.jade b/public/docs/js/latest/api/di/InjectFactory-interface.jade
new file mode 100644
index 0000000000..078072c90d
--- /dev/null
+++ b/public/docs/js/latest/api/di/InjectFactory-interface.jade
@@ -0,0 +1,9 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 10)
+
+:markdown
+ Factory for creating InjectMetadata
.
+
+
diff --git a/public/docs/js/latest/api/di/InjectMetadata-class.jade b/public/docs/js/latest/api/di/InjectMetadata-class.jade
new file mode 100644
index 0000000000..cb4bd10a28
--- /dev/null
+++ b/public/docs/js/latest/api/di/InjectMetadata-class.jade
@@ -0,0 +1,61 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/metadata.ts (line 1)
+
+:markdown
+ A parameter metadata that specifies a dependency.
+
+ ```
+ class AComponent {
+ constructor(@Inject(MyService) aService:MyService) {}
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(token: any)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 token
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/Injectable-var.jade b/public/docs/js/latest/api/di/Injectable-var.jade
new file mode 100644
index 0000000000..9f7540ccea
--- /dev/null
+++ b/public/docs/js/latest/api/di/Injectable-var.jade
@@ -0,0 +1,12 @@
+
+.l-main-section
+ h2 Injectable variable
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 73)
+
+ :markdown
+ Factory for creating InjectableMetadata
.
+
+
+
diff --git a/public/docs/js/latest/api/di/InjectableFactory-interface.jade b/public/docs/js/latest/api/di/InjectableFactory-interface.jade
new file mode 100644
index 0000000000..6e677dbbc7
--- /dev/null
+++ b/public/docs/js/latest/api/di/InjectableFactory-interface.jade
@@ -0,0 +1,9 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 26)
+
+:markdown
+ Factory for creating InjectableMetadata
.
+
+
diff --git a/public/docs/js/latest/api/di/InjectableMetadata-class.jade b/public/docs/js/latest/api/di/InjectableMetadata-class.jade
new file mode 100644
index 0000000000..b94c05ba9c
--- /dev/null
+++ b/public/docs/js/latest/api/di/InjectableMetadata-class.jade
@@ -0,0 +1,35 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/metadata.ts (line 65)
+
+:markdown
+ A marker metadata that marks a class as available to `Injector` for creation. Used by tooling
+ for generating constructor stubs.
+
+ ```
+ class NeedsService {
+ constructor(svc:UsefulService) {}
+ }
+
+ @Injectable
+ class UsefulService {}
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/Injector-class.jade b/public/docs/js/latest/api/di/Injector-class.jade
new file mode 100644
index 0000000000..1a2c86e901
--- /dev/null
+++ b/public/docs/js/latest/api/di/Injector-class.jade
@@ -0,0 +1,229 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/injector.ts (line 370)
+
+:markdown
+ A dependency injection container used for resolving dependencies.
+
+ An `Injector` is a replacement for a `new` operator, which can automatically resolve the
+ constructor dependencies.
+ In typical use, application code asks for the dependencies in the constructor and they are
+ resolved by the `Injector`.
+
+ ## Example:
+
+ Suppose that we want to inject an `Engine` into class `Car`, we would define it like this:
+
+ ```javascript
+ class Engine {
+ }
+
+ class Car {
+ constructor(@Inject(Engine) engine) {
+ }
+ }
+
+ ```
+
+ Next we need to write the code that creates and instantiates the `Injector`. We then ask for the
+ `root` object, `Car`, so that the `Injector` can recursively build all of that object's
+ dependencies.
+
+ ```javascript
+ main() {
+ var injector = Injector.resolveAndCreate([Car, Engine]);
+
+ // Get a reference to the `root` object, which will recursively instantiate the tree.
+ var car = injector.get(Car);
+ }
+ ```
+ Notice that we don't use the `new` operator because we explicitly want to have the `Injector`
+ resolve all of the object's dependencies automatically.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_proto: ProtoInjector, _parent?: Injector, _depProvider?: DependencyProvider, _debugContext?: Function)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 debugContext
+
+
+ pre.prettyprint
+ code.
+ debugContext()
+
+ :markdown
+
+ Returns debug information about the injector.
+
+ This information is included into exceptions thrown by the injector.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 get
+
+
+ pre.prettyprint
+ code.
+ get(token: any)
+
+ :markdown
+
+ Retrieves an instance from the injector.
+
+
+
+
+
+
+ .l-sub-section
+ h3 getOptional
+
+
+ pre.prettyprint
+ code.
+ getOptional(token: any)
+
+ :markdown
+
+ Retrieves an instance from the injector.
+
+
+
+
+
+
+ .l-sub-section
+ h3 getAt
+
+
+ pre.prettyprint
+ code.
+ getAt(index: number)
+
+ :markdown
+
+ Retrieves an instance from the injector.
+
+
+
+
+
+
+ .l-sub-section
+ h3 parent
+
+
+ :markdown
+
+ Direct parent of this injector.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 internalStrategy
+
+
+ :markdown
+
+ Internal. Do not use.
+
+ We return `any` not to export the InjectorStrategy type.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 resolveAndCreateChild
+
+
+ pre.prettyprint
+ code.
+ resolveAndCreateChild(bindings: List<Type | Binding | List<any>>, depProvider?: DependencyProvider)
+
+ :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 list of ResolvedBinding
s. The resolution can be cached by `resolve`
+ for the Injector
for performance-sensitive code.
+
+
+
+
+
+
+ .l-sub-section
+ h3 createChildFromResolved
+
+
+ pre.prettyprint
+ code.
+ createChildFromResolved(bindings: List<ResolvedBinding>, depProvider?: DependencyProvider)
+
+ :markdown
+
+ Creates a child injector and loads a new set of ResolvedBinding
s into it.
+
+
+
+
+
+
+ .l-sub-section
+ h3 displayName
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/InstantiationError-class.jade b/public/docs/js/latest/api/di/InstantiationError-class.jade
new file mode 100644
index 0000000000..26cc28b180
--- /dev/null
+++ b/public/docs/js/latest/api/di/InstantiationError-class.jade
@@ -0,0 +1,41 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/exceptions.ts (line 95)
+
+:markdown
+ Thrown when a constructing type returns with an Error.
+
+ The `InstantiationError` class contains the original error plus the dependency graph which caused
+ this object to be instantiated.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(injector: Injector, originalException: any, originalStack: any, key: Key)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 causeKey
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/InvalidBindingError-class.jade b/public/docs/js/latest/api/di/InvalidBindingError-class.jade
new file mode 100644
index 0000000000..3245cc2f6c
--- /dev/null
+++ b/public/docs/js/latest/api/di/InvalidBindingError-class.jade
@@ -0,0 +1,56 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/exceptions.ts (line 115)
+
+:markdown
+ Thrown when an object other then Binding
(or `Type`) is passed to Injector
+ creation.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(binding: any)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 message
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/Key-class.jade b/public/docs/js/latest/api/di/Key-class.jade
new file mode 100644
index 0000000000..3567881d11
--- /dev/null
+++ b/public/docs/js/latest/api/di/Key-class.jade
@@ -0,0 +1,70 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/key.ts (line 6)
+
+:markdown
+ A unique object used for retrieving items from the Injector
.
+
+ Keys have:
+ - a system-wide unique `id`.
+ - a `token`, usually the `Type` of the instance.
+
+ Keys are used internally by the Injector
because their system-wide unique `id`s allow the
+ injector to index in arrays rather than looking up items in maps.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(token: Object, id: number)
+
+ :markdown
+
+
+
+
+
+ .l-sub-section
+ h3 token
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 id
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 displayName
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/KeyRegistry-class.jade b/public/docs/js/latest/api/di/KeyRegistry-class.jade
new file mode 100644
index 0000000000..121903cf56
--- /dev/null
+++ b/public/docs/js/latest/api/di/KeyRegistry-class.jade
@@ -0,0 +1,38 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/key.ts (line 39)
+
+:markdown
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 get
+
+
+ pre.prettyprint
+ code.
+ get(token: Object)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 numberOfKeys
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/NoAnnotationError-class.jade b/public/docs/js/latest/api/di/NoAnnotationError-class.jade
new file mode 100644
index 0000000000..77dde8d0f1
--- /dev/null
+++ b/public/docs/js/latest/api/di/NoAnnotationError-class.jade
@@ -0,0 +1,71 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/exceptions.ts (line 130)
+
+:markdown
+ Thrown when the class has no annotation information.
+
+ Lack of annotation information prevents the Injector
from determining which dependencies
+ need to be injected into the constructor.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(typeOrFunc: any, params: List<List<any>>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 name
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 message
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/NoBindingError-class.jade b/public/docs/js/latest/api/di/NoBindingError-class.jade
new file mode 100644
index 0000000000..0a446403b3
--- /dev/null
+++ b/public/docs/js/latest/api/di/NoBindingError-class.jade
@@ -0,0 +1,26 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/exceptions.ts (line 58)
+
+:markdown
+ Thrown when trying to retrieve a dependency by `Key` from Injector
, but the
+ Injector
does not have a Binding
for Key
.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(injector: Injector, key: Key)
+
+ :markdown
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/OpaqueToken-class.jade b/public/docs/js/latest/api/di/OpaqueToken-class.jade
new file mode 100644
index 0000000000..b007cd1a42
--- /dev/null
+++ b/public/docs/js/latest/api/di/OpaqueToken-class.jade
@@ -0,0 +1,41 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/opaque_token.ts (line 1)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(desc: string)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/Optional-var.jade b/public/docs/js/latest/api/di/Optional-var.jade
new file mode 100644
index 0000000000..d1c5c92141
--- /dev/null
+++ b/public/docs/js/latest/api/di/Optional-var.jade
@@ -0,0 +1,12 @@
+
+.l-main-section
+ h2 Optional variable
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 68)
+
+ :markdown
+ Factory for creating OptionalMetadata
.
+
+
+
diff --git a/public/docs/js/latest/api/di/OptionalFactory-interface.jade b/public/docs/js/latest/api/di/OptionalFactory-interface.jade
new file mode 100644
index 0000000000..5f6e93b3cd
--- /dev/null
+++ b/public/docs/js/latest/api/di/OptionalFactory-interface.jade
@@ -0,0 +1,9 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 18)
+
+:markdown
+ Factory for creating OptionalMetadata
.
+
+
diff --git a/public/docs/js/latest/api/di/OptionalMetadata-class.jade b/public/docs/js/latest/api/di/OptionalMetadata-class.jade
new file mode 100644
index 0000000000..7d8f39be56
--- /dev/null
+++ b/public/docs/js/latest/api/di/OptionalMetadata-class.jade
@@ -0,0 +1,36 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/metadata.ts (line 17)
+
+:markdown
+ A parameter metadata that marks a dependency as optional. Injector
provides `null` if
+ the dependency is not found.
+
+ ```
+ class AComponent {
+ constructor(@Optional() aService:MyService) {
+ this.aService = aService;
+ }
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/OutOfBoundsError-class.jade b/public/docs/js/latest/api/di/OutOfBoundsError-class.jade
new file mode 100644
index 0000000000..79361fe76a
--- /dev/null
+++ b/public/docs/js/latest/api/di/OutOfBoundsError-class.jade
@@ -0,0 +1,55 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/exceptions.ts (line 158)
+
+:markdown
+ Thrown when getting an object by index.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(index: any)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 message
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/PRIVATE-var.jade b/public/docs/js/latest/api/di/PRIVATE-var.jade
new file mode 100644
index 0000000000..7547929a64
--- /dev/null
+++ b/public/docs/js/latest/api/di/PRIVATE-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 PRIVATE variable
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/injector.ts (line 27)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/di/PUBLIC-var.jade b/public/docs/js/latest/api/di/PUBLIC-var.jade
new file mode 100644
index 0000000000..507986c6ba
--- /dev/null
+++ b/public/docs/js/latest/api/di/PUBLIC-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 PUBLIC variable
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/injector.ts (line 26)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/di/PUBLIC_AND_PRIVATE-var.jade b/public/docs/js/latest/api/di/PUBLIC_AND_PRIVATE-var.jade
new file mode 100644
index 0000000000..f7ce19a9e4
--- /dev/null
+++ b/public/docs/js/latest/api/di/PUBLIC_AND_PRIVATE-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 PUBLIC_AND_PRIVATE variable
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/injector.ts (line 28)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/di/ProtoInjector-class.jade b/public/docs/js/latest/api/di/ProtoInjector-class.jade
new file mode 100644
index 0000000000..5ffe82c583
--- /dev/null
+++ b/public/docs/js/latest/api/di/ProtoInjector-class.jade
@@ -0,0 +1,54 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/injector.ts (line 172)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(bwv: BindingWithVisibility[])
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 numberOfBindings
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getBindingAtIndex
+
+
+ pre.prettyprint
+ code.
+ getBindingAtIndex(index: number)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/ResolvedBinding-class.jade b/public/docs/js/latest/api/di/ResolvedBinding-class.jade
new file mode 100644
index 0000000000..1cac70c9b8
--- /dev/null
+++ b/public/docs/js/latest/api/di/ResolvedBinding-class.jade
@@ -0,0 +1,71 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/binding.ts (line 218)
+
+:markdown
+ An internal resolved representation of a Binding
used by the Injector
.
+
+ A Binding
is resolved when it has a factory function. Binding to a class, alias, or
+ value, are just convenience methods, as Injector
only operates on calling factory
+ functions.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(key: Key, factory: Function, dependencies: List<Dependency>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 key
+
+
+ :markdown
+
+ A key, usually a `Type`.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 factory
+
+
+ :markdown
+
+ Factory function which can return an instance of an object represented by a key.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dependencies
+
+
+ :markdown
+
+ Arguments (dependencies) to the `factory` function.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/Self-var.jade b/public/docs/js/latest/api/di/Self-var.jade
new file mode 100644
index 0000000000..eebfb42f6f
--- /dev/null
+++ b/public/docs/js/latest/api/di/Self-var.jade
@@ -0,0 +1,12 @@
+
+.l-main-section
+ h2 Self variable
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 78)
+
+ :markdown
+ Factory for creating SelfMetadata
.
+
+
+
diff --git a/public/docs/js/latest/api/di/SelfFactory-interface.jade b/public/docs/js/latest/api/di/SelfFactory-interface.jade
new file mode 100644
index 0000000000..39831ea190
--- /dev/null
+++ b/public/docs/js/latest/api/di/SelfFactory-interface.jade
@@ -0,0 +1,9 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 34)
+
+:markdown
+ Factory for creating SelfMetadata
.
+
+
diff --git a/public/docs/js/latest/api/di/SelfMetadata-class.jade b/public/docs/js/latest/api/di/SelfMetadata-class.jade
new file mode 100644
index 0000000000..b9309318fd
--- /dev/null
+++ b/public/docs/js/latest/api/di/SelfMetadata-class.jade
@@ -0,0 +1,57 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/metadata.ts (line 99)
+
+:markdown
+ Specifies that an injector should retrieve a dependency from itself.
+
+ ## Example
+
+ ```
+ class Dependency {
+ }
+
+ class NeedsDependency {
+ constructor(public @Self() dependency:Dependency) {}
+ }
+
+ var inj = Injector.resolveAndCreate([Dependency, NeedsDependency]);
+ var nd = inj.get(NeedsDependency);
+ expect(nd.dependency).toBeAnInstanceOf(Dependency);
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/TypeLiteral-class.jade b/public/docs/js/latest/api/di/TypeLiteral-class.jade
new file mode 100644
index 0000000000..77a25bdcee
--- /dev/null
+++ b/public/docs/js/latest/api/di/TypeLiteral-class.jade
@@ -0,0 +1,24 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/type_literal.ts (line 1)
+
+:markdown
+ Type literals is a Dart-only feature. This is here only so we can x-compile
+ to multiple languages.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 type
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/Unbounded-var.jade b/public/docs/js/latest/api/di/Unbounded-var.jade
new file mode 100644
index 0000000000..7d29e1a594
--- /dev/null
+++ b/public/docs/js/latest/api/di/Unbounded-var.jade
@@ -0,0 +1,12 @@
+
+.l-main-section
+ h2 Unbounded variable
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 88)
+
+ :markdown
+ Factory for creating UnboundedMetadata
.
+
+
+
diff --git a/public/docs/js/latest/api/di/UnboundedFactory-interface.jade b/public/docs/js/latest/api/di/UnboundedFactory-interface.jade
new file mode 100644
index 0000000000..d30399857a
--- /dev/null
+++ b/public/docs/js/latest/api/di/UnboundedFactory-interface.jade
@@ -0,0 +1,9 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 50)
+
+:markdown
+ Factory for creating UnboundedMetadata
.
+
+
diff --git a/public/docs/js/latest/api/di/UnboundedMetadata-class.jade b/public/docs/js/latest/api/di/UnboundedMetadata-class.jade
new file mode 100644
index 0000000000..676ea91005
--- /dev/null
+++ b/public/docs/js/latest/api/di/UnboundedMetadata-class.jade
@@ -0,0 +1,70 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/metadata.ts (line 160)
+
+:markdown
+ Specifies that an injector should retrieve a dependency from any ancestor, crossing boundaries.
+
+ ## Example
+
+ ```
+ class Dependency {
+ }
+
+ class NeedsDependency {
+ constructor(public @Ancestor() dependency:Dependency) {}
+ }
+
+ var parent = Injector.resolveAndCreate([
+ bind(Dependency).toClass(AncestorDependency)
+ ]);
+ var child = parent.resolveAndCreateChild([]);
+ var grandChild = child.resolveAndCreateChild([NeedsDependency, Depedency]);
+ var nd = grandChild.get(NeedsDependency);
+ expect(nd.dependency).toBeAnInstanceOf(AncestorDependency);
+ ```
+
+ You can make an injector to retrive a dependency either from itself or its ancestor by setting
+ self to true.
+
+ ```
+ class NeedsDependency {
+ constructor(public @Ancestor({self:true}) dependency:Dependency) {}
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({self}?: {self?: boolean})
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/VisibilityMetadata-class.jade b/public/docs/js/latest/api/di/VisibilityMetadata-class.jade
new file mode 100644
index 0000000000..a64e465a92
--- /dev/null
+++ b/public/docs/js/latest/api/di/VisibilityMetadata-class.jade
@@ -0,0 +1,70 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/metadata.ts (line 83)
+
+:markdown
+ Specifies how injector should resolve a dependency.
+
+ See Self
, Ancestor
, Unbounded
.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(crossBoundaries: boolean, _includeSelf: boolean)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 crossBoundaries
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 includeSelf
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/_data.json b/public/docs/js/latest/api/di/_data.json
new file mode 100644
index 0000000000..0d23762623
--- /dev/null
+++ b/public/docs/js/latest/api/di/_data.json
@@ -0,0 +1,198 @@
+{
+ "index" : {
+ "title" : "Di",
+ "intro" : "The `di` module provides dependency injection container services."
+ },
+
+ "InjectMetadata-class" : {
+ "title" : "InjectMetadata Class"
+ },
+
+ "OptionalMetadata-class" : {
+ "title" : "OptionalMetadata Class"
+ },
+
+ "InjectableMetadata-class" : {
+ "title" : "InjectableMetadata Class"
+ },
+
+ "VisibilityMetadata-class" : {
+ "title" : "VisibilityMetadata Class"
+ },
+
+ "SelfMetadata-class" : {
+ "title" : "SelfMetadata Class"
+ },
+
+ "AncestorMetadata-class" : {
+ "title" : "AncestorMetadata Class"
+ },
+
+ "UnboundedMetadata-class" : {
+ "title" : "UnboundedMetadata Class"
+ },
+
+ "DependencyMetadata-class" : {
+ "title" : "DependencyMetadata Class"
+ },
+
+ "DEFAULT_VISIBILITY-var" : {
+ "title" : "DEFAULT_VISIBILITY Var"
+ },
+
+ "forwardRef-function" : {
+ "title" : "forwardRef Function"
+ },
+
+ "resolveForwardRef-function" : {
+ "title" : "resolveForwardRef Function"
+ },
+
+ "ForwardRefFn-interface" : {
+ "title" : "ForwardRefFn Interface"
+ },
+
+ "Injector-class" : {
+ "title" : "Injector Class"
+ },
+
+ "ProtoInjector-class" : {
+ "title" : "ProtoInjector Class"
+ },
+
+ "BindingWithVisibility-class" : {
+ "title" : "BindingWithVisibility Class"
+ },
+
+ "DependencyProvider-interface" : {
+ "title" : "DependencyProvider Interface"
+ },
+
+ "PUBLIC_AND_PRIVATE-var" : {
+ "title" : "PUBLIC_AND_PRIVATE Var"
+ },
+
+ "PUBLIC-var" : {
+ "title" : "PUBLIC Var"
+ },
+
+ "PRIVATE-var" : {
+ "title" : "PRIVATE Var"
+ },
+
+ "undefinedValue-var" : {
+ "title" : "undefinedValue Var"
+ },
+
+ "Binding-class" : {
+ "title" : "Binding Class"
+ },
+
+ "BindingBuilder-class" : {
+ "title" : "BindingBuilder Class"
+ },
+
+ "ResolvedBinding-class" : {
+ "title" : "ResolvedBinding Class"
+ },
+
+ "Dependency-class" : {
+ "title" : "Dependency Class"
+ },
+
+ "bind-function" : {
+ "title" : "bind Function"
+ },
+
+ "Key-class" : {
+ "title" : "Key Class"
+ },
+
+ "KeyRegistry-class" : {
+ "title" : "KeyRegistry Class"
+ },
+
+ "TypeLiteral-class" : {
+ "title" : "TypeLiteral Class"
+ },
+
+ "NoBindingError-class" : {
+ "title" : "NoBindingError Class"
+ },
+
+ "AbstractBindingError-class" : {
+ "title" : "AbstractBindingError Class"
+ },
+
+ "CyclicDependencyError-class" : {
+ "title" : "CyclicDependencyError Class"
+ },
+
+ "InstantiationError-class" : {
+ "title" : "InstantiationError Class"
+ },
+
+ "InvalidBindingError-class" : {
+ "title" : "InvalidBindingError Class"
+ },
+
+ "NoAnnotationError-class" : {
+ "title" : "NoAnnotationError Class"
+ },
+
+ "OutOfBoundsError-class" : {
+ "title" : "OutOfBoundsError Class"
+ },
+
+ "OpaqueToken-class" : {
+ "title" : "OpaqueToken Class"
+ },
+
+ "InjectFactory-interface" : {
+ "title" : "InjectFactory Interface"
+ },
+
+ "OptionalFactory-interface" : {
+ "title" : "OptionalFactory Interface"
+ },
+
+ "InjectableFactory-interface" : {
+ "title" : "InjectableFactory Interface"
+ },
+
+ "SelfFactory-interface" : {
+ "title" : "SelfFactory Interface"
+ },
+
+ "AncestorFactory-interface" : {
+ "title" : "AncestorFactory Interface"
+ },
+
+ "UnboundedFactory-interface" : {
+ "title" : "UnboundedFactory Interface"
+ },
+
+ "Inject-var" : {
+ "title" : "Inject Var"
+ },
+
+ "Optional-var" : {
+ "title" : "Optional Var"
+ },
+
+ "Injectable-var" : {
+ "title" : "Injectable Var"
+ },
+
+ "Self-var" : {
+ "title" : "Self Var"
+ },
+
+ "Ancestor-var" : {
+ "title" : "Ancestor Var"
+ },
+
+ "Unbounded-var" : {
+ "title" : "Unbounded Var"
+ }
+}
\ No newline at end of file
diff --git a/public/docs/js/latest/api/di/bind-function.jade b/public/docs/js/latest/api/di/bind-function.jade
new file mode 100644
index 0000000000..5ece52339d
--- /dev/null
+++ b/public/docs/js/latest/api/di/bind-function.jade
@@ -0,0 +1,29 @@
+
+.l-main-section
+ h2(class="function export") bind
+
+
+ pre.prettyprint
+ code.
+ bind(token: any) : BindingBuilder
+
+
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/binding.ts (line 243)
+
+ :markdown
+ Provides an API for imperatively constructing Binding
s.
+
+ This is only relevant for JavaScript. See BindingBuilder
.
+
+ ## Example
+
+ ```javascript
+ bind(MyInterface).toClass(MyClass)
+
+ ```
+
+
+
+
diff --git a/public/docs/js/latest/api/di/forwardRef-function.jade b/public/docs/js/latest/api/di/forwardRef-function.jade
new file mode 100644
index 0000000000..ad6e988572
--- /dev/null
+++ b/public/docs/js/latest/api/di/forwardRef-function.jade
@@ -0,0 +1,41 @@
+
+.l-main-section
+ h2(class="function export") forwardRef
+
+
+ pre.prettyprint
+ code.
+ forwardRef(forwardRefFn: ForwardRefFn) : Type
+
+
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/forward_ref.ts (line 3)
+
+ :markdown
+ Allows to refer to references which are not yet defined.
+
+ This situation arises when the key which we need te refer to for the purposes of DI is declared,
+ but not yet defined.
+
+ ## Example:
+
+ ```
+ class Door {
+ // Incorrect way to refer to a reference which is defined later.
+ // This fails because `Lock` is undefined at this point.
+ constructor(lock:Lock) { }
+
+ // Correct way to refer to a reference which is defined later.
+ // The reference needs to be captured in a closure.
+ constructor(@Inject(forwardRef(() => Lock)) lock:Lock) { }
+ }
+
+ // Only at this point the lock is defined.
+ class Lock {
+ }
+ ```
+
+
+
+
diff --git a/public/docs/js/latest/api/di/index.jade b/public/docs/js/latest/api/di/index.jade
new file mode 100644
index 0000000000..5acf993eeb
--- /dev/null
+++ b/public/docs/js/latest/api/di/index.jade
@@ -0,0 +1,11 @@
+p.location-badge.
+ defined in angular2/di.ts (line 1)
+
+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/di/resolveForwardRef-function.jade b/public/docs/js/latest/api/di/resolveForwardRef-function.jade
new file mode 100644
index 0000000000..35373a0a88
--- /dev/null
+++ b/public/docs/js/latest/api/di/resolveForwardRef-function.jade
@@ -0,0 +1,22 @@
+
+.l-main-section
+ h2(class="function export") resolveForwardRef
+
+
+ pre.prettyprint
+ code.
+ resolveForwardRef(type: any) : any
+
+
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/forward_ref.ts (line 33)
+
+ :markdown
+ Lazily retrieve the reference value.
+
+ See: forwardRef
+
+
+
+
diff --git a/public/docs/js/latest/api/di/undefinedValue-var.jade b/public/docs/js/latest/api/di/undefinedValue-var.jade
new file mode 100644
index 0000000000..d2135800ea
--- /dev/null
+++ b/public/docs/js/latest/api/di/undefinedValue-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 undefinedValue variable
+ p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/injector.ts (line 24)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/directives/CSSClass-class.jade b/public/docs/js/latest/api/directives/CSSClass-class.jade
new file mode 100644
index 0000000000..784623ad66
--- /dev/null
+++ b/public/docs/js/latest/api/directives/CSSClass-class.jade
@@ -0,0 +1,72 @@
+
+p.location-badge.
+ exported from angular2/directives
+ defined in angular2/src/directives/class.ts (line 9)
+
+:markdown
+ Adds and removes CSS classes based on an {expression} value.
+
+ The result of expression is used to add and remove CSS classes using the following logic,
+ based on expression's value type:
+ - {string} - all the CSS classes (space - separated) are added
+ - {Array} - all the CSS classes (Array elements) are added
+ - {Object} - each key corresponds to a CSS class name while values
+ are interpreted as {boolean} expression. If a given expression
+ evaluates to {true} a corresponding CSS class is added - otherwise
+ it is removed.
+
+ # Example:
+
+ ```
+ 0}">
+ Please check errors.
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_pipes: Pipes, _ngEl: ElementRef, _renderer: Renderer)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 rawClass
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onCheck
+
+
+ pre.prettyprint
+ code.
+ onCheck()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/directives/NgFor-class.jade b/public/docs/js/latest/api/directives/NgFor-class.jade
new file mode 100644
index 0000000000..5f1e1da104
--- /dev/null
+++ b/public/docs/js/latest/api/directives/NgFor-class.jade
@@ -0,0 +1,134 @@
+
+p.location-badge.
+ exported from angular2/directives
+ defined in angular2/src/directives/ng_for.ts (line 4)
+
+:markdown
+ The `NgFor` directive instantiates a template once per item from an iterable. The context for
+ each instantiated template inherits from the outer context with the given loop variable set
+ to the current item from the iterable.
+
+ It is possible to alias the `index` to a local variable that will be set to the current loop
+ iteration in the template context.
+
+ When the contents of the iterator changes, `NgFor` makes the corresponding changes to the DOM:
+
+ * When an item is added, a new instance of the template is added to the DOM.
+ * When an item is removed, its template instance is removed from the DOM.
+ * When items are reordered, their respective templates are reordered in the DOM.
+
+ # Example
+
+ ```
+
+
+ Error {{i}} of {{errors.length}}: {{error.message}}
+
+
+ ```
+
+ # Syntax
+
+ - `... `
+ - `... `
+ - `... `
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef, pipes: Pipes, cdr: ChangeDetectorRef)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 viewContainer
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 templateRef
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 pipes
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 cdr
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngForOf
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onCheck
+
+
+ pre.prettyprint
+ code.
+ onCheck()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/directives/NgIf-class.jade b/public/docs/js/latest/api/directives/NgIf-class.jade
new file mode 100644
index 0000000000..ed41e5e14e
--- /dev/null
+++ b/public/docs/js/latest/api/directives/NgIf-class.jade
@@ -0,0 +1,96 @@
+
+p.location-badge.
+ exported from angular2/directives
+ defined in angular2/src/directives/ng_if.ts (line 3)
+
+:markdown
+ Removes or recreates a portion of the DOM tree based on an {expression}.
+
+ If the expression assigned to `ng-if` evaluates to a false value then the element
+ is removed from the DOM, otherwise a clone of the element is reinserted into the DOM.
+
+ # Example:
+
+ ```
+ 0" class="error">
+
+ {{errorCount}} errors detected
+
+ ```
+
+ # Syntax
+
+ - `...
`
+ - `...
`
+ - `...
`
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 viewContainer
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 templateRef
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 prevCondition
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngIf
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/directives/NgNonBindable-class.jade b/public/docs/js/latest/api/directives/NgNonBindable-class.jade
new file mode 100644
index 0000000000..ac54d0baa0
--- /dev/null
+++ b/public/docs/js/latest/api/directives/NgNonBindable-class.jade
@@ -0,0 +1,19 @@
+
+p.location-badge.
+ exported from angular2/directives
+ defined in angular2/src/directives/ng_non_bindable.ts (line 1)
+
+:markdown
+ The `NgNonBindable` directive tells Angular not to compile or bind the contents of the current
+ DOM element. This is useful if the element contains what appears to be Angular directives and
+ bindings but which should be ignored by Angular. This could be the case if you have a site that
+ displays snippets of code, for instance.
+
+ Example:
+
+ ```
+ Normal: {{1 + 2}}
// output "Normal: 3"
+ Ignored: {{1 + 2}}
// output "Ignored: {{1 + 2}}"
+ ```
+
+
diff --git a/public/docs/js/latest/api/directives/NgStyle-class.jade b/public/docs/js/latest/api/directives/NgStyle-class.jade
new file mode 100644
index 0000000000..5291ec4b31
--- /dev/null
+++ b/public/docs/js/latest/api/directives/NgStyle-class.jade
@@ -0,0 +1,73 @@
+
+p.location-badge.
+ exported from angular2/directives
+ defined in angular2/src/directives/ng_style.ts (line 7)
+
+:markdown
+ Adds or removes styles based on an {expression}.
+
+ When the expression assigned to `ng-style` evaluates to an object, the corresponding element
+ styles are updated. Style names to update are taken from the object keys and values - from the
+ corresponding object values.
+
+ # Example:
+
+ ```
+
+ ```
+
+ In the above example the `text-align` style will be updated based on the `alignEpr` value
+ changes.
+
+ # Syntax
+
+ - `
`
+ - `
`
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_pipes: Pipes, _ngEl: ElementRef, _renderer: Renderer)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 rawStyle
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onCheck
+
+
+ pre.prettyprint
+ code.
+ onCheck()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/directives/NgSwitch-class.jade b/public/docs/js/latest/api/directives/NgSwitch-class.jade
new file mode 100644
index 0000000000..5bf96497f3
--- /dev/null
+++ b/public/docs/js/latest/api/directives/NgSwitch-class.jade
@@ -0,0 +1,60 @@
+
+p.location-badge.
+ exported from angular2/directives
+ defined in angular2/src/directives/ng_switch.ts (line 19)
+
+:markdown
+ The `NgSwitch` directive is used to conditionally swap DOM structure on your template based on a
+ scope expression.
+ Elements within `NgSwitch` but without `NgSwitchWhen` or `NgSwitchDefault` directives will be
+ preserved at the location as specified in the template.
+
+ `NgSwitch` simply chooses nested elements and makes them visible based on which element matches
+ the value obtained from the evaluated expression. In other words, you define a container element
+ (where you place the directive), place an expression on the **`[ng-switch]="..."` attribute**),
+ define any inner elements inside of the directive and place a `[ng-switch-when]` attribute per
+ element.
+ The when attribute is used to inform NgSwitch which element to display when the expression is
+ evaluated. If a matching expression is not found via a when attribute then an element with the
+ default attribute is displayed.
+
+ # Example:
+
+ ```
+
+ ...
+ ...
+ ...
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngSwitch
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/directives/NgSwitchDefault-class.jade b/public/docs/js/latest/api/directives/NgSwitchDefault-class.jade
new file mode 100644
index 0000000000..3c0ab3c75b
--- /dev/null
+++ b/public/docs/js/latest/api/directives/NgSwitchDefault-class.jade
@@ -0,0 +1,33 @@
+
+p.location-badge.
+ exported from angular2/directives
+ defined in angular2/src/directives/ng_switch.ts (line 173)
+
+:markdown
+ Defines a default case statement.
+
+ Default case statements are displayed when no `NgSwitchWhen` match the `ng-switch` value.
+
+ Example:
+
+ ```
+ ...
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef, sswitch: NgSwitch)
+
+ :markdown
+
+
+
+
+
diff --git a/public/docs/js/latest/api/directives/NgSwitchWhen-class.jade b/public/docs/js/latest/api/directives/NgSwitchWhen-class.jade
new file mode 100644
index 0000000000..2109031e19
--- /dev/null
+++ b/public/docs/js/latest/api/directives/NgSwitchWhen-class.jade
@@ -0,0 +1,67 @@
+
+p.location-badge.
+ exported from angular2/directives
+ defined in angular2/src/directives/ng_switch.ts (line 135)
+
+:markdown
+ Defines a case statement as an expression.
+
+ If multiple `NgSwitchWhen` match the `NgSwitch` value, all of them are displayed.
+
+ Example:
+
+ ```
+ // match against a context variable
+ ...
+
+ // match against a constant string
+ ...
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef, sswitch: NgSwitch)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngSwitchWhen
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/directives/RecordViewTuple-class.jade b/public/docs/js/latest/api/directives/RecordViewTuple-class.jade
new file mode 100644
index 0000000000..a511a246f9
--- /dev/null
+++ b/public/docs/js/latest/api/directives/RecordViewTuple-class.jade
@@ -0,0 +1,50 @@
+
+p.location-badge.
+ exported from angular2/directives
+ defined in angular2/src/directives/ng_for.ts (line 117)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(record: any, view: any)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 view
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 record
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/directives/SwitchView-class.jade b/public/docs/js/latest/api/directives/SwitchView-class.jade
new file mode 100644
index 0000000000..b0f09f6077
--- /dev/null
+++ b/public/docs/js/latest/api/directives/SwitchView-class.jade
@@ -0,0 +1,58 @@
+
+p.location-badge.
+ exported from angular2/directives
+ defined in angular2/src/directives/ng_switch.ts (line 5)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(viewContainerRef: ViewContainerRef, templateRef: TemplateRef)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 create
+
+
+ pre.prettyprint
+ code.
+ create()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 destroy
+
+
+ pre.prettyprint
+ code.
+ destroy()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/directives/_data.json b/public/docs/js/latest/api/directives/_data.json
new file mode 100644
index 0000000000..c76a8edb89
--- /dev/null
+++ b/public/docs/js/latest/api/directives/_data.json
@@ -0,0 +1,50 @@
+{
+ "index" : {
+ "title" : "Directives",
+ "intro" : "Common directives shipped with Angular."
+ },
+
+ "coreDirectives-var" : {
+ "title" : "coreDirectives Var"
+ },
+
+ "CSSClass-class" : {
+ "title" : "CSSClass Class"
+ },
+
+ "NgFor-class" : {
+ "title" : "NgFor Class"
+ },
+
+ "RecordViewTuple-class" : {
+ "title" : "RecordViewTuple Class"
+ },
+
+ "NgIf-class" : {
+ "title" : "NgIf Class"
+ },
+
+ "NgNonBindable-class" : {
+ "title" : "NgNonBindable Class"
+ },
+
+ "NgStyle-class" : {
+ "title" : "NgStyle Class"
+ },
+
+ "SwitchView-class" : {
+ "title" : "SwitchView Class"
+ },
+
+ "NgSwitch-class" : {
+ "title" : "NgSwitch Class"
+ },
+
+ "NgSwitchWhen-class" : {
+ "title" : "NgSwitchWhen Class"
+ },
+
+ "NgSwitchDefault-class" : {
+ "title" : "NgSwitchDefault Class"
+ }
+}
\ No newline at end of file
diff --git a/public/docs/js/latest/api/directives/coreDirectives-var.jade b/public/docs/js/latest/api/directives/coreDirectives-var.jade
new file mode 100644
index 0000000000..cb5d55c7e4
--- /dev/null
+++ b/public/docs/js/latest/api/directives/coreDirectives-var.jade
@@ -0,0 +1,50 @@
+
+.l-main-section
+ h2 coreDirectives variable
+ p.location-badge.
+ exported from angular2/directives
+ defined in angular2/directives.ts (line 62)
+
+ :markdown
+ A collection of the Angular core directives that are likely to be used in each and every Angular
+ application.
+
+ This collection can be used to quickly enumerate all the built-in directives in the `@View`
+ annotation. For example,
+ instead of writing:
+
+ ```
+ import {If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/angular2';
+ import {OtherDirective} from 'myDirectives';
+
+ @Component({
+ selector: 'my-component'
+ })
+ @View({
+ templateUrl: 'myComponent.html',
+ directives: [If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective]
+ })
+ export class MyComponent {
+ ...
+ }
+ ```
+ one could enumerate all the core directives at once:
+
+ ```
+ import {coreDirectives} from 'angular2/angular2';
+ import {OtherDirective} from 'myDirectives';
+
+ @Component({
+ selector: 'my-component'
+ })
+ @View({
+ templateUrl: 'myComponent.html',
+ directives: [coreDirectives, OtherDirective]
+ })
+ export class MyComponent {
+ ...
+ }
+ ```
+
+
+
diff --git a/public/docs/js/latest/api/directives/index.jade b/public/docs/js/latest/api/directives/index.jade
new file mode 100644
index 0000000000..25dd930923
--- /dev/null
+++ b/public/docs/js/latest/api/directives/index.jade
@@ -0,0 +1,11 @@
+p.location-badge.
+ defined in angular2/directives.ts (line 1)
+
+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/forms/AbstractControl-class.jade b/public/docs/js/latest/api/forms/AbstractControl-class.jade
new file mode 100644
index 0000000000..7d1d8f0591
--- /dev/null
+++ b/public/docs/js/latest/api/forms/AbstractControl-class.jade
@@ -0,0 +1,291 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/model.ts (line 37)
+
+:markdown
+ Omitting from external API doc as this is really an abstract internal concept.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(validator: Function)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 validator
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 value
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 status
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 valid
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 errors
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 pristine
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dirty
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 touched
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 untouched
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 valueChanges
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 markAsTouched
+
+
+ pre.prettyprint
+ code.
+ markAsTouched()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 markAsDirty
+
+
+ pre.prettyprint
+ code.
+ markAsDirty({onlySelf}?: {onlySelf?: boolean})
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 setParent
+
+
+ pre.prettyprint
+ code.
+ setParent(parent: ControlGroup | ControlArray)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 updateValidity
+
+
+ pre.prettyprint
+ code.
+ updateValidity({onlySelf}?: {onlySelf?: boolean})
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 updateValueAndValidity
+
+
+ pre.prettyprint
+ code.
+ updateValueAndValidity({onlySelf, emitEvent}?: {onlySelf?: boolean, emitEvent?: boolean})
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 find
+
+
+ pre.prettyprint
+ code.
+ find(path: List<string | number>| string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getError
+
+
+ pre.prettyprint
+ code.
+ getError(errorCode: string, path?: List<string>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 hasError
+
+
+ pre.prettyprint
+ code.
+ hasError(errorCode: string, path?: List<string>)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/AbstractControlDirective-class.jade b/public/docs/js/latest/api/forms/AbstractControlDirective-class.jade
new file mode 100644
index 0000000000..2331b6f2d4
--- /dev/null
+++ b/public/docs/js/latest/api/forms/AbstractControlDirective-class.jade
@@ -0,0 +1,113 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/abstract_control_directive.ts (line 1)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 control
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 value
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 valid
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 errors
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 pristine
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dirty
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 touched
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 untouched
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade b/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade
new file mode 100644
index 0000000000..cec3b2993e
--- /dev/null
+++ b/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade
@@ -0,0 +1,224 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/checkbox_value_accessor.ts (line 8)
+
+:markdown
+ The accessor for writing a value and listening to changes on a checkbox input element.
+
+ # Example
+ ```
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(cd: NgControl, renderer: Renderer, elementRef: ElementRef)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 onChange
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onTouched
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 cd
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 renderer
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 elementRef
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 writeValue
+
+
+ pre.prettyprint
+ code.
+ writeValue(value: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassUntouched
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassTouched
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassPristine
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassDirty
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassValid
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassInvalid
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 registerOnChange
+
+
+ pre.prettyprint
+ code.
+ registerOnChange(fn: (_) => {})
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 registerOnTouched
+
+
+ pre.prettyprint
+ code.
+ registerOnTouched(fn: () => {})
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/Control-class.jade b/public/docs/js/latest/api/forms/Control-class.jade
new file mode 100644
index 0000000000..50941a6146
--- /dev/null
+++ b/public/docs/js/latest/api/forms/Control-class.jade
@@ -0,0 +1,64 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/model.ts (line 135)
+
+:markdown
+ Defines a part of a form that cannot be divided into other controls.
+
+ `Control` is one of the three fundamental building blocks used to define forms in Angular, along
+ with
+ ControlGroup
and ControlArray
.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(value?: any, validator?: Function)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 updateValue
+
+
+ pre.prettyprint
+ code.
+ updateValue(value: any, {onlySelf, emitEvent, emitModelToViewChange}?:
+ {onlySelf?: boolean, emitEvent?: boolean, emitModelToViewChange?: boolean})
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 registerOnChange
+
+
+ pre.prettyprint
+ code.
+ registerOnChange(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/ControlArray-class.jade b/public/docs/js/latest/api/forms/ControlArray-class.jade
new file mode 100644
index 0000000000..48117131d6
--- /dev/null
+++ b/public/docs/js/latest/api/forms/ControlArray-class.jade
@@ -0,0 +1,129 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/model.ts (line 249)
+
+:markdown
+ Defines a part of a form, of variable length, that can contain other controls.
+
+ A `ControlArray` aggregates the values and errors of each Control
in the group. Thus, if
+ one of the controls
+ in a group is invalid, the entire group is invalid. Similarly, if a control changes its value,
+ the entire group
+ changes as well.
+
+ `ControlArray` is one of the three fundamental building blocks used to define forms in Angular,
+ along with Control
and ControlGroup
. ControlGroup
can also contain
+ other controls, but is of fixed length.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(controls: List<AbstractControl>, validator?: Function)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 controls
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 at
+
+
+ pre.prettyprint
+ code.
+ at(index: number)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 push
+
+
+ pre.prettyprint
+ code.
+ push(control: AbstractControl)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 insert
+
+
+ pre.prettyprint
+ code.
+ insert(index: number, control: AbstractControl)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 removeAt
+
+
+ pre.prettyprint
+ code.
+ removeAt(index: number)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 length
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/ControlContainer-class.jade b/public/docs/js/latest/api/forms/ControlContainer-class.jade
new file mode 100644
index 0000000000..ce39fdf5c4
--- /dev/null
+++ b/public/docs/js/latest/api/forms/ControlContainer-class.jade
@@ -0,0 +1,51 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/control_container.ts (line 3)
+
+:markdown
+ A directive that contains a group of [NgControl].
+
+ Only used by the forms module.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 name
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 formDirective
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/ControlGroup-class.jade b/public/docs/js/latest/api/forms/ControlGroup-class.jade
new file mode 100644
index 0000000000..a21e10949f
--- /dev/null
+++ b/public/docs/js/latest/api/forms/ControlGroup-class.jade
@@ -0,0 +1,135 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/model.ts (line 165)
+
+:markdown
+ Defines a part of a form, of fixed length, that can contain other controls.
+
+ A ControlGroup aggregates the values and errors of each Control
in the group. Thus, if
+ one of the controls
+ in a group is invalid, the entire group is invalid. Similarly, if a control changes its value,
+ the entire group
+ changes as well.
+
+ `ControlGroup` is one of the three fundamental building blocks used to define forms in Angular,
+ along with
+ Control
and ControlArray
. ControlArray
can also contain other controls,
+ but is of variable
+ length.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(controls: StringMap<String, AbstractControl>, optionals?: StringMap<String, boolean>, validator?: Function)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 controls
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 addControl
+
+
+ pre.prettyprint
+ code.
+ addControl(name: string, c: AbstractControl)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 removeControl
+
+
+ pre.prettyprint
+ code.
+ removeControl(name: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 include
+
+
+ pre.prettyprint
+ code.
+ include(controlName: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 exclude
+
+
+ pre.prettyprint
+ code.
+ exclude(controlName: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 contains
+
+
+ pre.prettyprint
+ code.
+ contains(controlName: string)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/ControlValueAccessor-interface.jade b/public/docs/js/latest/api/forms/ControlValueAccessor-interface.jade
new file mode 100644
index 0000000000..3c439d5e91
--- /dev/null
+++ b/public/docs/js/latest/api/forms/ControlValueAccessor-interface.jade
@@ -0,0 +1,63 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/control_value_accessor.ts (line 1)
+
+:markdown
+ A bridge between a control and a native element.
+
+ Please see DefaultValueAccessor
for more information.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 writeValue
+
+
+ pre.prettyprint
+ code.
+ writeValue(obj: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 registerOnChange
+
+
+ pre.prettyprint
+ code.
+ registerOnChange(fn: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 registerOnTouched
+
+
+ pre.prettyprint
+ code.
+ registerOnTouched(fn: any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade b/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade
new file mode 100644
index 0000000000..a61ea4d2e6
--- /dev/null
+++ b/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade
@@ -0,0 +1,225 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/default_value_accessor.ts (line 7)
+
+:markdown
+ The default accessor for writing a value and listening to changes that is used by the
+ NgModel
, NgFormControl
, and NgControlName
directives.
+
+ # Example
+ ```
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(cd: NgControl, renderer: Renderer, elementRef: ElementRef)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 onChange
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onTouched
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 cd
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 renderer
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 elementRef
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 writeValue
+
+
+ pre.prettyprint
+ code.
+ writeValue(value: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassUntouched
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassTouched
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassPristine
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassDirty
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassValid
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassInvalid
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 registerOnChange
+
+
+ pre.prettyprint
+ code.
+ registerOnChange(fn: (_) => void)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 registerOnTouched
+
+
+ pre.prettyprint
+ code.
+ registerOnTouched(fn: () => void)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/Form-interface.jade b/public/docs/js/latest/api/forms/Form-interface.jade
new file mode 100644
index 0000000000..7d887db81f
--- /dev/null
+++ b/public/docs/js/latest/api/forms/Form-interface.jade
@@ -0,0 +1,131 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/form_interface.ts (line 3)
+
+:markdown
+ An interface that NgFormModel
and NgForm
implement.
+
+ Only used by the forms module.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 addControl
+
+
+ pre.prettyprint
+ code.
+ addControl(dir: NgControl)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 removeControl
+
+
+ pre.prettyprint
+ code.
+ removeControl(dir: NgControl)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getControl
+
+
+ pre.prettyprint
+ code.
+ getControl(dir: NgControl)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 addControlGroup
+
+
+ pre.prettyprint
+ code.
+ addControlGroup(dir: NgControlGroup)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 removeControlGroup
+
+
+ pre.prettyprint
+ code.
+ removeControlGroup(dir: NgControlGroup)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getControlGroup
+
+
+ pre.prettyprint
+ code.
+ getControlGroup(dir: NgControlGroup)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 updateModel
+
+
+ pre.prettyprint
+ code.
+ updateModel(dir: NgControl, value: any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/FormBuilder-class.jade b/public/docs/js/latest/api/forms/FormBuilder-class.jade
new file mode 100644
index 0000000000..c3ee5371bc
--- /dev/null
+++ b/public/docs/js/latest/api/forms/FormBuilder-class.jade
@@ -0,0 +1,122 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/form_builder.ts (line 3)
+
+:markdown
+ Creates a form object from a user-specified configuration.
+
+ # Example
+
+ ```
+ import {Component, View, bootstrap} from 'angular2/angular2';
+ import {FormBuilder, Validators, formDirectives, ControlGroup} from 'angular2/forms';
+
+ @Component({
+ selector: 'login-comp',
+ viewInjector: [
+ FormBuilder
+ ]
+ })
+ @View({
+ template: `
+
+ `,
+ directives: [
+ formDirectives
+ ]
+ })
+ class LoginComp {
+ loginForm: ControlGroup;
+
+ constructor(builder: FormBuilder) {
+ this.loginForm = builder.group({
+ login: ["", Validators.required],
+
+ passwordRetry: builder.group({
+ password: ["", Validators.required],
+ passwordConfirmation: ["", Validators.required]
+ })
+ });
+ }
+ }
+
+ bootstrap(LoginComp)
+ ```
+
+ This example creates a ControlGroup
that consists of a `login` Control
, and a
+ nested
+ ControlGroup
that defines a `password` and a `passwordConfirmation` Control
:
+
+ ```
+ var loginForm = builder.group({
+ login: ["", Validators.required],
+
+ passwordRetry: builder.group({
+ password: ["", Validators.required],
+ passwordConfirmation: ["", Validators.required]
+ })
+ });
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 group
+
+
+ pre.prettyprint
+ code.
+ group(controlsConfig: StringMap<string, any>, extra?: StringMap<string, any>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 control
+
+
+ pre.prettyprint
+ code.
+ control(value: Object, validator?: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 array
+
+
+ pre.prettyprint
+ code.
+ array(controlsConfig: List<any>, validator?: Function)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/NgControl-class.jade b/public/docs/js/latest/api/forms/NgControl-class.jade
new file mode 100644
index 0000000000..f007922478
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgControl-class.jade
@@ -0,0 +1,81 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/ng_control.ts (line 2)
+
+:markdown
+ An abstract class that all control directive extend.
+
+ It binds a Control
object to a DOM element.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 name
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 valueAccessor
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 validator
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 viewToModelUpdate
+
+
+ pre.prettyprint
+ code.
+ viewToModelUpdate(newValue: any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/NgControlGroup-class.jade b/public/docs/js/latest/api/forms/NgControlGroup-class.jade
new file mode 100644
index 0000000000..4b60cc6f02
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgControlGroup-class.jade
@@ -0,0 +1,132 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/ng_control_group.ts (line 12)
+
+:markdown
+ Creates and binds a control group to a DOM element.
+
+ This directive can only be used as a child of NgForm
or NgFormModel
.
+
+ # Example
+
+ In this example, we create the credentials and personal control groups.
+ We can work with each group separately: check its validity, get its value, listen to its changes.
+
+ ```
+ @Component({selector: "signup-comp"})
+ @View({
+ directives: [formDirectives],
+ template: `
+
+ `})
+ class SignupComp {
+ onSignUp(value) {
+ // value === {personal: {name: 'some name'},
+ // credentials: {login: 'some login', password: 'some password'}}
+ }
+ }
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_parent: ControlContainer)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 onInit
+
+
+ pre.prettyprint
+ code.
+ onInit()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 control
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 formDirective
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/NgControlName-class.jade b/public/docs/js/latest/api/forms/NgControlName-class.jade
new file mode 100644
index 0000000000..0ec3d1ddd9
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgControlName-class.jade
@@ -0,0 +1,233 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/ng_control_name.ts (line 16)
+
+:markdown
+ Creates and binds a control with a specified name to a DOM element.
+
+ This directive can only be used as a child of NgForm
or NgFormModel
.
+
+ # Example
+
+ In this example, we create the login and password controls.
+ We can work with each control separately: check its validity, get its value, listen to its
+ changes.
+
+ ```
+ @Component({selector: "login-comp"})
+ @View({
+ directives: [formDirectives],
+ template: `
+
+ `})
+ class LoginComp {
+ onLogIn(value) {
+ // value === {login: 'some login', password: 'some password'}
+ }
+ }
+ ```
+
+ We can also use ng-model to bind a domain model to the form.
+
+ ```
+ @Component({selector: "login-comp"})
+ @View({
+ directives: [formDirectives],
+ template: `
+
+ `})
+ class LoginComp {
+ credentials: {login:string, password:string};
+
+ onLogIn() {
+ // this.credentials.login === "some login"
+ // this.credentials.password === "some password"
+ }
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(parent: ControlContainer, ngValidators: QueryList<NgValidator>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 update
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 model
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 viewModel
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngValidators
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onChange
+
+
+ pre.prettyprint
+ code.
+ onChange(c: StringMap<string, any>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 viewToModelUpdate
+
+
+ pre.prettyprint
+ code.
+ viewToModelUpdate(newValue: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 formDirective
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 control
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 validator
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/NgForm-class.jade b/public/docs/js/latest/api/forms/NgForm-class.jade
new file mode 100644
index 0000000000..3f0e2a76f5
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgForm-class.jade
@@ -0,0 +1,268 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/ng_form.ts (line 14)
+
+:markdown
+ Creates and binds a form object to a DOM element.
+
+ # Example
+
+ ```
+ @Component({selector: "signup-comp"})
+ @View({
+ directives: [formDirectives],
+ template: `
+
+ `})
+ class SignupComp {
+ onSignUp(value) {
+ // value === {personal: {name: 'some name'},
+ // credentials: {login: 'some login', password: 'some password'}}
+ }
+ }
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 form
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngSubmit
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 formDirective
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 control
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 controls
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 addControl
+
+
+ pre.prettyprint
+ code.
+ addControl(dir: NgControl)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getControl
+
+
+ pre.prettyprint
+ code.
+ getControl(dir: NgControl)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 removeControl
+
+
+ pre.prettyprint
+ code.
+ removeControl(dir: NgControl)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 addControlGroup
+
+
+ pre.prettyprint
+ code.
+ addControlGroup(dir: NgControlGroup)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 removeControlGroup
+
+
+ pre.prettyprint
+ code.
+ removeControlGroup(dir: NgControlGroup)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getControlGroup
+
+
+ pre.prettyprint
+ code.
+ getControlGroup(dir: NgControlGroup)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 updateModel
+
+
+ pre.prettyprint
+ code.
+ updateModel(dir: NgControl, value: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onSubmit
+
+
+ pre.prettyprint
+ code.
+ onSubmit()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/NgFormControl-class.jade b/public/docs/js/latest/api/forms/NgFormControl-class.jade
new file mode 100644
index 0000000000..217b4c3952
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgFormControl-class.jade
@@ -0,0 +1,205 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/ng_form_control.ts (line 14)
+
+:markdown
+ Binds an existing control to a DOM element.
+
+ # Example
+
+ In this example, we bind the control to an input element. When the value of the input element
+ changes, the value of
+ the control will reflect that change. Likewise, if the value of the control changes, the input
+ element reflects that
+ change.
+
+ ```
+ @Component({selector: "login-comp"})
+ @View({
+ directives: [formDirectives],
+ template: " "
+ })
+ class LoginComp {
+ loginControl:Control;
+
+ constructor() {
+ this.loginControl = new Control('');
+ }
+ }
+
+ ```
+
+ We can also use ng-model to bind a domain model to the form.
+
+ ```
+ @Component({selector: "login-comp"})
+ @View({
+ directives: [formDirectives],
+ template: " "
+ })
+ class LoginComp {
+ loginControl:Control;
+ login:string;
+
+ constructor() {
+ this.loginControl = new Control('');
+ }
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(ngValidators: QueryList<NgValidator>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 form
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 update
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 model
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 viewModel
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngValidators
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onChange
+
+
+ pre.prettyprint
+ code.
+ onChange(c: StringMap<string, any>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 control
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 validator
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 viewToModelUpdate
+
+
+ pre.prettyprint
+ code.
+ viewToModelUpdate(newValue: any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/NgFormModel-class.jade b/public/docs/js/latest/api/forms/NgFormModel-class.jade
new file mode 100644
index 0000000000..0f9886beef
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgFormModel-class.jade
@@ -0,0 +1,304 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/ng_form_model.ts (line 15)
+
+:markdown
+ Binds an existing control group to a DOM element.
+
+ # Example
+
+ In this example, we bind the control group to the form element, and we bind the login and
+ password controls to the
+ login and password elements.
+
+ ```
+ @Component({selector: "login-comp"})
+ @View({
+ directives: [formDirectives],
+ template: ""
+ })
+ class LoginComp {
+ loginForm:ControlGroup;
+
+ constructor() {
+ this.loginForm = new ControlGroup({
+ login: new Control(""),
+ password: new Control("")
+ });
+ }
+
+ onLogin() {
+ // this.loginForm.value
+ }
+ }
+
+ ```
+
+ We can also use ng-model to bind a domain model to the form.
+
+ ```
+ @Component({selector: "login-comp"})
+ @View({
+ directives: [formDirectives],
+ template: ""
+ })
+ class LoginComp {
+ credentials:{login:string, password:string}
+ loginForm:ControlGroup;
+
+ constructor() {
+ this.loginForm = new ControlGroup({
+ login: new Control(""),
+ password: new Control("")
+ });
+ }
+
+ onLogin() {
+ // this.credentials.login === 'some login'
+ // this.credentials.password === 'some password'
+ }
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 form
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 directives
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngSubmit
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onChange
+
+
+ pre.prettyprint
+ code.
+ onChange(_: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 formDirective
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 control
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 addControl
+
+
+ pre.prettyprint
+ code.
+ addControl(dir: NgControl)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getControl
+
+
+ pre.prettyprint
+ code.
+ getControl(dir: NgControl)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 removeControl
+
+
+ pre.prettyprint
+ code.
+ removeControl(dir: NgControl)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 addControlGroup
+
+
+ pre.prettyprint
+ code.
+ addControlGroup(dir: NgControlGroup)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 removeControlGroup
+
+
+ pre.prettyprint
+ code.
+ removeControlGroup(dir: NgControlGroup)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getControlGroup
+
+
+ pre.prettyprint
+ code.
+ getControlGroup(dir: NgControlGroup)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 updateModel
+
+
+ pre.prettyprint
+ code.
+ updateModel(dir: NgControl, value: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onSubmit
+
+
+ pre.prettyprint
+ code.
+ onSubmit()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/NgModel-class.jade b/public/docs/js/latest/api/forms/NgModel-class.jade
new file mode 100644
index 0000000000..0349b80d09
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgModel-class.jade
@@ -0,0 +1,163 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/ng_model.ts (line 13)
+
+:markdown
+ Binds a domain model to the form.
+
+ # Example
+ ```
+ @Component({selector: "search-comp"})
+ @View({
+ directives: [formDirectives],
+ template: `
+
+ `})
+ class SearchComp {
+ searchQuery: string;
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(ngValidators: QueryList<NgValidator>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 update
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 model
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 viewModel
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngValidators
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onChange
+
+
+ pre.prettyprint
+ code.
+ onChange(c: StringMap<string, any>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 control
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 validator
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 viewToModelUpdate
+
+
+ pre.prettyprint
+ code.
+ viewToModelUpdate(newValue: any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/NgRequiredValidator-class.jade b/public/docs/js/latest/api/forms/NgRequiredValidator-class.jade
new file mode 100644
index 0000000000..f30db86d62
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgRequiredValidator-class.jade
@@ -0,0 +1,22 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/validators.ts (line 11)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 validator
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/NgSelectOption-class.jade b/public/docs/js/latest/api/forms/NgSelectOption-class.jade
new file mode 100644
index 0000000000..0735737637
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgSelectOption-class.jade
@@ -0,0 +1,17 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/select_control_value_accessor.ts (line 8)
+
+:markdown
+ Marks as dynamic, so Angular can be notified when options change.
+
+ #Example:
+
+ ```
+
+
+
+ ```
+
+
diff --git a/public/docs/js/latest/api/forms/NgValidator-class.jade b/public/docs/js/latest/api/forms/NgValidator-class.jade
new file mode 100644
index 0000000000..08747287ff
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgValidator-class.jade
@@ -0,0 +1,22 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/validators.ts (line 4)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 validator
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/SelectControlValueAccessor-class.jade b/public/docs/js/latest/api/forms/SelectControlValueAccessor-class.jade
new file mode 100644
index 0000000000..1174ceb0e4
--- /dev/null
+++ b/public/docs/js/latest/api/forms/SelectControlValueAccessor-class.jade
@@ -0,0 +1,232 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/select_control_value_accessor.ts (line 23)
+
+:markdown
+ The accessor for writing a value and listening to changes on a select element.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(cd: NgControl, renderer: Renderer, elementRef: ElementRef, query: QueryList<NgSelectOption>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 value
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onChange
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onTouched
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 cd
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 renderer
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 elementRef
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 writeValue
+
+
+ pre.prettyprint
+ code.
+ writeValue(value: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassUntouched
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassTouched
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassPristine
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassDirty
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassValid
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngClassInvalid
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 registerOnChange
+
+
+ pre.prettyprint
+ code.
+ registerOnChange(fn: () => any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 registerOnTouched
+
+
+ pre.prettyprint
+ code.
+ registerOnTouched(fn: () => any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/Validators-class.jade b/public/docs/js/latest/api/forms/Validators-class.jade
new file mode 100644
index 0000000000..c1548ba4f4
--- /dev/null
+++ b/public/docs/js/latest/api/forms/Validators-class.jade
@@ -0,0 +1,15 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/validators.ts (line 4)
+
+:markdown
+ Provides a set of validators used by form controls.
+
+ # Example
+
+ ```
+ var loginControl = new Control("", Validators.required)
+ ```
+
+
diff --git a/public/docs/js/latest/api/forms/_data.json b/public/docs/js/latest/api/forms/_data.json
new file mode 100644
index 0000000000..8f2ce9a70b
--- /dev/null
+++ b/public/docs/js/latest/api/forms/_data.json
@@ -0,0 +1,106 @@
+{
+ "index" : {
+ "title" : "Forms",
+ "intro" : "This module is used for handling user input, by defining and building a ControlGroup
thatconsists ofControl
objects, and mapping them onto the DOM. Control
objects can then be usedto read informationfrom the form DOM elements.This module is not included in the `angular2` module; you must import the forms moduleexplicitly."
+ },
+
+ "AbstractControl-class" : {
+ "title" : "AbstractControl Class"
+ },
+
+ "Control-class" : {
+ "title" : "Control Class"
+ },
+
+ "ControlGroup-class" : {
+ "title" : "ControlGroup Class"
+ },
+
+ "ControlArray-class" : {
+ "title" : "ControlArray Class"
+ },
+
+ "AbstractControlDirective-class" : {
+ "title" : "AbstractControlDirective Class"
+ },
+
+ "Form-interface" : {
+ "title" : "Form Interface"
+ },
+
+ "ControlContainer-class" : {
+ "title" : "ControlContainer Class"
+ },
+
+ "NgControlName-class" : {
+ "title" : "NgControlName Class"
+ },
+
+ "NgFormControl-class" : {
+ "title" : "NgFormControl Class"
+ },
+
+ "NgModel-class" : {
+ "title" : "NgModel Class"
+ },
+
+ "NgControl-class" : {
+ "title" : "NgControl Class"
+ },
+
+ "NgControlGroup-class" : {
+ "title" : "NgControlGroup Class"
+ },
+
+ "NgFormModel-class" : {
+ "title" : "NgFormModel Class"
+ },
+
+ "NgForm-class" : {
+ "title" : "NgForm Class"
+ },
+
+ "ControlValueAccessor-interface" : {
+ "title" : "ControlValueAccessor Interface"
+ },
+
+ "DefaultValueAccessor-class" : {
+ "title" : "DefaultValueAccessor Class"
+ },
+
+ "CheckboxControlValueAccessor-class" : {
+ "title" : "CheckboxControlValueAccessor Class"
+ },
+
+ "NgSelectOption-class" : {
+ "title" : "NgSelectOption Class"
+ },
+
+ "SelectControlValueAccessor-class" : {
+ "title" : "SelectControlValueAccessor Class"
+ },
+
+ "formDirectives-var" : {
+ "title" : "formDirectives Var"
+ },
+
+ "Validators-class" : {
+ "title" : "Validators Class"
+ },
+
+ "NgValidator-class" : {
+ "title" : "NgValidator Class"
+ },
+
+ "NgRequiredValidator-class" : {
+ "title" : "NgRequiredValidator Class"
+ },
+
+ "FormBuilder-class" : {
+ "title" : "FormBuilder Class"
+ },
+
+ "formInjectables-var" : {
+ "title" : "formInjectables Var"
+ }
+}
\ No newline at end of file
diff --git a/public/docs/js/latest/api/forms/formDirectives-var.jade b/public/docs/js/latest/api/forms/formDirectives-var.jade
new file mode 100644
index 0000000000..90ec8c6bd2
--- /dev/null
+++ b/public/docs/js/latest/api/forms/formDirectives-var.jade
@@ -0,0 +1,14 @@
+
+.l-main-section
+ h2 formDirectives variable
+ p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives.ts (line 38)
+
+ :markdown
+ A list of all the form directives used as part of a `@View` annotation.
+
+ This is a shorthand for importing them each individually.
+
+
+
diff --git a/public/docs/js/latest/api/forms/formInjectables-var.jade b/public/docs/js/latest/api/forms/formInjectables-var.jade
new file mode 100644
index 0000000000..8bc140833b
--- /dev/null
+++ b/public/docs/js/latest/api/forms/formInjectables-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 formInjectables variable
+ p.location-badge.
+ exported from angular2/forms
+ defined in angular2/forms.ts (line 42)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/forms/index.jade b/public/docs/js/latest/api/forms/index.jade
new file mode 100644
index 0000000000..e59cc59c1a
--- /dev/null
+++ b/public/docs/js/latest/api/forms/index.jade
@@ -0,0 +1,11 @@
+p.location-badge.
+ defined in angular2/forms.ts (line 1)
+
+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/http/BaseRequestOptions-class.jade b/public/docs/js/latest/api/http/BaseRequestOptions-class.jade
new file mode 100644
index 0000000000..859e888912
--- /dev/null
+++ b/public/docs/js/latest/api/http/BaseRequestOptions-class.jade
@@ -0,0 +1,40 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/base_request_options.ts (line 62)
+
+:markdown
+ Injectable version of RequestOptions
, with overridable default values.
+
+ #Example
+
+ ```
+ import {Http, BaseRequestOptions, Request} from 'angular2/http';
+ ...
+ class MyComponent {
+ constructor(baseRequestOptions:BaseRequestOptions, http:Http) {
+ var options = baseRequestOptions.merge({body: 'foobar', url: 'https://foo'});
+ var request = new Request(options);
+ http.request(request).subscribe(res => this.bars = res.json());
+ }
+ }
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/BaseResponseOptions-class.jade b/public/docs/js/latest/api/http/BaseResponseOptions-class.jade
new file mode 100644
index 0000000000..cb445dbf26
--- /dev/null
+++ b/public/docs/js/latest/api/http/BaseResponseOptions-class.jade
@@ -0,0 +1,103 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/base_response_options.ts (line 44)
+
+:markdown
+ Injectable version of ResponseOptions
, with overridable default values.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 body
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 status
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 statusText
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 type
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 url
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/Connection-class.jade b/public/docs/js/latest/api/http/Connection-class.jade
new file mode 100644
index 0000000000..be8d17f7d7
--- /dev/null
+++ b/public/docs/js/latest/api/http/Connection-class.jade
@@ -0,0 +1,66 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/interfaces.ts (line 25)
+
+:markdown
+ Abstract class from which real connections are derived.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 readyState
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 response
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dispose
+
+
+ pre.prettyprint
+ code.
+ dispose()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/ConnectionBackend-class.jade b/public/docs/js/latest/api/http/ConnectionBackend-class.jade
new file mode 100644
index 0000000000..1f2eb9ae0f
--- /dev/null
+++ b/public/docs/js/latest/api/http/ConnectionBackend-class.jade
@@ -0,0 +1,45 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/interfaces.ts (line 14)
+
+:markdown
+ Abstract class from which real backends are derived.
+
+ The primary purpose of a `ConnectionBackend` is to create new connections to fulfill a given
+ Request
.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 createConnection
+
+
+ pre.prettyprint
+ code.
+ createConnection(request: any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/Headers-class.jade b/public/docs/js/latest/api/http/Headers-class.jade
new file mode 100644
index 0000000000..a2a3a9cb7e
--- /dev/null
+++ b/public/docs/js/latest/api/http/Headers-class.jade
@@ -0,0 +1,206 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/headers.ts (line 16)
+
+:markdown
+ Polyfill for [Headers](https://developer.mozilla.org/en-US/docs/Web/API/Headers/Headers), as
+ specified in the [Fetch Spec](https://fetch.spec.whatwg.org/#headers-class). The only known
+ difference from the spec is the lack of an `entries` method.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(headers?: Headers | StringMap<string, any>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 append
+
+
+ pre.prettyprint
+ code.
+ append(name: string, value: string)
+
+ :markdown
+
+ Appends a header to existing list of header values for a given header name.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 delete
+
+
+ pre.prettyprint
+ code.
+ delete(name: string)
+
+ :markdown
+
+ Deletes all header values for the given name.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEach
+
+
+ pre.prettyprint
+ code.
+ forEach(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 get
+
+
+ pre.prettyprint
+ code.
+ get(header: string)
+
+ :markdown
+
+ Returns first header that matches given name.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 has
+
+
+ pre.prettyprint
+ code.
+ has(header: string)
+
+ :markdown
+
+ Check for existence of header by given name.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 keys
+
+
+ pre.prettyprint
+ code.
+ keys()
+
+ :markdown
+
+ Provides names of set headers
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 set
+
+
+ pre.prettyprint
+ code.
+ set(header: string, value: string | List<string>)
+
+ :markdown
+
+ Sets or overrides header value for given name.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 values
+
+
+ pre.prettyprint
+ code.
+ values()
+
+ :markdown
+
+ Returns values of all headers.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getAll
+
+
+ pre.prettyprint
+ code.
+ getAll(header: string)
+
+ :markdown
+
+ Returns list of header values for a given name.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 entries
+
+
+ pre.prettyprint
+ code.
+ entries()
+
+ :markdown
+
+ This method is not implemented.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/Http-class.jade b/public/docs/js/latest/api/http/Http-class.jade
new file mode 100644
index 0000000000..215258a54c
--- /dev/null
+++ b/public/docs/js/latest/api/http/Http-class.jade
@@ -0,0 +1,219 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/http.ts (line 32)
+
+:markdown
+ Performs http requests using `XMLHttpRequest` as the default backend.
+
+ `Http` is available as an injectable class, with methods to perform http requests. Calling
+ `request` returns an EventEmitter
which will emit a single Response
when a
+ response is received.
+
+
+ ## Breaking Change
+
+ Previously, methods of `Http` would return an RxJS Observable directly. For now,
+ the `toRx()` method of EventEmitter
needs to be called in order to get the RxJS
+ Subject. `EventEmitter` does not provide combinators like `map`, and has different semantics for
+ subscribing/observing. This is temporary; the result of all `Http` method calls will be either an
+ Observable
+ or Dart Stream when [issue #2794](https://github.com/angular/angular/issues/2794) is resolved.
+
+ #Example
+
+ ```
+ import {Http, httpInjectables} from 'angular2/http';
+ @Component({selector: 'http-app', viewInjector: [httpInjectables]})
+ @View({templateUrl: 'people.html'})
+ class PeopleComponent {
+ constructor(http: Http) {
+ http.get('people.json')
+ //Get the RxJS Subject
+ .toRx()
+ // Call map on the response observable to get the parsed people object
+ .map(res => res.json())
+ // Subscribe to the observable to get the parsed people object and attach it to the
+ // component
+ .subscribe(people => this.people = people);
+ }
+ }
+ ```
+
+ To use the EventEmitter
returned by `Http`, simply pass a generator (See "interface
+ Generator" in the Async Generator spec: https://github.com/jhusain/asyncgenerator) to the
+ `observer` method of the returned emitter, with optional methods of `next`, `throw`, and `return`.
+
+ #Example
+
+ ```
+ http.get('people.json').observer({next: (value) => this.people = people});
+ ```
+
+ The default construct used to perform requests, `XMLHttpRequest`, is abstracted as a "Backend" (
+ XHRBackend
in this case), which could be mocked with dependency injection by replacing
+ the XHRBackend
binding, as in the following example:
+
+ #Example
+
+ ```
+ import {MockBackend, BaseRequestOptions, Http} from 'angular2/http';
+ var injector = Injector.resolveAndCreate([
+ BaseRequestOptions,
+ MockBackend,
+ bind(Http).toFactory(
+ function(backend, defaultOptions) {
+ return new Http(backend, defaultOptions);
+ },
+ [MockBackend, BaseRequestOptions])
+ ]);
+ var http = injector.get(Http);
+ http.get('request-from-mock-backend.json').toRx().subscribe((res:Response) => doSomething(res));
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_backend: ConnectionBackend, _defaultOptions: RequestOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ pre.prettyprint
+ code.
+ request(url: string | Request, options?: IRequestOptions)
+
+ :markdown
+
+ Performs any type of http request. First argument is required, and can either be a url or
+ a Request
instance. If the first argument is a url, an optional RequestOptions
+ object can be provided as the 2nd argument. The options object will be merged with the values
+ of BaseRequestOptions
before performing the request.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 get
+
+
+ pre.prettyprint
+ code.
+ get(url: string, options?: IRequestOptions)
+
+ :markdown
+
+ Performs a request with `get` http method.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 post
+
+
+ pre.prettyprint
+ code.
+ post(url: string, body: string, options?: IRequestOptions)
+
+ :markdown
+
+ Performs a request with `post` http method.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 put
+
+
+ pre.prettyprint
+ code.
+ put(url: string, body: string, options?: IRequestOptions)
+
+ :markdown
+
+ Performs a request with `put` http method.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 delete
+
+
+ pre.prettyprint
+ code.
+ delete(url: string, options?: IRequestOptions)
+
+ :markdown
+
+ Performs a request with `delete` http method.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 patch
+
+
+ pre.prettyprint
+ code.
+ patch(url: string, body: string, options?: IRequestOptions)
+
+ :markdown
+
+ Performs a request with `patch` http method.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 head
+
+
+ pre.prettyprint
+ code.
+ head(url: string, options?: IRequestOptions)
+
+ :markdown
+
+ Performs a request with `head` http method.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/IRequestOptions-interface.jade b/public/docs/js/latest/api/http/IRequestOptions-interface.jade
new file mode 100644
index 0000000000..2bfafba3dd
--- /dev/null
+++ b/public/docs/js/latest/api/http/IRequestOptions-interface.jade
@@ -0,0 +1,102 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/interfaces.ts (line 35)
+
+:markdown
+ Interface for options to construct a Request, based on
+ [RequestInit](https://fetch.spec.whatwg.org/#requestinit) from the Fetch spec.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 url?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 method?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 body?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mode?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 credentials?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 cache?
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/IResponseOptions-interface.jade b/public/docs/js/latest/api/http/IResponseOptions-interface.jade
new file mode 100644
index 0000000000..007b268e0f
--- /dev/null
+++ b/public/docs/js/latest/api/http/IResponseOptions-interface.jade
@@ -0,0 +1,89 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/interfaces.ts (line 50)
+
+:markdown
+ Interface for options to construct a Response, based on
+ [ResponseInit](https://fetch.spec.whatwg.org/#responseinit) from the Fetch spec.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 body?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 status?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 statusText?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 type?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 url?
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/JSONPBackend-class.jade b/public/docs/js/latest/api/http/JSONPBackend-class.jade
new file mode 100644
index 0000000000..00f21932be
--- /dev/null
+++ b/public/docs/js/latest/api/http/JSONPBackend-class.jade
@@ -0,0 +1,41 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/jsonp_backend.ts (line 89)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_browserJSONP: BrowserJsonp, _baseResponseOptions: ResponseOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 createConnection
+
+
+ pre.prettyprint
+ code.
+ createConnection(request: Request)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/JSONPConnection-class.jade b/public/docs/js/latest/api/http/JSONPConnection-class.jade
new file mode 100644
index 0000000000..8a32752b7b
--- /dev/null
+++ b/public/docs/js/latest/api/http/JSONPConnection-class.jade
@@ -0,0 +1,110 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/jsonp_backend.ts (line 9)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(req: Request, _dom: BrowserJsonp, baseResponseOptions?: ResponseOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 readyState
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 response
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 baseResponseOptions
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 finished
+
+
+ pre.prettyprint
+ code.
+ finished(data?: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dispose
+
+
+ pre.prettyprint
+ code.
+ dispose()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/Jsonp-class.jade b/public/docs/js/latest/api/http/Jsonp-class.jade
new file mode 100644
index 0000000000..93b080d1fe
--- /dev/null
+++ b/public/docs/js/latest/api/http/Jsonp-class.jade
@@ -0,0 +1,45 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/http.ts (line 178)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(backend: ConnectionBackend, defaultOptions: RequestOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ pre.prettyprint
+ code.
+ request(url: string | Request, options?: IRequestOptions)
+
+ :markdown
+
+ Performs any type of http request. First argument is required, and can either be a url or
+ a Request
instance. If the first argument is a url, an optional RequestOptions
+ object can be provided as the 2nd argument. The options object will be merged with the values
+ of BaseRequestOptions
before performing the request.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/MockBackend-class.jade b/public/docs/js/latest/api/http/MockBackend-class.jade
new file mode 100644
index 0000000000..2e4e2073cb
--- /dev/null
+++ b/public/docs/js/latest/api/http/MockBackend-class.jade
@@ -0,0 +1,194 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/mock_backend.ts (line 99)
+
+:markdown
+ A mock backend for testing the Http
service.
+
+ This class can be injected in tests, and should be used to override bindings
+ to other backends, such as XHRBackend
.
+
+ #Example
+
+ ```
+ import {MockBackend, DefaultOptions, Http} from 'angular2/http';
+ it('should get some data', inject([AsyncTestCompleter], (async) => {
+ var connection;
+ var injector = Injector.resolveAndCreate([
+ MockBackend,
+ bind(Http).toFactory((backend, defaultOptions) => {
+ return new Http(backend, defaultOptions)
+ }, [MockBackend, DefaultOptions])]);
+ var http = injector.get(Http);
+ var backend = injector.get(MockBackend);
+ //Assign any newly-created connection to local variable
+ backend.connections.subscribe(c => connection = c);
+ http.request('data.json').subscribe((res) => {
+ expect(res.text()).toBe('awesome');
+ async.done();
+ });
+ connection.mockRespond(new Response('awesome'));
+ }));
+ ```
+
+ This method only exists in the mock implementation, not in real Backends.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 connections
+
+
+ :markdown
+
+ EventEmitter
+ of MockConnection
instances that have been created by this backend. Can be subscribed
+ to in order to respond to connections.
+
+ #Example
+
+ ```
+ import {MockBackend, Http, BaseRequestOptions} from 'angular2/http';
+ import {Injector} from 'angular2/di';
+
+ it('should get a response', () => {
+ var connection; //this will be set when a new connection is emitted from the backend.
+ var text; //this will be set from mock response
+ var injector = Injector.resolveAndCreate([
+ MockBackend,
+ bind(Http).toFactory(backend, options) {
+ return new Http(backend, options);
+ }, [MockBackend, BaseRequestOptions]]);
+ var backend = injector.get(MockBackend);
+ var http = injector.get(Http);
+ backend.connections.subscribe(c => connection = c);
+ http.request('something.json').subscribe(res => {
+ text = res.text();
+ });
+ connection.mockRespond(new Response({body: 'Something'}));
+ expect(text).toBe('Something');
+ });
+ ```
+
+ This property only exists in the mock implementation, not in real Backends.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 connectionsArray
+
+
+ :markdown
+
+ An array representation of `connections`. This array will be updated with each connection that
+ is created by this backend.
+
+ This property only exists in the mock implementation, not in real Backends.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 pendingConnections
+
+
+ :markdown
+
+ EventEmitter
of MockConnection
instances that haven't yet been resolved (i.e.
+ with a `readyState`
+ less than 4). Used internally to verify that no connections are pending via the
+ `verifyNoPendingRequests` method.
+
+ This property only exists in the mock implementation, not in real Backends.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 verifyNoPendingRequests
+
+
+ pre.prettyprint
+ code.
+ verifyNoPendingRequests()
+
+ :markdown
+
+ Checks all connections, and raises an exception if any connection has not received a response.
+
+ This method only exists in the mock implementation, not in real Backends.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 resolveAllConnections
+
+
+ pre.prettyprint
+ code.
+ resolveAllConnections()
+
+ :markdown
+
+ Can be used in conjunction with `verifyNoPendingRequests` to resolve any not-yet-resolve
+ connections, if it's expected that there are connections that have not yet received a response.
+
+ This method only exists in the mock implementation, not in real Backends.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 createConnection
+
+
+ pre.prettyprint
+ code.
+ createConnection(req: Request)
+
+ :markdown
+
+ Creates a new MockConnection
. This is equivalent to calling `new
+ MockConnection()`, except that it also will emit the new `Connection` to the `connections`
+ emitter of this `MockBackend` instance. This method will usually only be used by tests
+ against the framework itself, not by end-users.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/MockConnection-class.jade b/public/docs/js/latest/api/http/MockConnection-class.jade
new file mode 100644
index 0000000000..1c0f7882e1
--- /dev/null
+++ b/public/docs/js/latest/api/http/MockConnection-class.jade
@@ -0,0 +1,156 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/mock_backend.ts (line 8)
+
+:markdown
+ Mock Connection to represent a Connection
for tests.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(req: Request)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 readyState
+
+
+ :markdown
+
+ Describes the state of the connection, based on `XMLHttpRequest.readyState`, but with
+ additional states. For example, state 5 indicates an aborted connection.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ :markdown
+
+ Request
instance used to create the connection.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 response
+
+
+ :markdown
+
+ EventEmitter
of Response
. Can be subscribed to in order to be notified when a
+ response is available.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dispose
+
+
+ pre.prettyprint
+ code.
+ dispose()
+
+ :markdown
+
+ Changes the `readyState` of the connection to a custom state of 5 (cancelled).
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mockRespond
+
+
+ pre.prettyprint
+ code.
+ mockRespond(res: Response)
+
+ :markdown
+
+ Sends a mock response to the connection. This response is the value that is emitted to the
+ EventEmitter
returned by Http
.
+
+ #Example
+
+ ```
+ var connection;
+ backend.connections.subscribe(c => connection = c);
+ http.request('data.json').subscribe(res => console.log(res.text()));
+ connection.mockRespond(new Response('fake response')); //logs 'fake response'
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mockDownload
+
+
+ pre.prettyprint
+ code.
+ mockDownload(res: Response)
+
+ :markdown
+
+ Not yet implemented!
+
+ Sends the provided Response
to the `downloadObserver` of the `Request`
+ associated with this connection.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mockError
+
+
+ pre.prettyprint
+ code.
+ mockError(err?: Error)
+
+ :markdown
+
+ Emits the provided error object as an error to the Response
EventEmitter
+ returned
+ from Http
.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/ReadyStates-enum.jade b/public/docs/js/latest/api/http/ReadyStates-enum.jade
new file mode 100644
index 0000000000..4cd0c2f918
--- /dev/null
+++ b/public/docs/js/latest/api/http/ReadyStates-enum.jade
@@ -0,0 +1,9 @@
+
+angular2/http/ReadyStates
+(enum)
+
+
All possible states in which a connection can be, based on
+States from the XMLHttpRequest
spec, but with an
+additional "CANCELLED" state.
+
+
diff --git a/public/docs/js/latest/api/http/Request-class.jade b/public/docs/js/latest/api/http/Request-class.jade
new file mode 100644
index 0000000000..ec0603e07f
--- /dev/null
+++ b/public/docs/js/latest/api/http/Request-class.jade
@@ -0,0 +1,134 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/static_request.ts (line 10)
+
+:markdown
+ Creates `Request` instances from provided values.
+
+ The Request's interface is inspired by the Request constructor defined in the [Fetch
+ Spec](https://fetch.spec.whatwg.org/#request-class),
+ but is considered a static value whose body can be accessed many times. There are other
+ differences in the implementation, but this is the most significant.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(requestOptions: RequestOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 method
+
+
+ :markdown
+
+ Http method with which to perform the request.
+
+ Defaults to GET.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mode
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 credentials
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers
+
+
+ :markdown
+
+ Headers object based on the `Headers` class in the [Fetch
+ Spec](https://fetch.spec.whatwg.org/#headers-class). Headers
class reference.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 url
+
+
+ :markdown
+
+ Url of the remote resource
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 cache
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 text
+
+
+ pre.prettyprint
+ code.
+ text()
+
+ :markdown
+
+ Returns the request's body as string, assuming that body exists. If body is undefined, return
+ empty
+ string.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/RequestCacheOpts-enum.jade b/public/docs/js/latest/api/http/RequestCacheOpts-enum.jade
new file mode 100644
index 0000000000..efe4ab76cd
--- /dev/null
+++ b/public/docs/js/latest/api/http/RequestCacheOpts-enum.jade
@@ -0,0 +1,8 @@
+
+angular2/http/RequestCacheOpts
+(enum)
+
+
Acceptable cache option to be associated with a Request
, based on
+RequestCache from the Fetch spec.
+
+
diff --git a/public/docs/js/latest/api/http/RequestCredentialsOpts-enum.jade b/public/docs/js/latest/api/http/RequestCredentialsOpts-enum.jade
new file mode 100644
index 0000000000..917740aa93
--- /dev/null
+++ b/public/docs/js/latest/api/http/RequestCredentialsOpts-enum.jade
@@ -0,0 +1,8 @@
+
+angular2/http/RequestCredentialsOpts
+(enum)
+
diff --git a/public/docs/js/latest/api/http/RequestMethods-enum.jade b/public/docs/js/latest/api/http/RequestMethods-enum.jade
new file mode 100644
index 0000000000..5a5507e088
--- /dev/null
+++ b/public/docs/js/latest/api/http/RequestMethods-enum.jade
@@ -0,0 +1,7 @@
+
+angular2/http/RequestMethods
+(enum)
+
+
Supported http methods.
+
+
diff --git a/public/docs/js/latest/api/http/RequestModesOpts-enum.jade b/public/docs/js/latest/api/http/RequestModesOpts-enum.jade
new file mode 100644
index 0000000000..82575fce28
--- /dev/null
+++ b/public/docs/js/latest/api/http/RequestModesOpts-enum.jade
@@ -0,0 +1,8 @@
+
+angular2/http/RequestModesOpts
+(enum)
+
+
Acceptable origin modes to be associated with a Request
, based on
+RequestMode from the Fetch spec.
+
+
diff --git a/public/docs/js/latest/api/http/RequestOptions-class.jade b/public/docs/js/latest/api/http/RequestOptions-class.jade
new file mode 100644
index 0000000000..62fe95579f
--- /dev/null
+++ b/public/docs/js/latest/api/http/RequestOptions-class.jade
@@ -0,0 +1,146 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/base_request_options.ts (line 5)
+
+:markdown
+ Creates a request options object similar to the `RequestInit` description
+ in the [Fetch
+ Spec](https://fetch.spec.whatwg.org/#requestinit) to be optionally provided when instantiating a
+ Request
.
+
+ All values are null by default.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({method, headers, body, mode, credentials, cache, url}?: IRequestOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 method
+
+
+ :markdown
+
+ Http method with which to execute the request.
+
+ Defaults to "GET".
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers
+
+
+ :markdown
+
+ Headers object based on the `Headers` class in the [Fetch
+ Spec](https://fetch.spec.whatwg.org/#headers-class).
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 body
+
+
+ :markdown
+
+ Body to be used when creating the request.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mode
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 credentials
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 cache
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 url
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 merge
+
+
+ pre.prettyprint
+ code.
+ merge(options?: IRequestOptions)
+
+ :markdown
+
+ Creates a copy of the `RequestOptions` instance, using the optional input as values to override
+ existing values.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/Response-class.jade b/public/docs/js/latest/api/http/Response-class.jade
new file mode 100644
index 0000000000..e643630c87
--- /dev/null
+++ b/public/docs/js/latest/api/http/Response-class.jade
@@ -0,0 +1,239 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/static_response.ts (line 5)
+
+:markdown
+ Creates `Response` instances from provided values.
+
+ Though this object isn't
+ usually instantiated by end-users, it is the primary object interacted with when it comes time to
+ add data to a view.
+
+ #Example
+
+ ```
+ http.request('my-friends.txt').subscribe(response => this.friends = response.text());
+ ```
+
+ The Response's interface is inspired by the Response constructor defined in the [Fetch
+ Spec](https://fetch.spec.whatwg.org/#response-class), but is considered a static value whose body
+ can be accessed many times. There are other differences in the implementation, but this is the
+ most significant.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(responseOptions: ResponseOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 type
+
+
+ :markdown
+
+ One of "basic", "cors", "default", "error, or "opaque".
+
+ Defaults to "default".
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ok
+
+
+ :markdown
+
+ True if the response's status is within 200-299
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 url
+
+
+ :markdown
+
+ URL of response.
+
+ Defaults to empty string.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 status
+
+
+ :markdown
+
+ Status code returned by server.
+
+ Defaults to 200.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 statusText
+
+
+ :markdown
+
+ Text representing the corresponding reason phrase to the `status`, as defined in [ietf rfc 2616
+ section 6.1.1](https://tools.ietf.org/html/rfc2616#section-6.1.1)
+
+ Defaults to "OK"
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 bytesLoaded
+
+
+ :markdown
+
+ Non-standard property
+
+ Denotes how many of the response body's bytes have been loaded, for example if the response is
+ the result of a progress event.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 totalBytes
+
+
+ :markdown
+
+ Non-standard property
+
+ Denotes how many bytes are expected in the final response body.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers
+
+
+ :markdown
+
+ Headers object based on the `Headers` class in the [Fetch
+ Spec](https://fetch.spec.whatwg.org/#headers-class).
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 blob
+
+
+ pre.prettyprint
+ code.
+ blob()
+
+ :markdown
+
+ Not yet implemented
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 json
+
+
+ pre.prettyprint
+ code.
+ json()
+
+ :markdown
+
+ Attempts to return body as parsed `JSON` object, or raises an exception.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 text
+
+
+ pre.prettyprint
+ code.
+ text()
+
+ :markdown
+
+ Returns the body as a string, presuming `toString()` can be called on the response body.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 arrayBuffer
+
+
+ pre.prettyprint
+ code.
+ arrayBuffer()
+
+ :markdown
+
+ Not yet implemented
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/ResponseOptions-class.jade b/public/docs/js/latest/api/http/ResponseOptions-class.jade
new file mode 100644
index 0000000000..2d4c61de98
--- /dev/null
+++ b/public/docs/js/latest/api/http/ResponseOptions-class.jade
@@ -0,0 +1,126 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/base_response_options.ts (line 5)
+
+:markdown
+ Creates a response options object similar to the
+ [ResponseInit](https://fetch.spec.whatwg.org/#responseinit) description
+ in the Fetch
+ Spec to be optionally provided when instantiating a
+ Response
.
+
+ All values are null by default.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({body, status, headers, statusText, type, url}?: IResponseOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 body
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 status
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 statusText
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 type
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 url
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 merge
+
+
+ pre.prettyprint
+ code.
+ merge(options?: IResponseOptions)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/ResponseTypes-enum.jade b/public/docs/js/latest/api/http/ResponseTypes-enum.jade
new file mode 100644
index 0000000000..2b5af6f3e1
--- /dev/null
+++ b/public/docs/js/latest/api/http/ResponseTypes-enum.jade
@@ -0,0 +1,8 @@
+
+angular2/http/ResponseTypes
+(enum)
+
+
Acceptable response types to be associated with a Response
, based on
+ResponseType from the Fetch spec.
+
+
diff --git a/public/docs/js/latest/api/http/URLSearchParams-class.jade b/public/docs/js/latest/api/http/URLSearchParams-class.jade
new file mode 100644
index 0000000000..28952a8bc0
--- /dev/null
+++ b/public/docs/js/latest/api/http/URLSearchParams-class.jade
@@ -0,0 +1,154 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/url_search_params.ts (line 22)
+
+:markdown
+ Map-like representation of url search parameters, based on
+ [URLSearchParams](https://url.spec.whatwg.org/#urlsearchparams) in the url living standard.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(rawParams: string)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 paramsMap
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 rawParams
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 has
+
+
+ pre.prettyprint
+ code.
+ has(param: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 get
+
+
+ pre.prettyprint
+ code.
+ get(param: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getAll
+
+
+ pre.prettyprint
+ code.
+ getAll(param: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 append
+
+
+ pre.prettyprint
+ code.
+ append(param: string, val: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 delete
+
+
+ pre.prettyprint
+ code.
+ delete(param: string)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/XHRBackend-class.jade b/public/docs/js/latest/api/http/XHRBackend-class.jade
new file mode 100644
index 0000000000..66a92bc8ab
--- /dev/null
+++ b/public/docs/js/latest/api/http/XHRBackend-class.jade
@@ -0,0 +1,64 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/xhr_backend.ts (line 60)
+
+:markdown
+ Creates XHRConnection
instances.
+
+ This class would typically not be used by end users, but could be
+ overridden if a different backend implementation should be used,
+ such as in a node backend.
+
+ #Example
+
+ ```
+ import {Http, MyNodeBackend, httpInjectables, BaseRequestOptions} from 'angular2/http';
+ @Component({
+ viewInjector: [
+ httpInjectables,
+ bind(Http).toFactory((backend, options) => {
+ return new Http(backend, options);
+ }, [MyNodeBackend, BaseRequestOptions])]
+ })
+ class MyComponent {
+ constructor(http:Http) {
+ http('people.json').subscribe(res => this.people = res.json());
+ }
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_browserXHR: BrowserXhr, _baseResponseOptions: ResponseOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 createConnection
+
+
+ pre.prettyprint
+ code.
+ createConnection(request: Request)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/XHRConnection-class.jade b/public/docs/js/latest/api/http/XHRConnection-class.jade
new file mode 100644
index 0000000000..82eca199fc
--- /dev/null
+++ b/public/docs/js/latest/api/http/XHRConnection-class.jade
@@ -0,0 +1,89 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/xhr_backend.ts (line 9)
+
+:markdown
+ Creates connections using `XMLHttpRequest`. Given a fully-qualified
+ request, an `XHRConnection` will immediately create an `XMLHttpRequest` object and send the
+ request.
+
+ This class would typically not be created or interacted with directly inside applications, though
+ the MockConnection
may be interacted with in tests.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(req: Request, browserXHR: BrowserXhr, baseResponseOptions?: ResponseOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 response
+
+
+ :markdown
+
+ Response EventEmitter
which emits a single Response
value on load event of
+ `XMLHttpRequest`.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 readyState
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dispose
+
+
+ pre.prettyprint
+ code.
+ dispose()
+
+ :markdown
+
+ Calls abort on the underlying XMLHttpRequest.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/_data.json b/public/docs/js/latest/api/http/_data.json
new file mode 100644
index 0000000000..4ec06b89be
--- /dev/null
+++ b/public/docs/js/latest/api/http/_data.json
@@ -0,0 +1,118 @@
+{
+ "index" : {
+ "title" : "Http",
+ "intro" : "The http module provides services to perform http requests. To get started, see the Http
class."
+ },
+
+ "MockConnection-class" : {
+ "title" : "MockConnection Class"
+ },
+
+ "MockBackend-class" : {
+ "title" : "MockBackend Class"
+ },
+
+ "Request-class" : {
+ "title" : "Request Class"
+ },
+
+ "Response-class" : {
+ "title" : "Response Class"
+ },
+
+ "IRequestOptions-interface" : {
+ "title" : "IRequestOptions Interface"
+ },
+
+ "IResponseOptions-interface" : {
+ "title" : "IResponseOptions Interface"
+ },
+
+ "Connection-class" : {
+ "title" : "Connection Class"
+ },
+
+ "ConnectionBackend-class" : {
+ "title" : "ConnectionBackend Class"
+ },
+
+ "BaseRequestOptions-class" : {
+ "title" : "BaseRequestOptions Class"
+ },
+
+ "RequestOptions-class" : {
+ "title" : "RequestOptions Class"
+ },
+
+ "BaseResponseOptions-class" : {
+ "title" : "BaseResponseOptions Class"
+ },
+
+ "ResponseOptions-class" : {
+ "title" : "ResponseOptions Class"
+ },
+
+ "XHRBackend-class" : {
+ "title" : "XHRBackend Class"
+ },
+
+ "XHRConnection-class" : {
+ "title" : "XHRConnection Class"
+ },
+
+ "JSONPBackend-class" : {
+ "title" : "JSONPBackend Class"
+ },
+
+ "JSONPConnection-class" : {
+ "title" : "JSONPConnection Class"
+ },
+
+ "Http-class" : {
+ "title" : "Http Class"
+ },
+
+ "Jsonp-class" : {
+ "title" : "Jsonp Class"
+ },
+
+ "Headers-class" : {
+ "title" : "Headers Class"
+ },
+
+ "ResponseTypes-enum" : {
+ "title" : "ResponseTypes Enum"
+ },
+
+ "ReadyStates-enum" : {
+ "title" : "ReadyStates Enum"
+ },
+
+ "RequestMethods-enum" : {
+ "title" : "RequestMethods Enum"
+ },
+
+ "RequestCredentialsOpts-enum" : {
+ "title" : "RequestCredentialsOpts Enum"
+ },
+
+ "RequestCacheOpts-enum" : {
+ "title" : "RequestCacheOpts Enum"
+ },
+
+ "RequestModesOpts-enum" : {
+ "title" : "RequestModesOpts Enum"
+ },
+
+ "URLSearchParams-class" : {
+ "title" : "URLSearchParams Class"
+ },
+
+ "httpInjectables-var" : {
+ "title" : "httpInjectables Var"
+ },
+
+ "jsonpInjectables-var" : {
+ "title" : "jsonpInjectables Var"
+ }
+}
\ No newline at end of file
diff --git a/public/docs/js/latest/api/http/httpInjectables-var.jade b/public/docs/js/latest/api/http/httpInjectables-var.jade
new file mode 100644
index 0000000000..9df302424e
--- /dev/null
+++ b/public/docs/js/latest/api/http/httpInjectables-var.jade
@@ -0,0 +1,25 @@
+
+.l-main-section
+ h2 httpInjectables variable
+ p.location-badge.
+ exported from angular2/http
+ defined in angular2/http.ts (line 63)
+
+ :markdown
+ Provides a basic set of injectables to use the Http
service in any application.
+
+ #Example
+
+ ```
+ import {httpInjectables, Http} from 'angular2/http';
+ @Component({selector: 'http-app', viewInjector: [httpInjectables]})
+ @View({template: '{{data}}'})
+ class MyApp {
+ constructor(http:Http) {
+ http.request('data.txt').subscribe(res => this.data = res.text());
+ }
+ }
+ ```
+
+
+
diff --git a/public/docs/js/latest/api/http/index.jade b/public/docs/js/latest/api/http/index.jade
new file mode 100644
index 0000000000..be9b3f3a49
--- /dev/null
+++ b/public/docs/js/latest/api/http/index.jade
@@ -0,0 +1,11 @@
+p.location-badge.
+ defined in angular2/http.ts (line 1)
+
+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/http/jsonpInjectables-var.jade b/public/docs/js/latest/api/http/jsonpInjectables-var.jade
new file mode 100644
index 0000000000..a59d44e321
--- /dev/null
+++ b/public/docs/js/latest/api/http/jsonpInjectables-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 jsonpInjectables variable
+ p.location-badge.
+ exported from angular2/http
+ defined in angular2/http.ts (line 72)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/pipes/CurrencyPipe-class.jade b/public/docs/js/latest/api/pipes/CurrencyPipe-class.jade
new file mode 100644
index 0000000000..78cfb4a65b
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/CurrencyPipe-class.jade
@@ -0,0 +1,37 @@
+
+p.location-badge.
+ exported from angular2/pipes
+ defined in angular2/src/change_detection/pipes/number_pipe.ts (line 102)
+
+:markdown
+ Formats a number as local currency.
+
+ # Usage
+
+ expression | currency[:currencyCode[:symbolDisplay[:digitInfo]]]
+
+ where `currencyCode` is the ISO 4217 currency code, such as "USD" for the US dollar and
+ "EUR" for the euro. `symbolDisplay` is a boolean indicating whether to use the currency
+ symbol (e.g. $) or the currency code (e.g. USD) in the output. The default for this value
+ is `false`.
+ For more information about `digitInfo` see DecimalPipe
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(value: any, args: any[])
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/DatePipe-class.jade b/public/docs/js/latest/api/pipes/DatePipe-class.jade
new file mode 100644
index 0000000000..1d3f7de46b
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/DatePipe-class.jade
@@ -0,0 +1,112 @@
+
+p.location-badge.
+ exported from angular2/pipes
+ defined in angular2/src/change_detection/pipes/date_pipe.ts (line 16)
+
+:markdown
+ Formats a date value to a string based on the requested format.
+
+ # Usage
+
+ expression | date[:format]
+
+ where `expression` is a date object or a number (milliseconds since UTC epoch) and
+ `format` indicates which date/time components to include:
+
+ | Component | Symbol | Short Form | Long Form | Numeric | 2-digit |
+ |-----------|:------:|--------------|-------------------|-----------|-----------|
+ | era | G | G (AD) | GGGG (Anno Domini)| - | - |
+ | year | y | - | - | y (2015) | yy (15) |
+ | month | M | MMM (Sep) | MMMM (September) | M (9) | MM (09) |
+ | day | d | - | - | d (3) | dd (03) |
+ | weekday | E | EEE (Sun) | EEEE (Sunday) | - | - |
+ | hour | j | - | - | j (13) | jj (13) |
+ | hour12 | h | - | - | h (1 PM) | hh (01 PM)|
+ | hour24 | H | - | - | H (13) | HH (13) |
+ | minute | m | - | - | m (5) | mm (05) |
+ | second | s | - | - | s (9) | ss (09) |
+ | timezone | z | - | z (Pacific Standard Time)| - | - |
+ | timezone | Z | Z (GMT-8:00) | - | - | - |
+
+ In javascript, only the components specified will be respected (not the ordering,
+ punctuations, ...) and details of the the formatting will be dependent on the locale.
+ On the other hand in Dart version, you can also include quoted text as well as some extra
+ date/time components such as quarter. For more information see:
+ https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/intl/intl.DateFormat.
+
+ `format` can also be one of the following predefined formats:
+
+ - `'medium'`: equivalent to `'yMMMdjms'` (e.g. Sep 3, 2010, 12:05:08 PM for en-US)
+ - `'short'`: equivalent to `'yMdjm'` (e.g. 9/3/2010, 12:05 PM for en-US)
+ - `'fullDate'`: equivalent to `'yMMMMEEEEd'` (e.g. Friday, September 3, 2010 for en-US)
+ - `'longDate'`: equivalent to `'yMMMMd'` (e.g. September 3, 2010)
+ - `'mediumDate'`: equivalent to `'yMMMd'` (e.g. Sep 3, 2010 for en-US)
+ - `'shortDate'`: equivalent to `'yMd'` (e.g. 9/3/2010 for en-US)
+ - `'mediumTime'`: equivalent to `'jms'` (e.g. 12:05:08 PM for en-US)
+ - `'shortTime'`: equivalent to `'jm'` (e.g. 12:05 PM for en-US)
+
+ Timezone of the formatted text will be the local system timezone of the end-users machine.
+
+ # Examples
+
+ Assuming `dateObj` is (year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11)
+ in the _local_ time and locale is 'en-US':
+
+ {{ dateObj | date }} // output is 'Jun 15, 2015'
+ {{ dateObj | date:'medium' }} // output is 'Jun 15, 2015, 9:43:11 PM'
+ {{ dateObj | date:'shortTime' }} // output is '9:43 PM'
+ {{ dateObj | date:'mmss' }} // output is '43:11'
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(value: any, args: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(obj: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 create
+
+
+ pre.prettyprint
+ code.
+ create(cdRef: ChangeDetectorRef)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/DecimalPipe-class.jade b/public/docs/js/latest/api/pipes/DecimalPipe-class.jade
new file mode 100644
index 0000000000..1ac34bf1c0
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/DecimalPipe-class.jade
@@ -0,0 +1,49 @@
+
+p.location-badge.
+ exported from angular2/pipes
+ defined in angular2/src/change_detection/pipes/number_pipe.ts (line 52)
+
+:markdown
+ Formats a number as local text. i.e. group sizing and seperator and other locale-specific
+ configurations are based on the active locale.
+
+ # Usage
+
+ expression | number[:digitInfo]
+
+ where `expression` is a number and `digitInfo` has the following format:
+
+ {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}
+
+ - minIntegerDigits is the minimum number of integer digits to use. Defaults to 1.
+ - minFractionDigits is the minimum number of digits after fraction. Defaults to 0.
+ - maxFractionDigits is the maximum number of digits after fraction. Defaults to 3.
+
+ For more information on the acceptable range for each of these numbers and other
+ details see your native internationalization library.
+
+ # Examples
+
+ {{ 123 | number }} // output is 123
+ {{ 123.1 | number: '.2-3' }} // output is 123.10
+ {{ 1 | number: '2.2' }} // output is 01.00
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(value: any, args: any[])
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/IterableChanges-class.jade b/public/docs/js/latest/api/pipes/IterableChanges-class.jade
new file mode 100644
index 0000000000..19c3b5457e
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/IterableChanges-class.jade
@@ -0,0 +1,216 @@
+
+p.location-badge.
+ exported from angular2/pipes
+ defined in angular2/src/change_detection/pipes/iterable_changes.ts (line 26)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(obj: Object)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 collection
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 length
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEachItem
+
+
+ pre.prettyprint
+ code.
+ forEachItem(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEachPreviousItem
+
+
+ pre.prettyprint
+ code.
+ forEachPreviousItem(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEachAddedItem
+
+
+ pre.prettyprint
+ code.
+ forEachAddedItem(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEachMovedItem
+
+
+ pre.prettyprint
+ code.
+ forEachMovedItem(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEachRemovedItem
+
+
+ pre.prettyprint
+ code.
+ forEachRemovedItem(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(collection: any, args?: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 check
+
+
+ pre.prettyprint
+ code.
+ check(collection: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isDirty
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/JsonPipe-class.jade b/public/docs/js/latest/api/pipes/JsonPipe-class.jade
new file mode 100644
index 0000000000..2250bdc6df
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/JsonPipe-class.jade
@@ -0,0 +1,64 @@
+
+p.location-badge.
+ exported from angular2/pipes
+ defined in angular2/src/change_detection/pipes/json_pipe.ts (line 3)
+
+:markdown
+ Implements json transforms to any object.
+
+ # Example
+
+ In this example we transform the user object to json.
+
+ ```
+ @Component({
+ selector: "user-cmp"
+ })
+ @View({
+ template: "User: {{ user | json }}"
+ })
+ class Username {
+ user:Object
+ constructor() {
+ this.user = { name: "PatrickJS" };
+ }
+ }
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(value: any, args?: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 create
+
+
+ pre.prettyprint
+ code.
+ create(cdRef: ChangeDetectorRef)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/KeyValueChanges-class.jade b/public/docs/js/latest/api/pipes/KeyValueChanges-class.jade
new file mode 100644
index 0000000000..3bc4c5255b
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/KeyValueChanges-class.jade
@@ -0,0 +1,175 @@
+
+p.location-badge.
+ exported from angular2/pipes
+ defined in angular2/src/change_detection/pipes/keyvalue_changes.ts (line 11)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(obj: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(map: Map<any, any>, args?: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isDirty
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEachItem
+
+
+ pre.prettyprint
+ code.
+ forEachItem(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEachPreviousItem
+
+
+ pre.prettyprint
+ code.
+ forEachPreviousItem(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEachChangedItem
+
+
+ pre.prettyprint
+ code.
+ forEachChangedItem(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEachAddedItem
+
+
+ pre.prettyprint
+ code.
+ forEachAddedItem(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEachRemovedItem
+
+
+ pre.prettyprint
+ code.
+ forEachRemovedItem(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 check
+
+
+ pre.prettyprint
+ code.
+ check(map: Map<any, any>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/LimitToPipe-class.jade b/public/docs/js/latest/api/pipes/LimitToPipe-class.jade
new file mode 100644
index 0000000000..2ef56a5467
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/LimitToPipe-class.jade
@@ -0,0 +1,97 @@
+
+p.location-badge.
+ exported from angular2/pipes
+ defined in angular2/src/change_detection/pipes/limit_to_pipe.ts (line 12)
+
+:markdown
+ Creates a new List or String containing only a prefix/suffix of the
+ elements.
+
+ The number of elements to return is specified by the `limitTo` parameter.
+
+ # Usage
+
+ expression | limitTo:number
+
+ Where the input expression is a [List] or [String], and `limitTo` is:
+
+ - **a positive integer**: return _number_ items from the beginning of the list or string
+ expression.
+ - **a negative integer**: return _number_ items from the end of the list or string expression.
+ - **`|limitTo|` greater than the size of the expression**: return the entire expression.
+
+ When operating on a [List], the returned list is always a copy even when all
+ the elements are being returned.
+
+ # Examples
+
+ ## List Example
+
+ Assuming `var collection = ['a', 'b', 'c']`, this `ng-for` directive:
+
+ {{i}}
+
+ produces the following:
+
+ a
+ b
+
+ ## String Examples
+
+ {{ 'abcdefghij' | limitTo: 4 }} // output is 'abcd'
+ {{ 'abcdefghij' | limitTo: -4 }} // output is 'ghij'
+ {{ 'abcdefghij' | limitTo: -100 }} // output is 'abcdefghij'
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(obj: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(value: any, args?: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/LowerCasePipe-class.jade b/public/docs/js/latest/api/pipes/LowerCasePipe-class.jade
new file mode 100644
index 0000000000..e397fdd5c0
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/LowerCasePipe-class.jade
@@ -0,0 +1,78 @@
+
+p.location-badge.
+ exported from angular2/pipes
+ defined in angular2/src/change_detection/pipes/lowercase_pipe.ts (line 3)
+
+:markdown
+ Implements lowercase transforms to text.
+
+ # Example
+
+ In this example we transform the user text lowercase.
+
+ ```
+ @Component({
+ selector: "username-cmp"
+ })
+ @View({
+ template: "Username: {{ user | lowercase }}"
+ })
+ class Username {
+ user:string;
+ }
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(str: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(value: string, args?: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/ObservablePipe-class.jade b/public/docs/js/latest/api/pipes/ObservablePipe-class.jade
new file mode 100644
index 0000000000..2f6390e9e8
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/ObservablePipe-class.jade
@@ -0,0 +1,97 @@
+
+p.location-badge.
+ exported from angular2/pipes
+ defined in angular2/src/change_detection/pipes/observable_pipe.ts (line 4)
+
+:markdown
+ Implements async bindings to Observable.
+
+ # Example
+
+ In this example we bind the description observable to the DOM. The async pipe will convert an
+ observable to the
+ latest value it emitted. It will also request a change detection check when a new value is
+ emitted.
+
+ ```
+ @Component({
+ selector: "task-cmp",
+ changeDetection: ON_PUSH
+ })
+ @View({
+ template: "Task Description {{ description | async }}"
+ })
+ class Task {
+ description:Observable;
+ }
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_ref: ChangeDetectorRef)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(obs: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(obs: Observable, args?: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/PercentPipe-class.jade b/public/docs/js/latest/api/pipes/PercentPipe-class.jade
new file mode 100644
index 0000000000..c5e6c681bf
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/PercentPipe-class.jade
@@ -0,0 +1,33 @@
+
+p.location-badge.
+ exported from angular2/pipes
+ defined in angular2/src/change_detection/pipes/number_pipe.ts (line 85)
+
+:markdown
+ Formats a number as local percent.
+
+ # Usage
+
+ expression | percent[:digitInfo]
+
+ For more information about `digitInfo` see DecimalPipe
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(value: any, args: any[])
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/PromisePipe-class.jade b/public/docs/js/latest/api/pipes/PromisePipe-class.jade
new file mode 100644
index 0000000000..45a0ff9a9c
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/PromisePipe-class.jade
@@ -0,0 +1,96 @@
+
+p.location-badge.
+ exported from angular2/pipes
+ defined in angular2/src/change_detection/pipes/promise_pipe.ts (line 4)
+
+:markdown
+ Implements async bindings to Promise.
+
+ # Example
+
+ In this example we bind the description promise to the DOM.
+ The async pipe will convert a promise to the value with which it is resolved. It will also
+ request a change detection check when the promise is resolved.
+
+ ```
+ @Component({
+ selector: "task-cmp",
+ changeDetection: ON_PUSH
+ })
+ @View({
+ template: "Task Description {{ description | async }}"
+ })
+ class Task {
+ description:Promise;
+ }
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_ref: ChangeDetectorRef)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(promise: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(promise: Promise<any>, args?: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/UpperCasePipe-class.jade b/public/docs/js/latest/api/pipes/UpperCasePipe-class.jade
new file mode 100644
index 0000000000..f4680aff5e
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/UpperCasePipe-class.jade
@@ -0,0 +1,78 @@
+
+p.location-badge.
+ exported from angular2/pipes
+ defined in angular2/src/change_detection/pipes/uppercase_pipe.ts (line 3)
+
+:markdown
+ Implements uppercase transforms to text.
+
+ # Example
+
+ In this example we transform the user text uppercase.
+
+ ```
+ @Component({
+ selector: "username-cmp"
+ })
+ @View({
+ template: "Username: {{ user | uppercase }}"
+ })
+ class Username {
+ user:string;
+ }
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 supports
+
+
+ pre.prettyprint
+ code.
+ supports(str: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(value: string, args?: List<any>)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/index.jade b/public/docs/js/latest/api/pipes/index.jade
new file mode 100644
index 0000000000..9a0dc8905f
--- /dev/null
+++ b/public/docs/js/latest/api/pipes/index.jade
@@ -0,0 +1,11 @@
+p.location-badge.
+ defined in angular2/pipes.ts (line 1)
+
+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/router/AsyncRoute-class.jade b/public/docs/js/latest/api/router/AsyncRoute-class.jade
new file mode 100644
index 0000000000..6c6e7a07a6
--- /dev/null
+++ b/public/docs/js/latest/api/router/AsyncRoute-class.jade
@@ -0,0 +1,63 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/route_config_impl.ts (line 30)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({path, loader, as}: {path: string, loader: Function, as?: string})
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 loader
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 as
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/CanActivate-var.jade b/public/docs/js/latest/api/router/CanActivate-var.jade
new file mode 100644
index 0000000000..7b74c66098
--- /dev/null
+++ b/public/docs/js/latest/api/router/CanActivate-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 CanActivate variable
+ p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/lifecycle_annotations.ts (line 17)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/router/CanDeactivate-interface.jade b/public/docs/js/latest/api/router/CanDeactivate-interface.jade
new file mode 100644
index 0000000000..67adf32bcc
--- /dev/null
+++ b/public/docs/js/latest/api/router/CanDeactivate-interface.jade
@@ -0,0 +1,27 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/interfaces.ts (line 36)
+
+:markdown
+ Defines route lifecycle method [canDeactivate]
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 canDeactivate
+
+
+ pre.prettyprint
+ code.
+ canDeactivate(nextInstruction: Instruction, prevInstruction: Instruction)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/CanReuse-interface.jade b/public/docs/js/latest/api/router/CanReuse-interface.jade
new file mode 100644
index 0000000000..2ae23fc837
--- /dev/null
+++ b/public/docs/js/latest/api/router/CanReuse-interface.jade
@@ -0,0 +1,27 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/interfaces.ts (line 29)
+
+:markdown
+ Defines route lifecycle method [canReuse]
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 canReuse
+
+
+ pre.prettyprint
+ code.
+ canReuse(nextInstruction: Instruction, prevInstruction: Instruction)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/HTML5LocationStrategy-class.jade b/public/docs/js/latest/api/router/HTML5LocationStrategy-class.jade
new file mode 100644
index 0000000000..4f750ddec0
--- /dev/null
+++ b/public/docs/js/latest/api/router/HTML5LocationStrategy-class.jade
@@ -0,0 +1,126 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/html5_location_strategy.ts (line 4)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 onPopState
+
+
+ pre.prettyprint
+ code.
+ onPopState(fn: EventListener)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getBaseHref
+
+
+ pre.prettyprint
+ code.
+ getBaseHref()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ pre.prettyprint
+ code.
+ path()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 pushState
+
+
+ pre.prettyprint
+ code.
+ pushState(state: any, title: string, url: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forward
+
+
+ pre.prettyprint
+ code.
+ forward()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 back
+
+
+ pre.prettyprint
+ code.
+ back()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/HashLocationStrategy-class.jade b/public/docs/js/latest/api/router/HashLocationStrategy-class.jade
new file mode 100644
index 0000000000..71faf309a8
--- /dev/null
+++ b/public/docs/js/latest/api/router/HashLocationStrategy-class.jade
@@ -0,0 +1,126 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/hash_location_strategy.ts (line 4)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 onPopState
+
+
+ pre.prettyprint
+ code.
+ onPopState(fn: EventListener)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getBaseHref
+
+
+ pre.prettyprint
+ code.
+ getBaseHref()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ pre.prettyprint
+ code.
+ path()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 pushState
+
+
+ pre.prettyprint
+ code.
+ pushState(state: any, title: string, url: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forward
+
+
+ pre.prettyprint
+ code.
+ forward()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 back
+
+
+ pre.prettyprint
+ code.
+ back()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/Location-class.jade b/public/docs/js/latest/api/router/Location-class.jade
new file mode 100644
index 0000000000..a3ddae8e4e
--- /dev/null
+++ b/public/docs/js/latest/api/router/Location-class.jade
@@ -0,0 +1,151 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/location.ts (line 7)
+
+:markdown
+ This is the service that an application developer will directly interact with.
+
+ Responsible for normalizing the URL against the application's base href.
+ A normalized URL is absolute from the URL host, includes the application's base href, and has no
+ trailing slash:
+ - `/my/app/user/123` is normalized
+ - `my/app/user/123` **is not** normalized
+ - `/my/app/user/123/` **is not** normalized
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_platformStrategy: LocationStrategy, href?: string)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ pre.prettyprint
+ code.
+ path()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 normalize
+
+
+ pre.prettyprint
+ code.
+ normalize(url: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 normalizeAbsolutely
+
+
+ pre.prettyprint
+ code.
+ normalizeAbsolutely(url: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 go
+
+
+ pre.prettyprint
+ code.
+ go(url: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forward
+
+
+ pre.prettyprint
+ code.
+ forward()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 back
+
+
+ pre.prettyprint
+ code.
+ back()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 subscribe
+
+
+ pre.prettyprint
+ code.
+ subscribe(onNext: (value: any) => void, onThrow?: (exception: any) => void, onReturn?: () => void)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/LocationStrategy-class.jade b/public/docs/js/latest/api/router/LocationStrategy-class.jade
new file mode 100644
index 0000000000..1b8b97f594
--- /dev/null
+++ b/public/docs/js/latest/api/router/LocationStrategy-class.jade
@@ -0,0 +1,111 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/location_strategy.ts (line 5)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 path
+
+
+ pre.prettyprint
+ code.
+ path()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 pushState
+
+
+ pre.prettyprint
+ code.
+ pushState(ctx: any, title: string, url: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forward
+
+
+ pre.prettyprint
+ code.
+ forward()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 back
+
+
+ pre.prettyprint
+ code.
+ back()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onPopState
+
+
+ pre.prettyprint
+ code.
+ onPopState(fn: (_) => any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getBaseHref
+
+
+ pre.prettyprint
+ code.
+ getBaseHref()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/OnActivate-interface.jade b/public/docs/js/latest/api/router/OnActivate-interface.jade
new file mode 100644
index 0000000000..eef6c4a2b7
--- /dev/null
+++ b/public/docs/js/latest/api/router/OnActivate-interface.jade
@@ -0,0 +1,27 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/interfaces.ts (line 7)
+
+:markdown
+ Defines route lifecycle method [onActivate]
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 onActivate
+
+
+ pre.prettyprint
+ code.
+ onActivate(nextInstruction: Instruction, prevInstruction: Instruction)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/OnDeactivate-interface.jade b/public/docs/js/latest/api/router/OnDeactivate-interface.jade
new file mode 100644
index 0000000000..8aba4b00ca
--- /dev/null
+++ b/public/docs/js/latest/api/router/OnDeactivate-interface.jade
@@ -0,0 +1,27 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/interfaces.ts (line 22)
+
+:markdown
+ Defines route lifecycle method [onDeactivate]
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 onDeactivate
+
+
+ pre.prettyprint
+ code.
+ onDeactivate(nextInstruction: Instruction, prevInstruction: Instruction)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/OnReuse-interface.jade b/public/docs/js/latest/api/router/OnReuse-interface.jade
new file mode 100644
index 0000000000..4e84bd5d30
--- /dev/null
+++ b/public/docs/js/latest/api/router/OnReuse-interface.jade
@@ -0,0 +1,27 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/interfaces.ts (line 15)
+
+:markdown
+ Defines route lifecycle method [onReuse]
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 onReuse
+
+
+ pre.prettyprint
+ code.
+ onReuse(nextInstruction: Instruction, prevInstruction: Instruction)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/Pipeline-class.jade b/public/docs/js/latest/api/router/Pipeline-class.jade
new file mode 100644
index 0000000000..f25e98fc4c
--- /dev/null
+++ b/public/docs/js/latest/api/router/Pipeline-class.jade
@@ -0,0 +1,56 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/pipeline.ts (line 4)
+
+:markdown
+ Responsible for performing each step of navigation.
+ "Steps" are conceptually similar to "middleware"
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 steps
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 process
+
+
+ pre.prettyprint
+ code.
+ process(instruction: Instruction)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/Redirect-class.jade b/public/docs/js/latest/api/router/Redirect-class.jade
new file mode 100644
index 0000000000..8861c609f7
--- /dev/null
+++ b/public/docs/js/latest/api/router/Redirect-class.jade
@@ -0,0 +1,63 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/route_config_impl.ts (line 42)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({path, redirectTo}: {path: string, redirectTo: string})
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 redirectTo
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 as
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/RootRouter-class.jade b/public/docs/js/latest/api/router/RootRouter-class.jade
new file mode 100644
index 0000000000..dddbc00d3b
--- /dev/null
+++ b/public/docs/js/latest/api/router/RootRouter-class.jade
@@ -0,0 +1,41 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/router.ts (line 284)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(registry: RouteRegistry, pipeline: Pipeline, location: Location, hostComponent: Type)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 commit
+
+
+ pre.prettyprint
+ code.
+ commit(instruction: Instruction)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/Route-class.jade b/public/docs/js/latest/api/router/Route-class.jade
new file mode 100644
index 0000000000..c13fea0442
--- /dev/null
+++ b/public/docs/js/latest/api/router/Route-class.jade
@@ -0,0 +1,63 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/route_config_impl.ts (line 17)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({path, component, as}: {path: string, component: Type, as?: string})
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 path
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 component
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 as
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/RouteConfig-var.jade b/public/docs/js/latest/api/router/RouteConfig-var.jade
new file mode 100644
index 0000000000..110538f7d1
--- /dev/null
+++ b/public/docs/js/latest/api/router/RouteConfig-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 RouteConfig variable
+ p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/route_config_decorator.ts (line 5)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/router/RouteDefinition-interface.jade b/public/docs/js/latest/api/router/RouteDefinition-interface.jade
new file mode 100644
index 0000000000..12adff3c8f
--- /dev/null
+++ b/public/docs/js/latest/api/router/RouteDefinition-interface.jade
@@ -0,0 +1,74 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/route_definition.ts (line 1)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 path
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 component?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 loader?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 redirectTo?
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 as?
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/RouteParams-class.jade b/public/docs/js/latest/api/router/RouteParams-class.jade
new file mode 100644
index 0000000000..679245b927
--- /dev/null
+++ b/public/docs/js/latest/api/router/RouteParams-class.jade
@@ -0,0 +1,54 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/instruction.ts (line 11)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(params: StringMap<string, string>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 params
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 get
+
+
+ pre.prettyprint
+ code.
+ get(param: string)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/RouteRegistry-class.jade b/public/docs/js/latest/api/router/RouteRegistry-class.jade
new file mode 100644
index 0000000000..b1e1c23310
--- /dev/null
+++ b/public/docs/js/latest/api/router/RouteRegistry-class.jade
@@ -0,0 +1,86 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/route_registry.ts (line 26)
+
+:markdown
+ The RouteRegistry holds route configurations for each component in an Angular app.
+ It is responsible for creating Instructions from URLs, and generating URLs based on route and
+ parameters.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 config
+
+
+ pre.prettyprint
+ code.
+ config(parentComponent: any, config: RouteDefinition, isRootLevelRoute?: boolean)
+
+ :markdown
+
+ Given a component and a configuration object, add the route to this registry
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 configFromComponent
+
+
+ pre.prettyprint
+ code.
+ configFromComponent(component: any, isRootComponent?: boolean)
+
+ :markdown
+
+ Reads the annotations of a component and configures the registry based on them
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 recognize
+
+
+ pre.prettyprint
+ code.
+ recognize(url: string, parentComponent: any)
+
+ :markdown
+
+ Given a URL and a parent component, return the most specific instruction for navigating
+ the application into the state specified by the url
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 generate
+
+
+ pre.prettyprint
+ code.
+ generate(linkParams: List<any>, parentComponent: any)
+
+ :markdown
+
+ Given a normalized list with component names and params like: `['user', {id: 3 }]`
+ generates a url with a leading slash relative to the provided `parentComponent`.
+
+
+
+
+
+
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..4d007abf9d
--- /dev/null
+++ b/public/docs/js/latest/api/router/Router-class.jade
@@ -0,0 +1,300 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/router.ts (line 22)
+
+: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.
+
+ ## Concepts
+ Routers and component instances have a 1:1 correspondence.
+
+ The router holds reference to a number of "outlets." An outlet is a placeholder that the
+ router dynamically fills in depending on the current URL.
+
+ When the router navigates from a URL, it must first recognizes it and serialize it into an
+ `Instruction`.
+ The router uses the `RouteRegistry` to get an `Instruction`.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(registry: RouteRegistry, _pipeline: Pipeline, parent: Router, hostComponent: any)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 navigating
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 lastNavigationAttempt
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 registry
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 parent
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 hostComponent
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 childRouter
+
+
+ pre.prettyprint
+ code.
+ childRouter(hostComponent: any)
+
+ :markdown
+
+ Constructs a child router. You probably don't need to use this unless you're writing a reusable
+ component.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 registerOutlet
+
+
+ pre.prettyprint
+ code.
+ registerOutlet(outlet: RouterOutlet)
+
+ :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 config
+
+
+ pre.prettyprint
+ code.
+ config(definitions: List<RouteDefinition>)
+
+ :markdown
+
+ Dynamically update the routing configuration and trigger a navigation.
+
+ # Usage
+
+ ```
+ router.config([
+ { 'path': '/', 'component': IndexComp },
+ { 'path': '/user/:id', 'component': UserComp },
+ ]);
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 navigate
+
+
+ pre.prettyprint
+ code.
+ navigate(url: string)
+
+ :markdown
+
+ Navigate to a URL. Returns a promise that resolves when navigation is complete.
+
+ If the given URL begins with a `/`, router will navigate absolutely.
+ If the given URL does not begin with `/`, the router will navigate relative to this component.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 commit
+
+
+ pre.prettyprint
+ code.
+ commit(instruction: Instruction)
+
+ :markdown
+
+ Updates this router and all descendant routers according to the given instruction
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 subscribe
+
+
+ pre.prettyprint
+ code.
+ subscribe(onNext: (value: any) => void)
+
+ :markdown
+
+ Subscribe to URL updates from the router
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 deactivate
+
+
+ pre.prettyprint
+ code.
+ deactivate(instruction: Instruction)
+
+ :markdown
+
+ Removes the contents of this router's outlet and all descendant outlets
+
+
+
+
+
+
+
+ .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 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 generate
+
+
+ pre.prettyprint
+ code.
+ generate(linkParams: List<any>)
+
+ :markdown
+
+ Generate a URL from a component name and optional map of parameters. The URL is relative to the
+ app's base href.
+
+
+
+
+
+
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..2e5f613200
--- /dev/null
+++ b/public/docs/js/latest/api/router/RouterLink-class.jade
@@ -0,0 +1,94 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/router_link.ts (line 5)
+
+:markdown
+ The RouterLink directive lets you link to specific parts of your app.
+
+ Consider the following route configuration:
+
+ ```
+ @RouteConfig({
+ path: '/user', component: UserCmp, as: 'user'
+ });
+ class MyComp {}
+ ```
+
+ When linking to this `user` route, you can write:
+
+ ```
+ link to user component
+ ```
+
+ RouterLink expects the value to be an array of route names, followed by the params
+ for that level of routing. For instance `['/team', {teamId: 1}, 'user', {userId: 2}]`
+ means that we want to generate a link for the `team` route with params `{teamId: 1}`,
+ and with a child route `user` with params `{userId: 2}`.
+
+ The first route name should be prepended with `/`, `./`, or `../`.
+ If the route begins with `/`, the router will look up the route from the root of the app.
+ If the route begins with `./`, the router will instead look in the current component's
+ children for the route. And if the route begins with `../`, the router will look at the
+ current component's parent.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_router: Router, _location: Location)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 visibleHref
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 routeParams
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onClick
+
+
+ pre.prettyprint
+ code.
+ onClick()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/RouterOutlet-class.jade b/public/docs/js/latest/api/router/RouterOutlet-class.jade
new file mode 100644
index 0000000000..aa88a8effa
--- /dev/null
+++ b/public/docs/js/latest/api/router/RouterOutlet-class.jade
@@ -0,0 +1,115 @@
+
+p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/router_outlet.ts (line 12)
+
+:markdown
+ A router outlet is a placeholder that Angular dynamically fills based on the application's route.
+
+ ## Use
+
+ ```
+
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_elementRef: ElementRef, _loader: DynamicComponentLoader, _parentRouter:Router, nameAttr: string)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 childRouter
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 commit
+
+
+ pre.prettyprint
+ code.
+ commit(instruction: Instruction)
+
+ :markdown
+
+ Given an instruction, update the contents of this outlet.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 canDeactivate
+
+
+ pre.prettyprint
+ code.
+ canDeactivate(nextInstruction: Instruction)
+
+ :markdown
+
+ Called by Router during recognition phase
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 canReuse
+
+
+ pre.prettyprint
+ code.
+ canReuse(nextInstruction: Instruction)
+
+ :markdown
+
+ Called by Router during recognition phase
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 deactivate
+
+
+ pre.prettyprint
+ code.
+ deactivate(nextInstruction: Instruction)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/appBaseHrefToken-var.jade b/public/docs/js/latest/api/router/appBaseHrefToken-var.jade
new file mode 100644
index 0000000000..6334df0bc3
--- /dev/null
+++ b/public/docs/js/latest/api/router/appBaseHrefToken-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 appBaseHrefToken variable
+ p.location-badge.
+ exported from angular2/router
+ defined in angular2/src/router/location.ts (line 7)
+
+ :markdown
+
+
+
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..3b1faf1f47
--- /dev/null
+++ b/public/docs/js/latest/api/router/index.jade
@@ -0,0 +1,11 @@
+p.location-badge.
+ defined in angular2/router.ts (line 1)
+
+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/router/routerDirectives-var.jade b/public/docs/js/latest/api/router/routerDirectives-var.jade
new file mode 100644
index 0000000000..0edcbee414
--- /dev/null
+++ b/public/docs/js/latest/api/router/routerDirectives-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 routerDirectives variable
+ p.location-badge.
+ exported from angular2/router
+ defined in angular2/router.ts (line 35)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/router/routerInjectables-var.jade b/public/docs/js/latest/api/router/routerInjectables-var.jade
new file mode 100644
index 0000000000..148ed284ae
--- /dev/null
+++ b/public/docs/js/latest/api/router/routerInjectables-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 routerInjectables variable
+ p.location-badge.
+ exported from angular2/router
+ defined in angular2/router.ts (line 37)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/test/AsyncTestCompleter-class.jade b/public/docs/js/latest/api/test/AsyncTestCompleter-class.jade
new file mode 100644
index 0000000000..dcfd72a9f5
--- /dev/null
+++ b/public/docs/js/latest/api/test/AsyncTestCompleter-class.jade
@@ -0,0 +1,41 @@
+
+p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 32)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(done: Function)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 done
+
+
+ pre.prettyprint
+ code.
+ done()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/test/By-class.jade b/public/docs/js/latest/api/test/By-class.jade
new file mode 100644
index 0000000000..4e637aab68
--- /dev/null
+++ b/public/docs/js/latest/api/test/By-class.jade
@@ -0,0 +1,8 @@
+
+p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/debug/debug_element.ts (line 179)
+
+:markdown
+
+
diff --git a/public/docs/js/latest/api/test/DebugElement-class.jade b/public/docs/js/latest/api/test/DebugElement-class.jade
new file mode 100644
index 0000000000..115aa3f087
--- /dev/null
+++ b/public/docs/js/latest/api/test/DebugElement-class.jade
@@ -0,0 +1,214 @@
+
+p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/debug/debug_element.ts (line 9)
+
+:markdown
+ A DebugElement contains information from the Angular compiler about an
+ element and provides access to the corresponding ElementInjector and
+ underlying dom Element, as well as a way to query for children.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_parentView: AppView, _boundElementIndex: number)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 componentInstance
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 nativeElement
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 elementRef
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getDirectiveInstance
+
+
+ pre.prettyprint
+ code.
+ getDirectiveInstance(directiveIndex: number)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 children
+
+
+ :markdown
+
+ Get child DebugElements from within the Light DOM.
+
+
+
+
+
+
+ .l-sub-section
+ h3 componentViewChildren
+
+
+ :markdown
+
+ Get the root DebugElement children of a component. Returns an empty
+ list if the current DebugElement is not a component root.
+
+
+
+
+
+
+ .l-sub-section
+ h3 triggerEventHandler
+
+
+ pre.prettyprint
+ code.
+ triggerEventHandler(eventName: string, eventObj: Event)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 hasDirective
+
+
+ pre.prettyprint
+ code.
+ hasDirective(type: Type)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 inject
+
+
+ pre.prettyprint
+ code.
+ inject(type: Type)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getLocal
+
+
+ pre.prettyprint
+ code.
+ getLocal(name: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 query
+
+
+ pre.prettyprint
+ code.
+ query(predicate: Predicate<DebugElement>, scope?: Function)
+
+ :markdown
+
+ Return the first descendant TestElement matching the given predicate
+ and scope.
+
+
+
+
+
+
+ .l-sub-section
+ h3 queryAll
+
+
+ pre.prettyprint
+ code.
+ queryAll(predicate: Predicate<DebugElement>, scope?: Function)
+
+ :markdown
+
+ Return descendant TestElememts matching the given predicate
+ and scope.
+
+
+
+
+
diff --git a/public/docs/js/latest/api/test/ELEMENT_PROBE_CONFIG-var.jade b/public/docs/js/latest/api/test/ELEMENT_PROBE_CONFIG-var.jade
new file mode 100644
index 0000000000..842ac9a262
--- /dev/null
+++ b/public/docs/js/latest/api/test/ELEMENT_PROBE_CONFIG-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 ELEMENT_PROBE_CONFIG variable
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/debug/debug_element_view_listener.ts (line 71)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/test/FunctionWithParamTokens-class.jade b/public/docs/js/latest/api/test/FunctionWithParamTokens-class.jade
new file mode 100644
index 0000000000..a3afd0c59b
--- /dev/null
+++ b/public/docs/js/latest/api/test/FunctionWithParamTokens-class.jade
@@ -0,0 +1,42 @@
+
+p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_injector.ts (line 176)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(tokens: List<any>, fn: Function)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 execute
+
+
+ pre.prettyprint
+ code.
+ execute(injector: Injector)
+
+ :markdown
+
+ Returns the value of the executed function.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/test/GuinessCompatibleSpy-interface.jade b/public/docs/js/latest/api/test/GuinessCompatibleSpy-interface.jade
new file mode 100644
index 0000000000..597dce6d68
--- /dev/null
+++ b/public/docs/js/latest/api/test/GuinessCompatibleSpy-interface.jade
@@ -0,0 +1,65 @@
+
+p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 265)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 andReturn
+
+
+ pre.prettyprint
+ code.
+ andReturn(val: any)
+
+ :markdown
+
+ By chaining the spy with and.returnValue, all calls to the function will return a specific
+ value.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 andCallFake
+
+
+ pre.prettyprint
+ code.
+ andCallFake(fn: Function)
+
+ :markdown
+
+ By chaining the spy with and.callFake, all calls to the spy will delegate to the supplied
+ function.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 reset
+
+
+ pre.prettyprint
+ code.
+ reset()
+
+ :markdown
+
+ removes all recorded calls
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/test/IS_DARTIUM-var.jade b/public/docs/js/latest/api/test/IS_DARTIUM-var.jade
new file mode 100644
index 0000000000..63ffae927a
--- /dev/null
+++ b/public/docs/js/latest/api/test/IS_DARTIUM-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 IS_DARTIUM variable
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 32)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/test/NgMatchers-interface.jade b/public/docs/js/latest/api/test/NgMatchers-interface.jade
new file mode 100644
index 0000000000..847ba86fee
--- /dev/null
+++ b/public/docs/js/latest/api/test/NgMatchers-interface.jade
@@ -0,0 +1,124 @@
+
+p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 18)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 toBe
+
+
+ pre.prettyprint
+ code.
+ toBe(expected: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toEqual
+
+
+ pre.prettyprint
+ code.
+ toEqual(expected: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toBePromise
+
+
+ pre.prettyprint
+ code.
+ toBePromise()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toBeAnInstanceOf
+
+
+ pre.prettyprint
+ code.
+ toBeAnInstanceOf(expected: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toHaveText
+
+
+ pre.prettyprint
+ code.
+ toHaveText(expected: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toImplement
+
+
+ pre.prettyprint
+ code.
+ toImplement(expected: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 not
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/test/RootTestComponent-class.jade b/public/docs/js/latest/api/test/RootTestComponent-class.jade
new file mode 100644
index 0000000000..1d26d58881
--- /dev/null
+++ b/public/docs/js/latest/api/test/RootTestComponent-class.jade
@@ -0,0 +1,58 @@
+
+p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_component_builder.ts (line 22)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(componentRef: ComponentRef)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 detectChanges
+
+
+ pre.prettyprint
+ code.
+ detectChanges()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 destroy
+
+
+ pre.prettyprint
+ code.
+ destroy()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/test/Scope-class.jade b/public/docs/js/latest/api/test/Scope-class.jade
new file mode 100644
index 0000000000..57fce01856
--- /dev/null
+++ b/public/docs/js/latest/api/test/Scope-class.jade
@@ -0,0 +1,8 @@
+
+p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/debug/debug_element.ts (line 146)
+
+:markdown
+
+
diff --git a/public/docs/js/latest/api/test/SpyObject-class.jade b/public/docs/js/latest/api/test/SpyObject-class.jade
new file mode 100644
index 0000000000..6c3affa9b3
--- /dev/null
+++ b/public/docs/js/latest/api/test/SpyObject-class.jade
@@ -0,0 +1,75 @@
+
+p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 276)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(type?: any)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 noSuchMethod
+
+
+ pre.prettyprint
+ code.
+ noSuchMethod(args: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 spy
+
+
+ pre.prettyprint
+ code.
+ spy(name: any)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 rttsAssert
+
+
+ pre.prettyprint
+ code.
+ rttsAssert(value: any)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/test/TestComponentBuilder-class.jade b/public/docs/js/latest/api/test/TestComponentBuilder-class.jade
new file mode 100644
index 0000000000..504cb7a154
--- /dev/null
+++ b/public/docs/js/latest/api/test/TestComponentBuilder-class.jade
@@ -0,0 +1,94 @@
+
+p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_component_builder.ts (line 43)
+
+:markdown
+ Builds a RootTestComponent for use in component level tests.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(injector: Injector)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 overrideTemplate
+
+
+ pre.prettyprint
+ code.
+ overrideTemplate(componentType: Type, template: string)
+
+ :markdown
+
+ Overrides only the html of a Component
.
+ All the other properties of the component's View
are preserved.
+
+
+
+
+
+
+ .l-sub-section
+ h3 overrideView
+
+
+ pre.prettyprint
+ code.
+ overrideView(componentType: Type, view: View)
+
+ :markdown
+
+ Overrides a component's View
.
+
+
+
+
+
+
+ .l-sub-section
+ h3 overrideDirective
+
+
+ pre.prettyprint
+ code.
+ overrideDirective(componentType: Type, from: Type, to: Type)
+
+ :markdown
+
+ Overrides the directives from the component View
.
+
+
+
+
+
+
+ .l-sub-section
+ h3 createAsync
+
+
+ pre.prettyprint
+ code.
+ createAsync(rootComponentType: Type)
+
+ :markdown
+
+ Builds and returns a RootTestComponent.
+
+
+
+
+
diff --git a/public/docs/js/latest/api/test/_data.json b/public/docs/js/latest/api/test/_data.json
new file mode 100644
index 0000000000..3779398174
--- /dev/null
+++ b/public/docs/js/latest/api/test/_data.json
@@ -0,0 +1,122 @@
+{
+ "index" : {
+ "title" : "Test",
+ "intro" : "This module is used for writing tests for applications written in Angular.This module is not included in the `angular2` module; you must import the test module explicitly."
+ },
+
+ "inject-function" : {
+ "title" : "inject Function"
+ },
+
+ "proxy-function" : {
+ "title" : "proxy Function"
+ },
+
+ "afterEach-var" : {
+ "title" : "afterEach Var"
+ },
+
+ "NgMatchers-interface" : {
+ "title" : "NgMatchers Interface"
+ },
+
+ "expect-var" : {
+ "title" : "expect Var"
+ },
+
+ "IS_DARTIUM-var" : {
+ "title" : "IS_DARTIUM Var"
+ },
+
+ "AsyncTestCompleter-class" : {
+ "title" : "AsyncTestCompleter Class"
+ },
+
+ "describe-function" : {
+ "title" : "describe Function"
+ },
+
+ "ddescribe-function" : {
+ "title" : "ddescribe Function"
+ },
+
+ "xdescribe-function" : {
+ "title" : "xdescribe Function"
+ },
+
+ "beforeEach-function" : {
+ "title" : "beforeEach Function"
+ },
+
+ "beforeEachBindings-function" : {
+ "title" : "beforeEachBindings Function"
+ },
+
+ "it-function" : {
+ "title" : "it Function"
+ },
+
+ "xit-function" : {
+ "title" : "xit Function"
+ },
+
+ "iit-function" : {
+ "title" : "iit Function"
+ },
+
+ "GuinessCompatibleSpy-interface" : {
+ "title" : "GuinessCompatibleSpy Interface"
+ },
+
+ "SpyObject-class" : {
+ "title" : "SpyObject Class"
+ },
+
+ "isInInnerZone-function" : {
+ "title" : "isInInnerZone Function"
+ },
+
+ "RootTestComponent-class" : {
+ "title" : "RootTestComponent Class"
+ },
+
+ "TestComponentBuilder-class" : {
+ "title" : "TestComponentBuilder Class"
+ },
+
+ "createTestInjector-function" : {
+ "title" : "createTestInjector Function"
+ },
+
+ "FunctionWithParamTokens-class" : {
+ "title" : "FunctionWithParamTokens Class"
+ },
+
+ "inspectNativeElement-function" : {
+ "title" : "inspectNativeElement Function"
+ },
+
+ "ELEMENT_PROBE_CONFIG-var" : {
+ "title" : "ELEMENT_PROBE_CONFIG Var"
+ },
+
+ "DebugElement-class" : {
+ "title" : "DebugElement Class"
+ },
+
+ "inspectElement-function" : {
+ "title" : "inspectElement Function"
+ },
+
+ "asNativeElements-function" : {
+ "title" : "asNativeElements Function"
+ },
+
+ "Scope-class" : {
+ "title" : "Scope Class"
+ },
+
+ "By-class" : {
+ "title" : "By Class"
+ }
+}
\ No newline at end of file
diff --git a/public/docs/js/latest/api/test/afterEach-var.jade b/public/docs/js/latest/api/test/afterEach-var.jade
new file mode 100644
index 0000000000..ca27cfdbaa
--- /dev/null
+++ b/public/docs/js/latest/api/test/afterEach-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 afterEach variable
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 18)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/test/asNativeElements-function.jade b/public/docs/js/latest/api/test/asNativeElements-function.jade
new file mode 100644
index 0000000000..7d2c52cb19
--- /dev/null
+++ b/public/docs/js/latest/api/test/asNativeElements-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") asNativeElements
+
+
+ pre.prettyprint
+ code.
+ asNativeElements(arr: List<DebugElement>) : List<any>
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/debug/debug_element.ts (line 142)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/test/beforeEach-function.jade b/public/docs/js/latest/api/test/beforeEach-function.jade
new file mode 100644
index 0000000000..001a3d63e6
--- /dev/null
+++ b/public/docs/js/latest/api/test/beforeEach-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") beforeEach
+
+
+ pre.prettyprint
+ code.
+ beforeEach(fn: any)
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 93)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/test/beforeEachBindings-function.jade b/public/docs/js/latest/api/test/beforeEachBindings-function.jade
new file mode 100644
index 0000000000..d88d32386e
--- /dev/null
+++ b/public/docs/js/latest/api/test/beforeEachBindings-function.jade
@@ -0,0 +1,29 @@
+
+.l-main-section
+ h2(class="function export") beforeEachBindings
+
+
+ pre.prettyprint
+ code.
+ beforeEachBindings(fn: any)
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 107)
+
+ :markdown
+ Allows overriding default bindings defined in test_injector.js.
+
+ The given function must return a list of DI bindings.
+
+ Example:
+
+ beforeEachBindings(() => [
+ bind(Compiler).toClass(MockCompiler),
+ bind(SomeToken).toValue(myValue),
+ ]);
+
+
+
+
diff --git a/public/docs/js/latest/api/test/createTestInjector-function.jade b/public/docs/js/latest/api/test/createTestInjector-function.jade
new file mode 100644
index 0000000000..440e347fa7
--- /dev/null
+++ b/public/docs/js/latest/api/test/createTestInjector-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") createTestInjector
+
+
+ pre.prettyprint
+ code.
+ createTestInjector(bindings: List<Type | Binding | List<any>>) : Injector
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_injector.ts (line 138)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/test/ddescribe-function.jade b/public/docs/js/latest/api/test/ddescribe-function.jade
new file mode 100644
index 0000000000..dca97dcd78
--- /dev/null
+++ b/public/docs/js/latest/api/test/ddescribe-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") ddescribe
+
+
+ pre.prettyprint
+ code.
+ ddescribe(args: any)
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 85)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/test/describe-function.jade b/public/docs/js/latest/api/test/describe-function.jade
new file mode 100644
index 0000000000..bdaaaa3692
--- /dev/null
+++ b/public/docs/js/latest/api/test/describe-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") describe
+
+
+ pre.prettyprint
+ code.
+ describe(args: any)
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 81)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/test/expect-var.jade b/public/docs/js/latest/api/test/expect-var.jade
new file mode 100644
index 0000000000..bee15234f0
--- /dev/null
+++ b/public/docs/js/latest/api/test/expect-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 expect variable
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 30)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/test/iit-function.jade b/public/docs/js/latest/api/test/iit-function.jade
new file mode 100644
index 0000000000..221d2bf90e
--- /dev/null
+++ b/public/docs/js/latest/api/test/iit-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") iit
+
+
+ pre.prettyprint
+ code.
+ iit(name: any, fn: any)
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 165)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/test/index.jade b/public/docs/js/latest/api/test/index.jade
new file mode 100644
index 0000000000..98f62e1caa
--- /dev/null
+++ b/public/docs/js/latest/api/test/index.jade
@@ -0,0 +1,11 @@
+p.location-badge.
+ defined in angular2/test.ts (line 1)
+
+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/inject-function.jade b/public/docs/js/latest/api/test/inject-function.jade
new file mode 100644
index 0000000000..4c22cb557e
--- /dev/null
+++ b/public/docs/js/latest/api/test/inject-function.jade
@@ -0,0 +1,41 @@
+
+.l-main-section
+ h2(class="function export") inject
+
+
+ pre.prettyprint
+ code.
+ inject(tokens: List<any>, fn: Function) : FunctionWithParamTokens
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_injector.ts (line 143)
+
+ :markdown
+ Allows injecting dependencies in `beforeEach()` and `it()`.
+
+ Example:
+
+ ```
+ beforeEach(inject([Dependency, AClass], (dep, object) => {
+ // some code that uses `dep` and `object`
+ // ...
+ }));
+
+ it('...', inject([AClass, AsyncTestCompleter], (object, async) => {
+ object.doSomething().then(() => {
+ expect(...);
+ async.done();
+ });
+ })
+ ```
+
+ Notes:
+ - injecting an `AsyncTestCompleter` allow completing async tests - this is the equivalent of
+ adding a `done` parameter in Jasmine,
+ - inject is currently a function because of some Traceur limitation the syntax should eventually
+ becomes `it('...', @Inject (object: AClass, async: AsyncTestCompleter) => { ... });`
+
+
+
diff --git a/public/docs/js/latest/api/test/inspectElement-function.jade b/public/docs/js/latest/api/test/inspectElement-function.jade
new file mode 100644
index 0000000000..754938def1
--- /dev/null
+++ b/public/docs/js/latest/api/test/inspectElement-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") inspectElement
+
+
+ pre.prettyprint
+ code.
+ inspectElement(elementRef: ElementRef) : DebugElement
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/debug/debug_element.ts (line 138)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/test/inspectNativeElement-function.jade b/public/docs/js/latest/api/test/inspectNativeElement-function.jade
new file mode 100644
index 0000000000..dfbd138db5
--- /dev/null
+++ b/public/docs/js/latest/api/test/inspectNativeElement-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") inspectNativeElement
+
+
+ pre.prettyprint
+ code.
+ inspectNativeElement(element: any) : DebugElement
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/debug/debug_element_view_listener.ts (line 35)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/test/isInInnerZone-function.jade b/public/docs/js/latest/api/test/isInInnerZone-function.jade
new file mode 100644
index 0000000000..140d0de5c5
--- /dev/null
+++ b/public/docs/js/latest/api/test/isInInnerZone-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") isInInnerZone
+
+
+ pre.prettyprint
+ code.
+ isInInnerZone() : boolean
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 359)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/test/it-function.jade b/public/docs/js/latest/api/test/it-function.jade
new file mode 100644
index 0000000000..30352dc8b9
--- /dev/null
+++ b/public/docs/js/latest/api/test/it-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") it
+
+
+ pre.prettyprint
+ code.
+ it(name: any, fn: any)
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 157)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/test/proxy-function.jade b/public/docs/js/latest/api/test/proxy-function.jade
new file mode 100644
index 0000000000..a46ceb727f
--- /dev/null
+++ b/public/docs/js/latest/api/test/proxy-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") proxy
+
+
+ pre.prettyprint
+ code.
+ proxy()
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 12)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/test/xdescribe-function.jade b/public/docs/js/latest/api/test/xdescribe-function.jade
new file mode 100644
index 0000000000..279ea7d84a
--- /dev/null
+++ b/public/docs/js/latest/api/test/xdescribe-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") xdescribe
+
+
+ pre.prettyprint
+ code.
+ xdescribe(args: any)
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 89)
+
+ :markdown
+
+
+
+
diff --git a/public/docs/js/latest/api/test/xit-function.jade b/public/docs/js/latest/api/test/xit-function.jade
new file mode 100644
index 0000000000..bdf4da3e79
--- /dev/null
+++ b/public/docs/js/latest/api/test/xit-function.jade
@@ -0,0 +1,19 @@
+
+.l-main-section
+ h2(class="function export") xit
+
+
+ pre.prettyprint
+ code.
+ xit(name: any, fn: any)
+
+
+ p.location-badge.
+ exported from angular2/test
+ defined in angular2/src/test_lib/test_lib.ts (line 161)
+
+ :markdown
+
+
+
+