` ) 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
onChange
,
onDestroy
,
onCheck
,
+
onInit
,
onAllChangesDone
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/DirectiveArgs-interface.jade b/public/docs/js/latest/api/annotations/DirectiveArgs-interface.jade
new file mode 100644
index 0000000000..3b684605b5
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/DirectiveArgs-interface.jade
@@ -0,0 +1,113 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations_impl/annotations.ts (line 801)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 selector
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 properties
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 events
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 host
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 lifecycle
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 hostInjector
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 exportAs
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 compileChildren
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/DirectiveTypeDecorator-interface.jade b/public/docs/js/latest/api/annotations/DirectiveTypeDecorator-interface.jade
new file mode 100644
index 0000000000..fe0c95ad25
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/DirectiveTypeDecorator-interface.jade
@@ -0,0 +1,8 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 16)
+
+:markdown
+
+
diff --git a/public/docs/js/latest/api/annotations/Parent-class.jade b/public/docs/js/latest/api/annotations/Parent-class.jade
deleted file mode 100644
index e43cd333d9..0000000000
--- a/public/docs/js/latest/api/annotations/Parent-class.jade
+++ /dev/null
@@ -1,59 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/annotations_impl/visibility.js (line 44)
-
-:markdown
- Specifies that an injector should retrieve a dependency from the direct parent.
-
- ## Example
-
- Here is a simple directive that retrieves a dependency from its parent element.
-
- ```
- @Directive({
- selector: '[dependency]',
- properties: {
- 'id':'dependency'
- }
- })
- class Dependency {
- id:string;
- }
-
-
- @Directive({
- selector: '[my-directive]'
- })
- class Dependency {
- constructor(@Parent() dependency:Dependency) {
- expect(dependency.id).toEqual(1);
- };
- }
- ```
-
- We use this with the following HTML template:
-
- ```
-
- ```
- The `@Parent()` annotation in our constructor forces the injector to retrieve the dependency from the
- parent element (even thought the current element could resolve it): Angular injects `dependency=1`.
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor()
-
- :markdown
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/Parent-var.jade b/public/docs/js/latest/api/annotations/Parent-var.jade
index e593207037..40a199c905 100644
--- a/public/docs/js/latest/api/annotations/Parent-var.jade
+++ b/public/docs/js/latest/api/annotations/Parent-var.jade
@@ -3,6 +3,7 @@
h2 Parent
variable
p.location-badge.
exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 51)
:markdown
diff --git a/public/docs/js/latest/api/annotations/Query-class.jade b/public/docs/js/latest/api/annotations/Query-class.jade
deleted file mode 100644
index e8d4f9627c..0000000000
--- a/public/docs/js/latest/api/annotations/Query-class.jade
+++ /dev/null
@@ -1,37 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/annotations_impl/di.js (line 55)
-
-: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(directive)
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 directive
-
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/Query-var.jade b/public/docs/js/latest/api/annotations/Query-var.jade
index c61d9c8daa..7e0f42a48f 100644
--- a/public/docs/js/latest/api/annotations/Query-var.jade
+++ b/public/docs/js/latest/api/annotations/Query-var.jade
@@ -3,6 +3,7 @@
h2 Query
variable
p.location-badge.
exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 57)
:markdown
diff --git a/public/docs/js/latest/api/annotations/Self-var.jade b/public/docs/js/latest/api/annotations/Self-var.jade
index 94dcde29a6..ede5fcc949 100644
--- a/public/docs/js/latest/api/annotations/Self-var.jade
+++ b/public/docs/js/latest/api/annotations/Self-var.jade
@@ -3,6 +3,7 @@
h2 Self
variable
p.location-badge.
exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 50)
:markdown
diff --git a/public/docs/js/latest/api/annotations/Unbounded-var.jade b/public/docs/js/latest/api/annotations/Unbounded-var.jade
index 03c027a51d..d4fc1c4c5e 100644
--- a/public/docs/js/latest/api/annotations/Unbounded-var.jade
+++ b/public/docs/js/latest/api/annotations/Unbounded-var.jade
@@ -3,6 +3,7 @@
h2 Unbounded
variable
p.location-badge.
exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 53)
:markdown
diff --git a/public/docs/js/latest/api/annotations/View-class.jade b/public/docs/js/latest/api/annotations/View-class.jade
deleted file mode 100644
index 032d8d64f5..0000000000
--- a/public/docs/js/latest/api/annotations/View-class.jade
+++ /dev/null
@@ -1,132 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/annotations_impl/view.js (line 34)
-
-: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
- }: {
- templateUrl: string,
- template: string,
- directives: List<Type>,
- renderer: string
- })
-
- :markdown
-
-
-
-
-
- .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` nor `directives` are used.
-
-
-
-
-
- .l-sub-section
- h3 template
-
-
- :markdown
-
- Specifies an inline template for an angular component.
-
- NOTE: either `templateUrl` or `template` should be used, but not both.
-
-
-
-
-
- .l-sub-section
- h3 templateUrl
-
-
- :markdown
-
- Specifies a template URL for an angular component.
-
- NOTE: either `templateUrl` or `template` should be used, but not both.
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/View-var.jade b/public/docs/js/latest/api/annotations/View-var.jade
index e370726956..6f987c8ca9 100644
--- a/public/docs/js/latest/api/annotations/View-var.jade
+++ b/public/docs/js/latest/api/annotations/View-var.jade
@@ -3,8 +3,10 @@
h2 View
variable
p.location-badge.
exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 47)
:markdown
+
diff --git a/public/docs/js/latest/api/annotations/ViewTypeDecorator-interface.jade b/public/docs/js/latest/api/annotations/ViewTypeDecorator-interface.jade
new file mode 100644
index 0000000000..d9351256e6
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/ViewTypeDecorator-interface.jade
@@ -0,0 +1,26 @@
+
+p.location-badge.
+ exported from
angular2/annotations
+ defined in
angular2/src/core/annotations/decorators.ts (line 22)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 View
+
+
+ pre.prettyprint
+ code.
+ View(obj: ViewArgs)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/_data.json b/public/docs/js/latest/api/annotations/_data.json
index 3e9bb37394..87a24ccba8 100644
--- a/public/docs/js/latest/api/annotations/_data.json
+++ b/public/docs/js/latest/api/annotations/_data.json
@@ -12,6 +12,14 @@
"title" : "DirectiveAnnotation Class"
},
+ "ComponentArgs-interface" : {
+ "title" : "ComponentArgs Interface"
+ },
+
+ "DirectiveArgs-interface" : {
+ "title" : "DirectiveArgs Interface"
+ },
+
"onDestroy-const" : {
"title" : "onDestroy Const"
},
@@ -32,14 +40,26 @@
"title" : "onAllChangesDone Const"
},
- "Component-var" : {
- "title" : "Component Var"
+ "DirectiveTypeDecorator-interface" : {
+ "title" : "DirectiveTypeDecorator Interface"
+ },
+
+ "ComponentTypeDecorator-interface" : {
+ "title" : "ComponentTypeDecorator Interface"
+ },
+
+ "ViewTypeDecorator-interface" : {
+ "title" : "ViewTypeDecorator Interface"
},
"Directive-var" : {
"title" : "Directive Var"
},
+ "Component-var" : {
+ "title" : "Component Var"
+ },
+
"View-var" : {
"title" : "View Var"
},
diff --git a/public/docs/js/latest/api/annotations/index.jade b/public/docs/js/latest/api/annotations/index.jade
index 70a3285841..0bd0b571bd 100644
--- a/public/docs/js/latest/api/annotations/index.jade
+++ b/public/docs/js/latest/api/annotations/index.jade
@@ -1,5 +1,5 @@
p.location-badge.
- defined in
angular2/annotations.ts (line 1)
+ 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
diff --git a/public/docs/js/latest/api/annotations/onAllChangesDone-const.jade b/public/docs/js/latest/api/annotations/onAllChangesDone-const.jade
index de3c78f7fb..58659163f4 100644
--- a/public/docs/js/latest/api/annotations/onAllChangesDone-const.jade
+++ b/public/docs/js/latest/api/annotations/onAllChangesDone-const.jade
@@ -3,9 +3,11 @@
h2 onAllChangesDone
variable
p.location-badge.
exported from
angular2/annotations
+ defined in
angular2/src/core/annotations_impl/annotations.ts (line 1127)
:markdown
- Notify a directive when the bindings of all its children have been changed.
+ Notify a directive when the bindings of all its children have been checked (whether they have
+ changed or not).
## Example:
diff --git a/public/docs/js/latest/api/annotations/onAllChangesDone-var.jade b/public/docs/js/latest/api/annotations/onAllChangesDone-var.jade
deleted file mode 100644
index 0ae8c09f9f..0000000000
--- a/public/docs/js/latest/api/annotations/onAllChangesDone-var.jade
+++ /dev/null
@@ -1,24 +0,0 @@
-
-.l-main-section
- h2 onAllChangesDone
variable
- p.location-badge.
- exported from
angular2/annotations
-
- :markdown
- Notify a directive when the bindings of all its children have been changed.
-
- ## Example:
-
- ```
- @Directive({
- selector: '[class-set]',
- lifecycle: [onAllChangesDone]
- })
- class ClassSet {
-
- onAllChangesDone() {
- }
-
- }
- ```
-
diff --git a/public/docs/js/latest/api/annotations/onChange-const.jade b/public/docs/js/latest/api/annotations/onChange-const.jade
index 28fb6cc02e..df5077c041 100644
--- a/public/docs/js/latest/api/annotations/onChange-const.jade
+++ b/public/docs/js/latest/api/annotations/onChange-const.jade
@@ -3,6 +3,7 @@
h2 onChange
variable
p.location-badge.
exported from
angular2/annotations
+ defined in
angular2/src/core/annotations_impl/annotations.ts (line 1057)
:markdown
Notify a directive when any of its bindings have changed.
diff --git a/public/docs/js/latest/api/annotations/onChange-var.jade b/public/docs/js/latest/api/annotations/onChange-var.jade
deleted file mode 100644
index 64e4bf8ed3..0000000000
--- a/public/docs/js/latest/api/annotations/onChange-var.jade
+++ /dev/null
@@ -1,40 +0,0 @@
-
-.l-main-section
- h2 onChange
variable
- p.location-badge.
- exported from
angular2/annotations
-
- :markdown
- Notify a directive when any of its bindings have changed.
-
- This method is called right after the directive's bindings have been checked,
- and before any of its children's bindings have been checked.
-
- It is invoked only if at least one of the directive's bindings has changed.
-
- ## Example:
-
- ```
- @Directive({
- selector: '[class-set]',
- properties: {
- 'propA': 'propA'
- 'propB': 'propB'
- },
- lifecycle: [onChange]
- })
- class ClassSet {
- propA;
- propB;
- onChange(changes:{[idx: string, PropertyUpdate]}) {
- // This will get called after any of the properties have been updated.
- if (changes['propA']) {
- // if propA was updated
- }
- if (changes['propA']) {
- // if propB was updated
- }
- }
- }
- ```
-
diff --git a/public/docs/js/latest/api/annotations/onCheck-const.jade b/public/docs/js/latest/api/annotations/onCheck-const.jade
index 77762c0838..fe5b441f53 100644
--- a/public/docs/js/latest/api/annotations/onCheck-const.jade
+++ b/public/docs/js/latest/api/annotations/onCheck-const.jade
@@ -3,6 +3,7 @@
h2 onCheck
variable
p.location-badge.
exported from
angular2/annotations
+ defined in
angular2/src/core/annotations_impl/annotations.ts (line 1081)
:markdown
Notify a directive when it has been checked.
diff --git a/public/docs/js/latest/api/annotations/onDestroy-const.jade b/public/docs/js/latest/api/annotations/onDestroy-const.jade
index effff17f37..ade2a274ba 100644
--- a/public/docs/js/latest/api/annotations/onDestroy-const.jade
+++ b/public/docs/js/latest/api/annotations/onDestroy-const.jade
@@ -3,6 +3,7 @@
h2 onDestroy
variable
p.location-badge.
exported from
angular2/annotations
+ defined in
angular2/src/core/annotations_impl/annotations.ts (line 1019)
:markdown
Notify a directive whenever a
View
that contains it is destroyed.
diff --git a/public/docs/js/latest/api/annotations/onDestroy-var.jade b/public/docs/js/latest/api/annotations/onDestroy-var.jade
deleted file mode 100644
index 2841e122c6..0000000000
--- a/public/docs/js/latest/api/annotations/onDestroy-var.jade
+++ /dev/null
@@ -1,23 +0,0 @@
-
-.l-main-section
- h2 onDestroy
variable
- p.location-badge.
- exported from
angular2/annotations
-
- :markdown
- Notify a directive whenever a
View
that contains it is destroyed.
-
- ## Example
-
- ```
- @Directive({
- ...,
- lifecycle: [onDestroy]
- })
- class ClassSet {
- onDestroy() {
- // invoked to notify directive of the containing view destruction.
- }
- }
- ```
-
diff --git a/public/docs/js/latest/api/annotations/onInit-const.jade b/public/docs/js/latest/api/annotations/onInit-const.jade
index f0cae9ab98..a8fe61c199 100644
--- a/public/docs/js/latest/api/annotations/onInit-const.jade
+++ b/public/docs/js/latest/api/annotations/onInit-const.jade
@@ -3,6 +3,7 @@
h2 onInit
variable
p.location-badge.
exported from
angular2/annotations
+ defined in
angular2/src/core/annotations_impl/annotations.ts (line 1105)
:markdown
Notify a directive when it has been checked the first itme.
diff --git a/public/docs/js/latest/api/change_detection/AST-class.jade b/public/docs/js/latest/api/change_detection/AST-class.jade
index 4c86537842..bba67e5d4d 100644
--- a/public/docs/js/latest/api/change_detection/AST-class.jade
+++ b/public/docs/js/latest/api/change_detection/AST-class.jade
@@ -1,37 +1,20 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/parser/ast.ts (line 2)
+ defined in
angular2/src/change_detection/parser/ast.ts (line 3)
:markdown
.l-main-section
h2 Members
- .l-sub-section
- h3 assign
-
-
- pre.prettyprint
- code.
- assign(context, locals, value)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 eval
pre.prettyprint
code.
- eval(context, locals)
+ eval(context, locals: Locals)
:markdown
@@ -55,6 +38,40 @@ p.location-badge.
+ .l-sub-section
+ h3 assign
+
+
+ pre.prettyprint
+ code.
+ assign(context, locals: Locals, value)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visit
+
+
+ pre.prettyprint
+ code.
+ visit(visitor: AstVisitor)
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 toString
@@ -71,20 +88,3 @@ p.location-badge.
-
- .l-sub-section
- h3 visit
-
-
- pre.prettyprint
- code.
- visit(visitor)
-
- :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
index d02ae703f7..6b38c82a3b 100644
--- a/public/docs/js/latest/api/change_detection/ASTWithSource-class.jade
+++ b/public/docs/js/latest/api/change_detection/ASTWithSource-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/parser/ast.ts (line 296)
+ defined in
angular2/src/change_detection/parser/ast.ts (line 311)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public ast: AST, public source: string, public location: string)
+ constructor(ast: AST, source: string, location: string)
:markdown
@@ -23,23 +23,6 @@ p.location-badge.
- .l-sub-section
- h3 assign
-
-
- pre.prettyprint
- code.
- assign(context, locals, value)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 ast
@@ -54,24 +37,7 @@ p.location-badge.
.l-sub-section
- h3 eval
-
-
- pre.prettyprint
- code.
- eval(context, locals)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 isAssignable
+ h3 source
:markdown
@@ -97,9 +63,60 @@ p.location-badge.
.l-sub-section
- h3 source
+ h3 eval
+ pre.prettyprint
+ code.
+ eval(context, locals: Locals)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isAssignable
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 assign
+
+
+ pre.prettyprint
+ code.
+ assign(context, locals: Locals, value)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 visit
+
+
+ pre.prettyprint
+ code.
+ visit(visitor: AstVisitor)
+
:markdown
@@ -125,20 +142,3 @@ p.location-badge.
-
- .l-sub-section
- h3 visit
-
-
- pre.prettyprint
- code.
- visit(visitor)
-
- :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
index 13b64fa17f..a31a3f61c4 100644
--- a/public/docs/js/latest/api/change_detection/AccessMember-class.jade
+++ b/public/docs/js/latest/api/change_detection/AccessMember-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/parser/ast.ts (line 60)
+ defined in
angular2/src/change_detection/parser/ast.ts (line 75)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public receiver: AST, public name: string, public getter: Function, public setter: Function)
+ constructor(receiver: AST, name: string, getter: Function, setter: Function)
:markdown
@@ -24,54 +24,7 @@ p.location-badge.
.l-sub-section
- h3 assign
-
-
- pre.prettyprint
- code.
- assign(context, locals, value)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 eval
-
-
- pre.prettyprint
- code.
- eval(context, locals)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 getter
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 isAssignable
+ h3 receiver
:markdown
@@ -97,7 +50,7 @@ p.location-badge.
.l-sub-section
- h3 receiver
+ h3 getter
:markdown
@@ -123,12 +76,59 @@ p.location-badge.
.l-sub-section
- h3 visit
+ h3 eval
pre.prettyprint
code.
- visit(visitor)
+ eval(context, locals: Locals)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isAssignable
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 assign
+
+
+ pre.prettyprint
+ code.
+ assign(context, locals: Locals, value)
+
+ :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
index 108904e584..edb59ac38f 100644
--- a/public/docs/js/latest/api/change_detection/AstTransformer-class.jade
+++ b/public/docs/js/latest/api/change_detection/AstTransformer-class.jade
@@ -1,98 +1,13 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/parser/ast.ts (line 335)
+ defined in
angular2/src/change_detection/parser/ast.ts (line 351)
:markdown
.l-main-section
h2 Members
- .l-sub-section
- h3 visitAccessMember
-
-
- pre.prettyprint
- code.
- visitAccessMember(ast: AccessMember)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 visitAll
-
-
- pre.prettyprint
- code.
- visitAll(asts: List<any>)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 visitBinary
-
-
- pre.prettyprint
- code.
- visitBinary(ast: Binary)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 visitConditional
-
-
- pre.prettyprint
- code.
- visitConditional(ast: Conditional)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 visitFunctionCall
-
-
- pre.prettyprint
- code.
- visitFunctionCall(ast: FunctionCall)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 visitImplicitReceiver
@@ -128,12 +43,97 @@ p.location-badge.
.l-sub-section
- h3 visitKeyedAccess
+ h3 visitLiteralPrimitive
pre.prettyprint
code.
- visitKeyedAccess(ast: KeyedAccess)
+ 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
@@ -179,46 +179,12 @@ p.location-badge.
.l-sub-section
- h3 visitLiteralPrimitive
+ h3 visitBinary
pre.prettyprint
code.
- visitLiteralPrimitive(ast: LiteralPrimitive)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 visitMethodCall
-
-
- pre.prettyprint
- code.
- visitMethodCall(ast: MethodCall)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 visitPipe
-
-
- pre.prettyprint
- code.
- visitPipe(ast: Pipe)
+ visitBinary(ast: Binary)
:markdown
@@ -247,12 +213,12 @@ p.location-badge.
.l-sub-section
- h3 visitSafeAccessMember
+ h3 visitConditional
pre.prettyprint
code.
- visitSafeAccessMember(ast: SafeAccessMember)
+ visitConditional(ast: Conditional)
:markdown
@@ -264,12 +230,97 @@ p.location-badge.
.l-sub-section
- h3 visitSafeMethodCall
+ h3 visitPipe
pre.prettyprint
code.
- visitSafeMethodCall(ast: SafeMethodCall)
+ visitPipe(ast: Pipe)
+
+ :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/BindingRecord-class.jade b/public/docs/js/latest/api/change_detection/BindingRecord-class.jade
index 3b80a90006..9af04d4c3f 100644
--- a/public/docs/js/latest/api/change_detection/BindingRecord-class.jade
+++ b/public/docs/js/latest/api/change_detection/BindingRecord-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/binding_record.ts (line 9)
+ defined in
angular2/src/change_detection/binding_record.ts (line 9)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public mode: string, public implicitReceiver: any, public ast: AST, public elementIndex: number, public propertyName: string, public setter: SetterFn, public lifecycleEvent: string, public directiveRecord: DirectiveRecord)
+ constructor(mode: string, implicitReceiver: any, ast: AST, elementIndex: number, propertyName: string, setter: SetterFn, lifecycleEvent: string, directiveRecord: DirectiveRecord)
:markdown
@@ -23,6 +23,32 @@ p.location-badge.
+ .l-sub-section
+ h3 mode
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 implicitReceiver
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 ast
@@ -36,6 +62,71 @@ p.location-badge.
+ .l-sub-section
+ h3 elementIndex
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 propertyName
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 setter
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 lifecycleEvent
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 directiveRecord
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 callOnChange
@@ -54,34 +145,12 @@ p.location-badge.
.l-sub-section
- h3 directiveRecord
+ h3 isOnPushChangeDetection
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 elementIndex
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 implicitReceiver
-
+ pre.prettyprint
+ code.
+ isOnPushChangeDetection()
:markdown
@@ -143,23 +212,6 @@ p.location-badge.
- .l-sub-section
- h3 isOnPushChangeDetection
-
-
- pre.prettyprint
- code.
- isOnPushChangeDetection()
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 isTextNode
@@ -176,55 +228,3 @@ p.location-badge.
-
- .l-sub-section
- h3 lifecycleEvent
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 mode
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 propertyName
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 setter
-
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/CHECKED-const.jade b/public/docs/js/latest/api/change_detection/CHECKED-const.jade
index 783b7e80c9..814166a194 100644
--- a/public/docs/js/latest/api/change_detection/CHECKED-const.jade
+++ b/public/docs/js/latest/api/change_detection/CHECKED-const.jade
@@ -3,6 +3,7 @@
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
diff --git a/public/docs/js/latest/api/change_detection/CHECK_ALWAYS-const.jade b/public/docs/js/latest/api/change_detection/CHECK_ALWAYS-const.jade
index 4644fd1b06..87ef59f8cb 100644
--- a/public/docs/js/latest/api/change_detection/CHECK_ALWAYS-const.jade
+++ b/public/docs/js/latest/api/change_detection/CHECK_ALWAYS-const.jade
@@ -3,6 +3,7 @@
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
diff --git a/public/docs/js/latest/api/change_detection/CHECK_ONCE-const.jade b/public/docs/js/latest/api/change_detection/CHECK_ONCE-const.jade
index 3f87294584..b89f6bca7f 100644
--- a/public/docs/js/latest/api/change_detection/CHECK_ONCE-const.jade
+++ b/public/docs/js/latest/api/change_detection/CHECK_ONCE-const.jade
@@ -3,6 +3,7 @@
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
diff --git a/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade b/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade
index a4874a933b..095294df33 100644
--- a/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade
+++ b/public/docs/js/latest/api/change_detection/ChangeDetection-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/interfaces.ts (line 8)
+ defined in
angular2/src/change_detection/interfaces.ts (line 4)
:markdown
Interface used by Angular to control the change detection strategy for an application.
@@ -20,7 +20,8 @@ p.location-badge.
`JitChangeDetection` strategy at compile time.
- See:
DynamicChangeDetection
,
JitChangeDetection
+ See:
DynamicChangeDetection
,
JitChangeDetection
,
+
PreGeneratedChangeDetection
# Example
```javascript
diff --git a/public/docs/js/latest/api/change_detection/ChangeDetectionError-class.jade b/public/docs/js/latest/api/change_detection/ChangeDetectionError-class.jade
index 7ffcb68085..e922feaa47 100644
--- a/public/docs/js/latest/api/change_detection/ChangeDetectionError-class.jade
+++ b/public/docs/js/latest/api/change_detection/ChangeDetectionError-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/exceptions.ts (line 15)
+ defined in
angular2/src/change_detection/exceptions.ts (line 15)
:markdown
@@ -24,7 +24,7 @@ p.location-badge.
.l-sub-section
- h3 location
+ h3 message
:markdown
@@ -37,7 +37,7 @@ p.location-badge.
.l-sub-section
- h3 message
+ h3 location
:markdown
diff --git a/public/docs/js/latest/api/change_detection/ChangeDetector-class.jade b/public/docs/js/latest/api/change_detection/ChangeDetector-interface.jade
similarity index 90%
rename from public/docs/js/latest/api/change_detection/ChangeDetector-class.jade
rename to public/docs/js/latest/api/change_detection/ChangeDetector-interface.jade
index b79533c457..f4766cc717 100644
--- a/public/docs/js/latest/api/change_detection/ChangeDetector-class.jade
+++ b/public/docs/js/latest/api/change_detection/ChangeDetector-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/interfaces.ts (line 43)
+ defined in
angular2/src/change_detection/interfaces.ts (line 41)
:markdown
@@ -9,115 +9,9 @@ p.location-badge.
.l-main-section
h2 Members
.l-sub-section
- h3 addChild
+ h3 parent
- pre.prettyprint
- code.
- addChild(cd: ChangeDetector)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 addShadowDomChild
-
-
- pre.prettyprint
- code.
- addShadowDomChild(cd: ChangeDetector)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 checkNoChanges
-
-
- pre.prettyprint
- code.
- checkNoChanges()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 dehydrate
-
-
- pre.prettyprint
- code.
- dehydrate()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 detectChanges
-
-
- pre.prettyprint
- code.
- detectChanges()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 hydrate
-
-
- pre.prettyprint
- code.
- hydrate(context: any, locals: Locals, directives: any)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 markPathToRootAsCheckOnce
-
-
- pre.prettyprint
- code.
- markPathToRootAsCheckOnce()
-
:markdown
@@ -141,9 +35,13 @@ p.location-badge.
.l-sub-section
- h3 parent
+ h3 addChild
+ pre.prettyprint
+ code.
+ addChild(cd: ChangeDetector)
+
:markdown
@@ -154,12 +52,12 @@ p.location-badge.
.l-sub-section
- h3 remove
+ h3 addShadowDomChild
pre.prettyprint
code.
- remove()
+ addShadowDomChild(cd: ChangeDetector)
:markdown
@@ -203,3 +101,105 @@ p.location-badge.
+
+ .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)
+
+ :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
index 95e659aa3d..11cd7c040e 100644
--- a/public/docs/js/latest/api/change_detection/ChangeDetectorDefinition-class.jade
+++ b/public/docs/js/latest/api/change_detection/ChangeDetectorDefinition-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/interfaces.ts (line 60)
+ defined in
angular2/src/change_detection/interfaces.ts (line 60)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public id: string, public strategy: string, public variableNames: List<string>, public bindingRecords: List<BindingRecord>, public directiveRecords: List<DirectiveRecord>)
+ constructor(id: string, strategy: string, variableNames: List<string>, bindingRecords: List<BindingRecord>, directiveRecords: List<DirectiveRecord>)
:markdown
@@ -23,32 +23,6 @@ p.location-badge.
- .l-sub-section
- h3 bindingRecords
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 directiveRecords
-
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 id
@@ -87,3 +61,29 @@ p.location-badge.
+
+ .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
index 5b5455d2b9..9d5119a802 100644
--- a/public/docs/js/latest/api/change_detection/ChangeDetectorRef-class.jade
+++ b/public/docs/js/latest/api/change_detection/ChangeDetectorRef-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/change_detector_ref.ts (line 2)
+ defined in
angular2/src/change_detection/change_detector_ref.ts (line 2)
:markdown
Controls change detection.
@@ -18,7 +18,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(private _cd: ChangeDetector)
+ constructor(_cd: ChangeDetector)
:markdown
@@ -27,6 +27,24 @@ p.location-badge.
+ .l-sub-section
+ h3 requestCheck
+
+
+ pre.prettyprint
+ code.
+ requestCheck()
+
+ :markdown
+
+ Request to check all ON_PUSH ancestors.
+
+
+
+
+
+
+
.l-sub-section
h3 detach
@@ -68,21 +86,3 @@ p.location-badge.
-
- .l-sub-section
- h3 requestCheck
-
-
- pre.prettyprint
- code.
- requestCheck()
-
- :markdown
-
- Request to check all ON_PUSH ancestors.
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/ChangeDispatcher-class.jade b/public/docs/js/latest/api/change_detection/ChangeDispatcher-class.jade
deleted file mode 100644
index e1f2d652ef..0000000000
--- a/public/docs/js/latest/api/change_detection/ChangeDispatcher-class.jade
+++ /dev/null
@@ -1,26 +0,0 @@
-
-p.location-badge.
- exported from
angular2/change_detection
- defined in
angular2/src/change_detection/interfaces.ts (line 39)
-
-:markdown
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 notifyOnBinding
-
-
- pre.prettyprint
- code.
- notifyOnBinding(bindingRecord: BindingRecord, value: any)
-
- :markdown
-
-
-
-
-
-
-
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..02a60cc29b
--- /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 36)
+
+: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-const.jade b/public/docs/js/latest/api/change_detection/DEFAULT-const.jade
index bf821ed7c2..c401ff49c6 100644
--- a/public/docs/js/latest/api/change_detection/DEFAULT-const.jade
+++ b/public/docs/js/latest/api/change_detection/DEFAULT-const.jade
@@ -3,6 +3,7 @@
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-const.jade b/public/docs/js/latest/api/change_detection/DETACHED-const.jade
index dc0eb8da5d..42367e7aa6 100644
--- a/public/docs/js/latest/api/change_detection/DETACHED-const.jade
+++ b/public/docs/js/latest/api/change_detection/DETACHED-const.jade
@@ -3,6 +3,7 @@
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
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..73dbacf83c
--- /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 28)
+
+: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
index 7fd1851ee9..04af860677 100644
--- a/public/docs/js/latest/api/change_detection/DirectiveIndex-class.jade
+++ b/public/docs/js/latest/api/change_detection/DirectiveIndex-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/directive_record.ts (line 2)
+ defined in
angular2/src/change_detection/directive_record.ts (line 2)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public elementIndex: number, public directiveIndex: number)
+ constructor(elementIndex: number, directiveIndex: number)
:markdown
@@ -23,19 +23,6 @@ p.location-badge.
- .l-sub-section
- h3 directiveIndex
-
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 elementIndex
@@ -49,6 +36,19 @@ p.location-badge.
+ .l-sub-section
+ h3 directiveIndex
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 name
diff --git a/public/docs/js/latest/api/change_detection/DirectiveRecord-class.jade b/public/docs/js/latest/api/change_detection/DirectiveRecord-class.jade
index 8f6c27d27d..b300f206c8 100644
--- a/public/docs/js/latest/api/change_detection/DirectiveRecord-class.jade
+++ b/public/docs/js/latest/api/change_detection/DirectiveRecord-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/directive_record.ts (line 8)
+ defined in
angular2/src/change_detection/directive_record.ts (line 8)
:markdown
@@ -15,14 +15,14 @@ p.location-badge.
pre.prettyprint
code.
constructor({directiveIndex, callOnAllChangesDone, callOnChange, callOnCheck, callOnInit,
- changeDetection}: {
+ changeDetection}?: {
directiveIndex?: DirectiveIndex,
callOnAllChangesDone?: boolean,
callOnChange?: boolean,
callOnCheck?: boolean,
callOnInit?: boolean,
changeDetection?: string
- } = {})
+ })
:markdown
@@ -31,6 +31,19 @@ p.location-badge.
+ .l-sub-section
+ h3 directiveIndex
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 callOnAllChangesDone
@@ -96,19 +109,6 @@ p.location-badge.
- .l-sub-section
- h3 directiveIndex
-
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 isOnPushChangeDetection
diff --git a/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade b/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade
index a79fe41b4b..9363a6c9b4 100644
--- a/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade
+++ b/public/docs/js/latest/api/change_detection/DynamicChangeDetection-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/change_detection.ts (line 95)
+ defined in
angular2/src/change_detection/change_detection.ts (line 112)
:markdown
Implements change detection that does not require `eval()`.
@@ -16,7 +16,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(private registry: PipeRegistry)
+ constructor(registry: PipeRegistry)
:markdown
@@ -25,6 +25,19 @@ p.location-badge.
+ .l-sub-section
+ h3 registry
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 createProtoChangeDetector
@@ -41,16 +54,3 @@ p.location-badge.
-
- .l-sub-section
- h3 registry
-
-
- :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
index b3c017fef7..54663913ad 100644
--- a/public/docs/js/latest/api/change_detection/DynamicChangeDetector-class.jade
+++ b/public/docs/js/latest/api/change_detection/DynamicChangeDetector-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/dynamic_change_detector.ts (line 27)
+ defined in
angular2/src/change_detection/dynamic_change_detector.ts (line 13)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(private changeControlStrategy: string, private dispatcher: any, private pipeRegistry: PipeRegistry, private protos: List<ProtoRecord>, private directiveRecords: List<any>)
+ constructor(id: string, changeControlStrategy: string, dispatcher: any, pipeRegistry: PipeRegistry, protos: List<ProtoRecord>, directiveRecords: List<any>)
:markdown
@@ -23,169 +23,6 @@ p.location-badge.
- .l-sub-section
- h3 alreadyChecked
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 callOnAllChangesDone
-
-
- pre.prettyprint
- code.
- callOnAllChangesDone()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 changeControlStrategy
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 changes
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 dehydrate
-
-
- pre.prettyprint
- code.
- dehydrate()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 detectChangesInRecords
-
-
- pre.prettyprint
- code.
- detectChangesInRecords(throwOnChange: boolean)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 directiveRecords
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 directives
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 dispatcher
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 hydrate
-
-
- pre.prettyprint
- code.
- hydrate(context: any, locals: any, directives: any)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 hydrated
-
-
- pre.prettyprint
- code.
- hydrated()
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 locals
@@ -200,7 +37,20 @@ p.location-badge.
.l-sub-section
- h3 pipeRegistry
+ h3 values
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 changes
:markdown
@@ -238,6 +88,71 @@ p.location-badge.
+ .l-sub-section
+ h3 directives
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 alreadyChecked
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 changeControlStrategy
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dispatcher
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 pipeRegistry
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 protos
@@ -252,7 +167,7 @@ p.location-badge.
.l-sub-section
- h3 values
+ h3 directiveRecords
:markdown
@@ -263,3 +178,88 @@ p.location-badge.
+
+ .l-sub-section
+ h3 hydrate
+
+
+ pre.prettyprint
+ code.
+ hydrate(context: any, locals: Locals, directives: any)
+
+ :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
index 5affe61275..f51c92a84f 100644
--- a/public/docs/js/latest/api/change_detection/DynamicProtoChangeDetector-class.jade
+++ b/public/docs/js/latest/api/change_detection/DynamicProtoChangeDetector-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/proto_change_detector.ts (line 58)
+ defined in
angular2/src/change_detection/proto_change_detector.ts (line 37)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(private _pipeRegistry: PipeRegistry, private definition: ChangeDetectorDefinition)
+ constructor(_pipeRegistry: PipeRegistry, definition: ChangeDetectorDefinition)
: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
index 7c7af9320b..191047314f 100644
--- a/public/docs/js/latest/api/change_detection/ExpressionChangedAfterItHasBeenChecked-class.jade
+++ b/public/docs/js/latest/api/change_detection/ExpressionChangedAfterItHasBeenChecked-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/exceptions.ts (line 2)
+ defined in
angular2/src/change_detection/exceptions.ts (line 2)
: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
index 8ad878c1d1..bc811e618c 100644
--- a/public/docs/js/latest/api/change_detection/ImplicitReceiver-class.jade
+++ b/public/docs/js/latest/api/change_detection/ImplicitReceiver-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/parser/ast.ts (line 22)
+ defined in
angular2/src/change_detection/parser/ast.ts (line 23)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- eval(context, locals)
+ eval(context, locals: Locals)
:markdown
@@ -31,7 +31,7 @@ p.location-badge.
pre.prettyprint
code.
- visit(visitor)
+ 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
index 0895c4f450..a0e49b72d1 100644
--- a/public/docs/js/latest/api/change_detection/JitChangeDetection-class.jade
+++ b/public/docs/js/latest/api/change_detection/JitChangeDetection-class.jade
@@ -1,13 +1,13 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/change_detection.ts (line 112)
+ defined in
angular2/src/change_detection/change_detection.ts (line 129)
:markdown
- Implements faster change detection, by generating source code.
+ Implements faster change detection by generating source code.
This requires `eval()`. For change detection that does not require `eval()`, see
-
DynamicChangeDetection
.
+
DynamicChangeDetection
and
PreGeneratedChangeDetection
.
.l-main-section
h2 Members
@@ -17,7 +17,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public registry: PipeRegistry)
+ constructor(registry: PipeRegistry)
:markdown
@@ -26,6 +26,19 @@ p.location-badge.
+ .l-sub-section
+ h3 registry
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 createProtoChangeDetector
@@ -42,16 +55,3 @@ p.location-badge.
-
- .l-sub-section
- h3 registry
-
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/JitProtoChangeDetector-class.jade b/public/docs/js/latest/api/change_detection/JitProtoChangeDetector-class.jade
deleted file mode 100644
index 4ded1e1776..0000000000
--- a/public/docs/js/latest/api/change_detection/JitProtoChangeDetector-class.jade
+++ /dev/null
@@ -1,54 +0,0 @@
-
-p.location-badge.
- exported from
angular2/change_detection
- defined in
angular2/src/change_detection/proto_change_detector.ts (line 81)
-
-:markdown
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor(private _pipeRegistry, private 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/Lexer-class.jade b/public/docs/js/latest/api/change_detection/Lexer-class.jade
index b8837eadd6..eb89138c94 100644
--- a/public/docs/js/latest/api/change_detection/Lexer-class.jade
+++ b/public/docs/js/latest/api/change_detection/Lexer-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/parser/lexer.ts (line 10)
+ defined in
angular2/src/change_detection/parser/lexer.ts (line 18)
:markdown
diff --git a/public/docs/js/latest/api/change_detection/LifeCycle-class.jade b/public/docs/js/latest/api/change_detection/LifeCycle-class.jade
deleted file mode 100644
index 09bbaaf2f9..0000000000
--- a/public/docs/js/latest/api/change_detection/LifeCycle-class.jade
+++ /dev/null
@@ -1,64 +0,0 @@
-
-p.location-badge.
- exported from
angular2/change_detection
- defined in
angular2/src/core/life_cycle/life_cycle.js (line 31)
-
-:markdown
- Provides access to explicitly trigger change detection in an application.
-
- By default, `Zone` triggers change detection in Angular on each virtual machine (VM) turn. When testing, or in some
- limited application use cases, a developer can also trigger change detection with the `lifecycle.tick()` method.
-
- Each Angular application has a single `LifeCycle` instance.
-
- # Example
-
- This is a contrived example, since the bootstrap automatically runs inside of the `Zone`, which invokes
- `lifecycle.tick()` on your behalf.
-
- ```javascript
- bootstrap(MyApp).then((ref:ComponentRef) => {
- var lifeCycle = ref.injector.get(LifeCycle);
- var myApp = ref.instance;
-
- ref.doSomething();
- lifecycle.tick();
- });
- ```
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor(exceptionHandler:ExceptionHandler, changeDetector:ChangeDetector = null, enforceNoNewChanges:boolean = false)
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 tick
-
-
- pre.prettyprint
- code.
- tick()
-
- :markdown
-
- Invoke this method to explicitly process change detection and its side-effects.
-
- In development mode, `tick()` also performs a second change detection cycle to ensure that no further
- changes are detected. If additional changes are picked up during this second cycle, bindings in the app have
- side-effects that cannot be resolved in a single change detection pass. In this case, Angular throws an error,
- since an Angular application can only have one change detection pass during which all change detection must
- complete.
-
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/LiteralArray-class.jade b/public/docs/js/latest/api/change_detection/LiteralArray-class.jade
index 913ac7b1dc..98bf0337fe 100644
--- a/public/docs/js/latest/api/change_detection/LiteralArray-class.jade
+++ b/public/docs/js/latest/api/change_detection/LiteralArray-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/parser/ast.ts (line 144)
+ defined in
angular2/src/change_detection/parser/ast.ts (line 159)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public expressions: List<any>)
+ constructor(expressions: List<any>)
:markdown
@@ -23,23 +23,6 @@ p.location-badge.
- .l-sub-section
- h3 eval
-
-
- pre.prettyprint
- code.
- eval(context, locals)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 expressions
@@ -54,12 +37,29 @@ p.location-badge.
.l-sub-section
- h3 visit
+ h3 eval
pre.prettyprint
code.
- visit(visitor)
+ eval(context, 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
index ca550e83c5..8af13c4ad6 100644
--- a/public/docs/js/latest/api/change_detection/Locals-class.jade
+++ b/public/docs/js/latest/api/change_detection/Locals-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/parser/locals.ts (line 2)
+ defined in
angular2/src/change_detection/parser/locals.ts (line 2)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public parent: Locals, public current: Map<any, any>)
+ constructor(parent: Locals, current: Map<any, any>)
:markdown
@@ -24,12 +24,21 @@ p.location-badge.
.l-sub-section
- h3 clearValues
+ h3 parent
- pre.prettyprint
- code.
- clearValues()
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 current
+
:markdown
@@ -57,19 +66,6 @@ p.location-badge.
- .l-sub-section
- h3 current
-
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 get
@@ -87,19 +83,6 @@ p.location-badge.
- .l-sub-section
- h3 parent
-
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 set
@@ -116,3 +99,20 @@ p.location-badge.
+
+ .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
index a3453e8bfd..a8d26f2110 100644
--- a/public/docs/js/latest/api/change_detection/NullPipe-class.jade
+++ b/public/docs/js/latest/api/change_detection/NullPipe-class.jade
@@ -1,27 +1,12 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/pipes/null_pipe.ts (line 14)
+ defined in
angular2/src/change_detection/pipes/null_pipe.ts (line 14)
:markdown
.l-main-section
h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor()
-
- :markdown
-
-
-
-
-
-
.l-sub-section
h3 called
diff --git a/public/docs/js/latest/api/change_detection/NullPipeFactory-class.jade b/public/docs/js/latest/api/change_detection/NullPipeFactory-class.jade
index dd8671e235..429bc437ca 100644
--- a/public/docs/js/latest/api/change_detection/NullPipeFactory-class.jade
+++ b/public/docs/js/latest/api/change_detection/NullPipeFactory-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/pipes/null_pipe.ts (line 2)
+ defined in
angular2/src/change_detection/pipes/null_pipe.ts (line 2)
:markdown
@@ -22,23 +22,6 @@ p.location-badge.
- .l-sub-section
- h3 create
-
-
- pre.prettyprint
- code.
- create(cdRef)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 supports
@@ -55,3 +38,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 create
+
+
+ pre.prettyprint
+ code.
+ create(cdRef)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/ON_PUSH-const.jade b/public/docs/js/latest/api/change_detection/ON_PUSH-const.jade
index 0a4757abc9..b74c6cebf9 100644
--- a/public/docs/js/latest/api/change_detection/ON_PUSH-const.jade
+++ b/public/docs/js/latest/api/change_detection/ON_PUSH-const.jade
@@ -3,6 +3,7 @@
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
index a15c669e0a..f51a5699ff 100644
--- a/public/docs/js/latest/api/change_detection/Parser-class.jade
+++ b/public/docs/js/latest/api/change_detection/Parser-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/parser/parser.ts (line 53)
+ defined in
angular2/src/change_detection/parser/parser.ts (line 54)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(lexer: Lexer, providedReflector: Reflector = null)
+ constructor(_lexer: Lexer, providedReflector?: Reflector)
:markdown
@@ -23,23 +23,6 @@ p.location-badge.
- .l-sub-section
- h3 addPipes
-
-
- pre.prettyprint
- code.
- addPipes(bindingAst: ASTWithSource, pipes: List<string>)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 parseAction
@@ -75,12 +58,12 @@ p.location-badge.
.l-sub-section
- h3 parseInterpolation
+ h3 addPipes
pre.prettyprint
code.
- parseInterpolation(input: string, location: any)
+ addPipes(bindingAst: ASTWithSource, pipes: List<string>)
:markdown
@@ -108,6 +91,23 @@ p.location-badge.
+ .l-sub-section
+ h3 parseInterpolation
+
+
+ pre.prettyprint
+ code.
+ parseInterpolation(input: string, location: any)
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 wrapLiteralPrimitive
diff --git a/public/docs/js/latest/api/change_detection/Pipe-class.jade b/public/docs/js/latest/api/change_detection/Pipe-class.jade
index c28ca4b202..c87c2b4f99 100644
--- a/public/docs/js/latest/api/change_detection/Pipe-class.jade
+++ b/public/docs/js/latest/api/change_detection/Pipe-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/pipes/pipe.ts (line 29)
+ defined in
angular2/src/change_detection/pipes/pipe.ts (line 29)
:markdown
An interface for extending the list of pipes known to Angular.
@@ -25,12 +25,12 @@ p.location-badge.
.l-main-section
h2 Members
.l-sub-section
- h3 onDestroy
+ h3 supports
pre.prettyprint
code.
- onDestroy()
+ supports(obj)
:markdown
@@ -42,12 +42,12 @@ p.location-badge.
.l-sub-section
- h3 supports
+ h3 onDestroy
pre.prettyprint
code.
- supports(obj)
+ onDestroy()
:markdown
diff --git a/public/docs/js/latest/api/change_detection/PipeFactory-class.jade b/public/docs/js/latest/api/change_detection/PipeFactory-class.jade
index 09e3e84cfd..ff74fb9771 100644
--- a/public/docs/js/latest/api/change_detection/PipeFactory-class.jade
+++ b/public/docs/js/latest/api/change_detection/PipeFactory-class.jade
@@ -1,30 +1,13 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/pipes/pipe.ts (line 56)
+ defined in
angular2/src/change_detection/pipes/pipe.ts (line 56)
:markdown
.l-main-section
h2 Members
- .l-sub-section
- h3 create
-
-
- pre.prettyprint
- code.
- create(cdRef)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 supports
@@ -41,3 +24,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 create
+
+
+ pre.prettyprint
+ code.
+ create(cdRef)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/PipeRegistry-class.jade b/public/docs/js/latest/api/change_detection/PipeRegistry-class.jade
index 9481015ebc..c5becca991 100644
--- a/public/docs/js/latest/api/change_detection/PipeRegistry-class.jade
+++ b/public/docs/js/latest/api/change_detection/PipeRegistry-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/pipes/pipe_registry.ts (line 5)
+ defined in
angular2/src/change_detection/pipes/pipe_registry.ts (line 5)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public config)
+ constructor(config)
: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
index e1c25d9a44..d05749eca3 100644
--- a/public/docs/js/latest/api/change_detection/PreGeneratedChangeDetection-class.jade
+++ b/public/docs/js/latest/api/change_detection/PreGeneratedChangeDetection-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/change_detection.ts (line 69)
+ defined in
angular2/src/change_detection/change_detection.ts (line 80)
:markdown
Implements change detection using a map of pregenerated proto detectors.
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(private registry: PipeRegistry, protoChangeDetectors?)
+ constructor(registry: PipeRegistry, protoChangeDetectorsForTest?: StringMap<string, Function>)
:markdown
@@ -23,6 +23,19 @@ p.location-badge.
+ .l-sub-section
+ h3 registry
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 createProtoChangeDetector
@@ -39,16 +52,3 @@ p.location-badge.
-
- .l-sub-section
- h3 registry
-
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/ProtoChangeDetector-class.jade b/public/docs/js/latest/api/change_detection/ProtoChangeDetector-interface.jade
similarity index 60%
rename from public/docs/js/latest/api/change_detection/ProtoChangeDetector-class.jade
rename to public/docs/js/latest/api/change_detection/ProtoChangeDetector-interface.jade
index 9f8beec4be..d48a4b5520 100644
--- a/public/docs/js/latest/api/change_detection/ProtoChangeDetector-class.jade
+++ b/public/docs/js/latest/api/change_detection/ProtoChangeDetector-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/interfaces.ts (line 4)
+ defined in
angular2/src/change_detection/interfaces.ts (line 58)
: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
index 4a48b9a149..2458e8c776 100644
--- a/public/docs/js/latest/api/change_detection/WrappedValue-class.jade
+++ b/public/docs/js/latest/api/change_detection/WrappedValue-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/pipes/pipe.ts (line 1)
+ defined in
angular2/src/change_detection/pipes/pipe.ts (line 1)
:markdown
Indicates that the result of a
Pipe
transformation has changed even though the reference
@@ -17,7 +17,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public wrapped: any)
+ constructor(wrapped: any)
:markdown
diff --git a/public/docs/js/latest/api/change_detection/_data.json b/public/docs/js/latest/api/change_detection/_data.json
index 346ef5eecb..80f9431efb 100644
--- a/public/docs/js/latest/api/change_detection/_data.json
+++ b/public/docs/js/latest/api/change_detection/_data.json
@@ -40,6 +40,10 @@
"title" : "Locals Class"
},
+ "DehydratedException-class" : {
+ "title" : "DehydratedException Class"
+ },
+
"ExpressionChangedAfterItHasBeenChecked-class" : {
"title" : "ExpressionChangedAfterItHasBeenChecked Class"
},
@@ -48,16 +52,16 @@
"title" : "ChangeDetectionError Class"
},
- "ProtoChangeDetector-class" : {
- "title" : "ProtoChangeDetector Class"
+ "ProtoChangeDetector-interface" : {
+ "title" : "ProtoChangeDetector Interface"
},
- "ChangeDispatcher-class" : {
- "title" : "ChangeDispatcher Class"
+ "ChangeDetector-interface" : {
+ "title" : "ChangeDetector Interface"
},
- "ChangeDetector-class" : {
- "title" : "ChangeDetector Class"
+ "ChangeDispatcher-interface" : {
+ "title" : "ChangeDispatcher Interface"
},
"ChangeDetection-class" : {
@@ -96,10 +100,6 @@
"title" : "DynamicProtoChangeDetector Class"
},
- "JitProtoChangeDetector-class" : {
- "title" : "JitProtoChangeDetector Class"
- },
-
"BindingRecord-class" : {
"title" : "BindingRecord Class"
},
diff --git a/public/docs/js/latest/api/change_detection/defaultPipeRegistry-var.jade b/public/docs/js/latest/api/change_detection/defaultPipeRegistry-var.jade
index f7a5798a57..e01ec93e77 100644
--- a/public/docs/js/latest/api/change_detection/defaultPipeRegistry-var.jade
+++ b/public/docs/js/latest/api/change_detection/defaultPipeRegistry-var.jade
@@ -3,6 +3,7 @@
h2 defaultPipeRegistry
variable
p.location-badge.
exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/change_detection.ts (line 150)
:markdown
diff --git a/public/docs/js/latest/api/change_detection/defaultPipes-var.jade b/public/docs/js/latest/api/change_detection/defaultPipes-var.jade
index d6cb1026b6..654b149e92 100644
--- a/public/docs/js/latest/api/change_detection/defaultPipes-var.jade
+++ b/public/docs/js/latest/api/change_detection/defaultPipes-var.jade
@@ -3,6 +3,7 @@
h2 defaultPipes
variable
p.location-badge.
exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/change_detection.ts (line 62)
:markdown
diff --git a/public/docs/js/latest/api/change_detection/index.jade b/public/docs/js/latest/api/change_detection/index.jade
index 488d08f023..53679d53e4 100644
--- a/public/docs/js/latest/api/change_detection/index.jade
+++ b/public/docs/js/latest/api/change_detection/index.jade
@@ -1,5 +1,5 @@
p.location-badge.
- defined in
angular2/change_detection.ts (line 1)
+ 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
diff --git a/public/docs/js/latest/api/change_detection/preGeneratedProtoDetectors-var.jade b/public/docs/js/latest/api/change_detection/preGeneratedProtoDetectors-var.jade
index 1e6faec7f7..4923fd03c4 100644
--- a/public/docs/js/latest/api/change_detection/preGeneratedProtoDetectors-var.jade
+++ b/public/docs/js/latest/api/change_detection/preGeneratedProtoDetectors-var.jade
@@ -3,8 +3,12 @@
h2 preGeneratedProtoDetectors
variable
p.location-badge.
exported from
angular2/change_detection
+ defined in
angular2/src/change_detection/change_detection.ts (line 78)
:markdown
+ Map from
ChangeDetectorDefinition
to a factory method which takes a
+
PipeRegistry
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
index 9d7b90c7a9..b7e945ab73 100644
--- a/public/docs/js/latest/api/change_detection/uninitialized-var.jade
+++ b/public/docs/js/latest/api/change_detection/uninitialized-var.jade
@@ -3,6 +3,7 @@
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/AncestorAnnotation-class.jade b/public/docs/js/latest/api/core/AncestorAnnotation-class.jade
index 13cee5f6d2..3a6c2e53b6 100644
--- a/public/docs/js/latest/api/core/AncestorAnnotation-class.jade
+++ b/public/docs/js/latest/api/core/AncestorAnnotation-class.jade
@@ -1,14 +1,15 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/annotations_impl/visibility.ts (line 105)
+ defined in
angular2/src/core/annotations_impl/visibility.ts (line 110)
:markdown
Specifies that an injector should retrieve a dependency from any ancestor element within the same
shadow boundary.
- An ancestor is any element between the parent element and shadow root.
+ An ancestor is any element between the parent element and the shadow root.
+ Use
Unbounded
if you need to cross upper shadow boundaries.
## Example
@@ -65,7 +66,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor({self}: {self?: boolean} = {})
+ constructor({self}?: {self?: boolean})
:markdown
@@ -73,3 +74,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/ApplicationRef-class.jade b/public/docs/js/latest/api/core/ApplicationRef-class.jade
index e4d3739c00..fd75559c4d 100644
--- a/public/docs/js/latest/api/core/ApplicationRef-class.jade
+++ b/public/docs/js/latest/api/core/ApplicationRef-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/application.ts (line 311)
+ defined in
angular2/src/core/application.ts (line 317)
:markdown
@@ -24,13 +24,9 @@ p.location-badge.
.l-sub-section
- h3 dispose
+ h3 hostComponentType
- pre.prettyprint
- code.
- dispose()
-
:markdown
@@ -54,9 +50,13 @@ p.location-badge.
.l-sub-section
- h3 hostComponentType
+ h3 dispose
+ pre.prettyprint
+ code.
+ dispose()
+
:markdown
diff --git a/public/docs/js/latest/api/core/AttributeAnnotation-class.jade b/public/docs/js/latest/api/core/AttributeAnnotation-class.jade
index 590e520442..cbc6e845d6 100644
--- a/public/docs/js/latest/api/core/AttributeAnnotation-class.jade
+++ b/public/docs/js/latest/api/core/AttributeAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/annotations_impl/di.ts (line 2)
+ defined in
angular2/src/core/annotations_impl/di.ts (line 3)
:markdown
Specifies that a constant attribute value should be injected.
@@ -37,7 +37,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public attributeName: string)
+ constructor(attributeName: string)
:markdown
@@ -71,3 +71,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/Compiler-class.jade b/public/docs/js/latest/api/core/Compiler-class.jade
index b9a19ae6a6..5ce7ad4c35 100644
--- a/public/docs/js/latest/api/core/Compiler-class.jade
+++ b/public/docs/js/latest/api/core/Compiler-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/compiler.ts (line 46)
+ defined in
angular2/src/core/compiler/compiler.ts (line 58)
:markdown
@@ -13,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(reader: DirectiveResolver, cache: CompilerCache, templateResolver: TemplateResolver, componentUrlMapper: ComponentUrlMapper, urlResolver: UrlResolver, render: renderApi.RenderCompiler, protoViewFactory: ProtoViewFactory)
+ constructor(reader: DirectiveResolver, cache: CompilerCache, templateResolver: TemplateResolver, componentUrlMapper: ComponentUrlMapper, urlResolver: UrlResolver, render:RenderCompiler, protoViewFactory: ProtoViewFactory)
:markdown
@@ -22,23 +22,6 @@ p.location-badge.
- .l-sub-section
- h3 compile
-
-
- pre.prettyprint
- code.
- compile(component: Type)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 compileInHost
diff --git a/public/docs/js/latest/api/core/CompilerCache-class.jade b/public/docs/js/latest/api/core/CompilerCache-class.jade
index f4a0b38c08..28e900876b 100644
--- a/public/docs/js/latest/api/core/CompilerCache-class.jade
+++ b/public/docs/js/latest/api/core/CompilerCache-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/compiler.ts (line 25)
+ defined in
angular2/src/core/compiler/compiler.ts (line 27)
:markdown
Cache that stores the AppProtoView of the template of a component.
@@ -11,27 +11,12 @@ p.location-badge.
.l-main-section
h2 Members
.l-sub-section
- h3 constructor
+ h3 set
pre.prettyprint
code.
- constructor()
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 clear
-
-
- pre.prettyprint
- code.
- clear()
+ set(component: Type, protoView: AppProtoView)
:markdown
@@ -60,12 +45,46 @@ p.location-badge.
.l-sub-section
- h3 set
+ h3 setHost
pre.prettyprint
code.
- set(component: Type, protoView: AppProtoView)
+ setHost(component: Type, protoView: AppProtoView)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getHost
+
+
+ pre.prettyprint
+ code.
+ getHost(component: Type)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 clear
+
+
+ pre.prettyprint
+ code.
+ clear()
:markdown
diff --git a/public/docs/js/latest/api/core/ComponentRef-class.jade b/public/docs/js/latest/api/core/ComponentRef-class.jade
index fe5aafe60c..ab03e6d0ff 100644
--- a/public/docs/js/latest/api/core/ComponentRef-class.jade
+++ b/public/docs/js/latest/api/core/ComponentRef-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/dynamic_component_loader.ts (line 7)
+ defined in
angular2/src/core/compiler/dynamic_component_loader.ts (line 7)
:markdown
@@ -13,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public location: ElementRef, public instance: any, public dispose: Function)
+ constructor(location: ElementRef, instance: any, dispose: Function)
:markdown
@@ -22,6 +22,32 @@ p.location-badge.
+ .l-sub-section
+ h3 location
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 instance
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 dispose
@@ -47,29 +73,3 @@ p.location-badge.
-
- .l-sub-section
- h3 instance
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 location
-
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/core/DirectiveResolver-class.jade b/public/docs/js/latest/api/core/DirectiveResolver-class.jade
index 94098f6573..bbc9d92ace 100644
--- a/public/docs/js/latest/api/core/DirectiveResolver-class.jade
+++ b/public/docs/js/latest/api/core/DirectiveResolver-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/directive_resolver.ts (line 4)
+ defined in
angular2/src/core/compiler/directive_resolver.ts (line 4)
:markdown
diff --git a/public/docs/js/latest/api/core/DynamicComponentLoader-class.jade b/public/docs/js/latest/api/core/DynamicComponentLoader-class.jade
index 128536c6a0..ef53186b40 100644
--- a/public/docs/js/latest/api/core/DynamicComponentLoader-class.jade
+++ b/public/docs/js/latest/api/core/DynamicComponentLoader-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/dynamic_component_loader.ts (line 16)
+ defined in
angular2/src/core/compiler/dynamic_component_loader.ts (line 16)
:markdown
Service for dynamically loading a Component into an arbitrary position in the internal Angular
@@ -15,7 +15,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(compiler: Compiler, viewManager: AppViewManager)
+ constructor(_compiler: Compiler, _viewManager: AppViewManager)
:markdown
@@ -30,7 +30,7 @@ p.location-badge.
pre.prettyprint
code.
- loadAsRoot(typeOrBinding, overrideSelector = null, injector: Injector = null)
+ loadAsRoot(typeOrBinding: Type | Binding, overrideSelector?: string, injector?: Injector)
:markdown
@@ -45,17 +45,19 @@ p.location-badge.
.l-sub-section
- h3 loadIntoExistingLocation
+ h3 loadIntoLocation
pre.prettyprint
code.
- loadIntoExistingLocation(typeOrBinding, location: ElementRef, injector: Injector = null)
+ loadIntoLocation(typeOrBinding: Type | Binding, hostLocation: ElementRef, anchorName: string, injector?: Injector)
:markdown
- Loads a component into the location given by the provided ElementRef. The loaded component
- receives injection as if it in the place of the provided ElementRef.
+ 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.
@@ -64,32 +66,12 @@ p.location-badge.
.l-sub-section
- h3 loadIntoNewLocation
+ h3 loadNextToLocation
pre.prettyprint
code.
- loadIntoNewLocation(typeOrBinding, parentComponentLocation: ElementRef, injector: Injector = null)
-
- :markdown
-
- Loads a component into a free host view that is not yet attached to
- a parent on the render side, although it is attached to a parent in the injector hierarchy.
- The loaded component receives injection normally as a hosted view.
-
-
-
-
-
-
-
- .l-sub-section
- h3 loadNextToExistingLocation
-
-
- pre.prettyprint
- code.
- loadNextToExistingLocation(typeOrBinding, location: ElementRef, injector: Injector = null)
+ loadNextToLocation(typeOrBinding: Type | Binding, location: ElementRef, injector?: Injector)
:markdown
diff --git a/public/docs/js/latest/api/core/ElementRef-class.jade b/public/docs/js/latest/api/core/ElementRef-class.jade
index d59df96036..947e90cbda 100644
--- a/public/docs/js/latest/api/core/ElementRef-class.jade
+++ b/public/docs/js/latest/api/core/ElementRef-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/element_ref.ts (line 4)
+ defined in
angular2/src/core/compiler/element_ref.ts (line 4)
:markdown
@@ -22,6 +22,19 @@ p.location-badge.
+ .l-sub-section
+ h3 parentView
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 boundElementIndex
@@ -68,16 +81,3 @@ p.location-badge.
-
- .l-sub-section
- h3 parentView
-
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/core/ExceptionHandler-class.jade b/public/docs/js/latest/api/core/ExceptionHandler-class.jade
deleted file mode 100644
index c23ddd1dc8..0000000000
--- a/public/docs/js/latest/api/core/ExceptionHandler-class.jade
+++ /dev/null
@@ -1,49 +0,0 @@
-
-p.location-badge.
- exported from
angular2/core
- defined in
angular2/src/core/exception_handler.js (line 35)
-
-:markdown
- Provides a hook for centralized exception handling.
-
- The default implementation of `ExceptionHandler` prints error messages to the `Console`. To intercept error handling,
- write a custom exception handler that replaces this default as appropriate for your app.
-
- # Example
-
- ```javascript
- @Component({
- selector: 'my-app',
- injectables: [
- bind(ExceptionHandler).toClass(MyExceptionHandler)
- ]
- })
- @View(...)
- class MyApp { ... }
-
-
- class MyExceptionHandler implements ExceptionHandler {
- call(error, stackTrace = null, reason = null) {
- // do something with the exception
- }
- }
-
- ```
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 call
-
-
- pre.prettyprint
- code.
- call(error, stackTrace = null, reason = null)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/core/NgZone-class.jade b/public/docs/js/latest/api/core/NgZone-class.jade
index 06bd006bdb..31d49b21cf 100644
--- a/public/docs/js/latest/api/core/NgZone-class.jade
+++ b/public/docs/js/latest/api/core/NgZone-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/zone/ng_zone.ts (line 4)
+ 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.
@@ -28,10 +28,6 @@ p.location-badge.
- a "root" zone, which the one that instantiated this.
- an "inner" zone, which is a child of the root zone.
- @param {bool} enableLongStackTrace whether to enable long stack trace. They should only be
- enabled in development mode as they significantly impact perf.
-
-
@@ -42,23 +38,16 @@ p.location-badge.
pre.prettyprint
code.
- initCallbacks({onTurnStart, onTurnDone, onErrorHandler}: {
+ initCallbacks({onTurnStart, onTurnDone, onErrorHandler}?: {
onTurnStart?: /*() => void*/ Function,
onTurnDone?: /*() => void*/ Function,
onErrorHandler?: /*(error, stack) => void*/ Function
- } = {})
+ })
:markdown
Initializes the zone hooks.
- @param {() => void} onTurnStart called before code executes in the inner zone for each VM turn
- @param {() => void} onTurnDone called at the end of a VM turn if code has executed in the inner
- zone
- @param {(error, stack) => void} onErrorHandler called when an exception is thrown by a macro or
- micro task
-
-
diff --git a/public/docs/js/latest/api/core/OnAllChangesDone-interface.jade b/public/docs/js/latest/api/core/OnAllChangesDone-interface.jade
index 2821c79bfb..7f75d3204d 100644
--- a/public/docs/js/latest/api/core/OnAllChangesDone-interface.jade
+++ b/public/docs/js/latest/api/core/OnAllChangesDone-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/interfaces.ts (line 22)
+ defined in
angular2/src/core/compiler/interfaces.ts (line 27)
:markdown
Defines lifecycle method [onAllChangesDone ] called when the bindings of all its children have
diff --git a/public/docs/js/latest/api/core/OnChange-interface.jade b/public/docs/js/latest/api/core/OnChange-interface.jade
index 6d5ea093ea..3b0059ec1a 100644
--- a/public/docs/js/latest/api/core/OnChange-interface.jade
+++ b/public/docs/js/latest/api/core/OnChange-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/interfaces.ts (line 1)
+ defined in
angular2/src/core/compiler/interfaces.ts (line 7)
:markdown
Defines lifecycle method [onChange] called after all of component's bound
diff --git a/public/docs/js/latest/api/core/OnCheck-interface.jade b/public/docs/js/latest/api/core/OnCheck-interface.jade
index b71c933aeb..3d9f1c856a 100644
--- a/public/docs/js/latest/api/core/OnCheck-interface.jade
+++ b/public/docs/js/latest/api/core/OnCheck-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/interfaces.ts (line 12)
+ defined in
angular2/src/core/compiler/interfaces.ts (line 17)
:markdown
Defines lifecycle method [onCheck] called when a directive is being checked.
diff --git a/public/docs/js/latest/api/core/OnDestroy-interface.jade b/public/docs/js/latest/api/core/OnDestroy-interface.jade
index 0ac4ae588c..c7cf1dde27 100644
--- a/public/docs/js/latest/api/core/OnDestroy-interface.jade
+++ b/public/docs/js/latest/api/core/OnDestroy-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/interfaces.ts (line 7)
+ defined in
angular2/src/core/compiler/interfaces.ts (line 12)
:markdown
Defines lifecycle method [onDestroy] called when a directive is being destroyed.
diff --git a/public/docs/js/latest/api/core/OnInit-interface.jade b/public/docs/js/latest/api/core/OnInit-interface.jade
index 59c456ce22..cce6ac20a3 100644
--- a/public/docs/js/latest/api/core/OnInit-interface.jade
+++ b/public/docs/js/latest/api/core/OnInit-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/interfaces.ts (line 17)
+ 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.
diff --git a/public/docs/js/latest/api/core/ParentAnnotation-class.jade b/public/docs/js/latest/api/core/ParentAnnotation-class.jade
index c75e8d5507..7eaffd7fdf 100644
--- a/public/docs/js/latest/api/core/ParentAnnotation-class.jade
+++ b/public/docs/js/latest/api/core/ParentAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/annotations_impl/visibility.ts (line 57)
+ defined in
angular2/src/core/annotations_impl/visibility.ts (line 61)
:markdown
Specifies that an injector should retrieve a dependency from the direct parent.
@@ -52,7 +52,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor({self}: {self?: boolean} = {})
+ constructor({self}?: {self?: boolean})
:markdown
@@ -60,3 +60,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/ProtoViewRef-class.jade b/public/docs/js/latest/api/core/ProtoViewRef-class.jade
index 670d16006c..64edb88079 100644
--- a/public/docs/js/latest/api/core/ProtoViewRef-class.jade
+++ b/public/docs/js/latest/api/core/ProtoViewRef-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/view_ref.ts (line 26)
+ defined in
angular2/src/core/compiler/view_ref.ts (line 24)
:markdown
@@ -13,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(protoView)
+ constructor(_protoView:AppProtoView)
:markdown
diff --git a/public/docs/js/latest/api/core/QueryAnnotation-class.jade b/public/docs/js/latest/api/core/QueryAnnotation-class.jade
index ce707f30eb..72d078da78 100644
--- a/public/docs/js/latest/api/core/QueryAnnotation-class.jade
+++ b/public/docs/js/latest/api/core/QueryAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/annotations_impl/di.ts (line 44)
+ defined in
angular2/src/core/annotations_impl/di.ts (line 46)
:markdown
Specifies that a
QueryList
should be injected.
@@ -16,7 +16,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public directive: any)
+ constructor(_selector: Type | string, {descendants = false}?: {descendants?: boolean})
:markdown
@@ -26,7 +26,7 @@ p.location-badge.
.l-sub-section
- h3 directive
+ h3 descendants
:markdown
@@ -37,3 +37,59 @@ p.location-badge.
+
+ .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/core/QueryList-class.jade b/public/docs/js/latest/api/core/QueryList-class.jade
index 6ea029eae6..7c634c9acf 100644
--- a/public/docs/js/latest/api/core/QueryList-class.jade
+++ b/public/docs/js/latest/api/core/QueryList-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/query_list.ts (line 1)
+ defined in
angular2/src/core/compiler/query_list.ts (line 1)
:markdown
An iterable live list of components in the Light DOM.
@@ -38,9 +38,9 @@ p.location-badge.
with `
`
component's on `hydrate` and deregister on `dehydrate` event. While a reasonable approach, this
would only work
- partialy since `*ng-for` could rearange the list of `` components which would not be
+ partialy since `*ng-for` could rearrange the list of `` components which would not be
reported to ``
- component and thus the list of `` componets would be out of sync with respect to the list
+ 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
@@ -78,6 +78,19 @@ p.location-badge.
.l-main-section
h2 Members
+ .l-sub-section
+ h3 T
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 onChange
diff --git a/public/docs/js/latest/api/core/SelfAnnotation-class.jade b/public/docs/js/latest/api/core/SelfAnnotation-class.jade
index 60efdbbfe5..cdea704502 100644
--- a/public/docs/js/latest/api/core/SelfAnnotation-class.jade
+++ b/public/docs/js/latest/api/core/SelfAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/core
- defined in angular2/src/core/annotations_impl/visibility.ts (line 12)
+ defined in angular2/src/core/annotations_impl/visibility.ts (line 15)
:markdown
Specifies that an injector should retrieve a dependency from its element.
@@ -54,3 +54,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/UnboundedAnnotation-class.jade b/public/docs/js/latest/api/core/UnboundedAnnotation-class.jade
index b5feebb54d..5304016d41 100644
--- a/public/docs/js/latest/api/core/UnboundedAnnotation-class.jade
+++ b/public/docs/js/latest/api/core/UnboundedAnnotation-class.jade
@@ -1,13 +1,13 @@
p.location-badge.
exported from angular2/core
- defined in angular2/src/core/annotations_impl/visibility.ts (line 166)
+ defined in angular2/src/core/annotations_impl/visibility.ts (line 173)
:markdown
- Specifies that an injector should retrieve a dependency from any ancestor element.
-
- An ancestor is any element between the parent element and shadow root.
+ Specifies that an injector should retrieve a dependency from any ancestor element, crossing
+ component boundaries.
+ Use Ancestor
to look for ancestors within the current shadow boundary only.
## Example
@@ -43,7 +43,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor({self}: {self?: boolean} = {})
+ constructor({self}?: {self?: boolean})
:markdown
@@ -51,3 +51,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/ViewAnnotation-class.jade b/public/docs/js/latest/api/core/ViewAnnotation-class.jade
index 073eba5195..cae02e96f9 100644
--- a/public/docs/js/latest/api/core/ViewAnnotation-class.jade
+++ b/public/docs/js/latest/api/core/ViewAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/core
- defined in angular2/src/core/annotations_impl/view.ts (line 1)
+ defined in angular2/src/core/annotations_impl/view.ts (line 1)
:markdown
Declares the available HTML templates for an application.
@@ -42,12 +42,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor({templateUrl, template, directives, renderer}: {
- templateUrl?: string,
- template?: string,
- directives?: List<Type | any | List<any>>,
- renderer?: string
- } = {})
+ constructor({templateUrl, template, directives, renderer, styles, styleUrls}?: ViewArgs)
:markdown
@@ -56,6 +51,66 @@ p.location-badge.
+ .l-sub-section
+ h3 templateUrl
+
+
+ :markdown
+
+ Specifies a template URL for an angular component.
+
+ NOTE: either `templateUrl` or `template` should be used, but not both.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 template
+
+
+ :markdown
+
+ Specifies an inline template 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
@@ -96,39 +151,8 @@ p.location-badge.
:markdown
Specify a custom renderer for this View.
- If this is set, neither `template`, `templateURL` nor `directives` are used.
-
-
-
-
-
-
-
- .l-sub-section
- h3 template
-
-
- :markdown
-
- Specifies an inline template for an angular component.
-
- NOTE: either `templateUrl` or `template` should be used, but not both.
-
-
-
-
-
-
-
- .l-sub-section
- h3 templateUrl
-
-
- :markdown
-
- Specifies a template URL for an angular component.
-
- NOTE: either `templateUrl` or `template` should be used, but not both.
+ If this is set, neither `template`, `templateUrl`, `styles`, `styleUrls` nor `directives` are
+ used.
diff --git a/public/docs/js/latest/api/core/ViewArgs-interface.jade b/public/docs/js/latest/api/core/ViewArgs-interface.jade
new file mode 100644
index 0000000000..de27deefbd
--- /dev/null
+++ b/public/docs/js/latest/api/core/ViewArgs-interface.jade
@@ -0,0 +1,87 @@
+
+p.location-badge.
+ exported from angular2/core
+ defined in angular2/src/core/annotations_impl/view.ts (line 104)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 templateUrl
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 template
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 directives
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 renderer
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 styles
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 styleUrls
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/core/ViewContainerRef-class.jade b/public/docs/js/latest/api/core/ViewContainerRef-class.jade
index db57dfd469..09c53488f7 100644
--- a/public/docs/js/latest/api/core/ViewContainerRef-class.jade
+++ b/public/docs/js/latest/api/core/ViewContainerRef-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/core
- defined in angular2/src/core/compiler/view_container_ref.ts (line 9)
+ defined in angular2/src/core/compiler/view_container_ref.ts (line 9)
:markdown
@@ -13,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public viewManager: avmModule.AppViewManager, public element: ElementRef)
+ constructor(viewManager:AppViewManager, element: ElementRef)
:markdown
@@ -22,6 +22,32 @@ p.location-badge.
+ .l-sub-section
+ h3 viewManager
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 element
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 clear
@@ -39,55 +65,6 @@ p.location-badge.
- .l-sub-section
- h3 create
-
-
- pre.prettyprint
- code.
- create(protoViewRef: ProtoViewRef = null, atIndex: number = -1, context: ElementRef = null, injector: Injector = null)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 detach
-
-
- pre.prettyprint
- code.
- detach(atIndex: number = -1)
-
- :markdown
-
- The method can be used together with insert to implement a view move, i.e.
- moving the dom nodes while the directives in the view stay intact.
-
-
-
-
-
-
-
- .l-sub-section
- h3 element
-
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 get
@@ -105,6 +82,53 @@ p.location-badge.
+ .l-sub-section
+ h3 length
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 create
+
+
+ pre.prettyprint
+ code.
+ create(protoViewRef?: ProtoViewRef, atIndex?: number, context?: ElementRef, injector?: Injector)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 insert
+
+
+ pre.prettyprint
+ code.
+ insert(viewRef: ViewRef, atIndex?: number)
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 indexOf
@@ -122,43 +146,13 @@ p.location-badge.
- .l-sub-section
- h3 insert
-
-
- pre.prettyprint
- code.
- insert(viewRef: ViewRef, atIndex: number = -1)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 length
-
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 remove
pre.prettyprint
code.
- remove(atIndex: number = -1)
+ remove(atIndex?: number)
:markdown
@@ -170,11 +164,17 @@ p.location-badge.
.l-sub-section
- h3 viewManager
+ 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
index 80bf31f5de..8b9efd131f 100644
--- a/public/docs/js/latest/api/core/ViewRef-class.jade
+++ b/public/docs/js/latest/api/core/ViewRef-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/core
- defined in angular2/src/core/compiler/view_ref.ts (line 13)
+ defined in angular2/src/core/compiler/view_ref.ts (line 13)
:markdown
@@ -13,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(view: viewModule.AppView)
+ constructor(_view:AppView)
:markdown
diff --git a/public/docs/js/latest/api/core/VmTurnZone-class.jade b/public/docs/js/latest/api/core/VmTurnZone-class.jade
deleted file mode 100644
index 933748ecca..0000000000
--- a/public/docs/js/latest/api/core/VmTurnZone-class.jade
+++ /dev/null
@@ -1,106 +0,0 @@
-
-p.location-badge.
- exported from angular2/core
- defined in angular2/src/core/zone/vm_turn_zone.js (line 14)
-
-:markdown
- A wrapper around zones that lets you schedule tasks after it has executed a task.
-
- The wrapper maintains an "inner" and "outer" `Zone`. The application code will executes
- in the "inner" zone unless `runOutsideAngular` is explicitely called.
-
- A typical application will create a singleton `VmTurnZone` whose outer `Zone` is the root `Zone`
- and whose default `onTurnDone` runs the Angular digest.
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor({enableLongStackTrace}, [object Object])
-
- :markdown
- Associates with this
-
- - an "outer" zone, which is the one that created this.
- - an "inner" zone, which is a child of the outer zone.
-
-
-
-
-
- .l-sub-section
- h3 initCallbacks
-
-
- pre.prettyprint
- code.
- initCallbacks({onTurnStart, onTurnDone, onScheduleMicrotask, onErrorHandler} = {}, [object Object], [object Object], [object Object], [object Object])
-
- :markdown
-
- Initializes the zone hooks.
-
-
-
-
-
-
- .l-sub-section
- h3 run
-
-
- pre.prettyprint
- code.
- run(fn)
-
- :markdown
-
- Runs `fn` in the inner zone and returns whatever it returns.
-
- In a typical app where the inner zone is the Angular zone, this allows one to make use of the
- Angular's auto digest mechanism.
-
- ```
- var zone: VmTurnZone = [;
-
- zone.run(() => {
- // auto-digest will run after this function is called from JS
- });
- ```
-
-
-
-
-
- .l-sub-section
- h3 runOutsideAngular
-
-
- pre.prettyprint
- code.
- runOutsideAngular(fn)
-
- :markdown
-
- Runs `fn` in the outer zone and returns whatever it returns.
-
- In a typical app where the inner zone is the Angular zone, this allows one to escape Angular's
- auto-digest mechanism.
-
- ```
- var zone: VmTurnZone = ][;
-
- zone.runOusideAngular(() => {
- element.onClick(() => {
- // Clicking on the element would not trigger the change detection
- });
- });
- ```
-
-
-
-
diff --git a/public/docs/js/latest/api/core/_data.json b/public/docs/js/latest/api/core/_data.json
index 67d10d8eb4..de67302dec 100644
--- a/public/docs/js/latest/api/core/_data.json
+++ b/public/docs/js/latest/api/core/_data.json
@@ -44,6 +44,10 @@
"title" : "ViewAnnotation Class"
},
+ "ViewArgs-interface" : {
+ "title" : "ViewArgs Interface"
+ },
+
"bootstrap-function" : {
"title" : "bootstrap Function"
},
diff --git a/public/docs/js/latest/api/core/appComponentRefToken-var.jade b/public/docs/js/latest/api/core/appComponentRefToken-var.jade
index 9a35c50974..5e5a1f8f4c 100644
--- a/public/docs/js/latest/api/core/appComponentRefToken-var.jade
+++ b/public/docs/js/latest/api/core/appComponentRefToken-var.jade
@@ -3,6 +3,7 @@
h2 appComponentRefToken ]variable
p.location-badge.
exported from angular2/core
+ defined in angular2/src/core/application_tokens.ts (line 3)
:markdown
diff --git a/public/docs/js/latest/api/core/appComponentTypeToken-var.jade b/public/docs/js/latest/api/core/appComponentTypeToken-var.jade
index 50055dc272..adf5e2bc0e 100644
--- a/public/docs/js/latest/api/core/appComponentTypeToken-var.jade
+++ b/public/docs/js/latest/api/core/appComponentTypeToken-var.jade
@@ -3,6 +3,7 @@
h2 appComponentTypeToken variable
p.location-badge.
exported from angular2/core
+ defined in angular2/src/core/application_tokens.ts (line 4)
:markdown
diff --git a/public/docs/js/latest/api/core/bootstrap-function.jade b/public/docs/js/latest/api/core/bootstrap-function.jade
index 638a91f8be..7bc72687b2 100644
--- a/public/docs/js/latest/api/core/bootstrap-function.jade
+++ b/public/docs/js/latest/api/core/bootstrap-function.jade
@@ -5,12 +5,12 @@
pre.prettyprint
code.
- bootstrap(appComponentType: Type, componentInjectableBindings: List<Type | Binding | List<any>> = null, errorReporter: Function = null) : Promise<ApplicationRef>
+ bootstrap(appComponentType: Type, componentInjectableBindings?: List<Type | Binding | List<any>>, errorReporter?: Function) : Promise<ApplicationRef>
p.location-badge.
exported from angular2/core
- defined in angular2/src/core/application.ts (line 149)
+ defined in angular2/src/core/application.ts (line 156)
:markdown
Bootstrapping for Angular applications.
diff --git a/public/docs/js/latest/api/core/index.jade b/public/docs/js/latest/api/core/index.jade
index 601556d254..80c3d0a546 100644
--- a/public/docs/js/latest/api/core/index.jade
+++ b/public/docs/js/latest/api/core/index.jade
@@ -1,5 +1,5 @@
p.location-badge.
- defined in angular2/core.ts (line 1)
+ 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
diff --git a/public/docs/js/latest/api/di/AbstractBindingError-class.jade b/public/docs/js/latest/api/di/AbstractBindingError-class.jade
index 3cc2dd17bf..43836a8941 100644
--- a/public/docs/js/latest/api/di/AbstractBindingError-class.jade
+++ b/public/docs/js/latest/api/di/AbstractBindingError-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 25)
+ defined in angular2/src/di/exceptions.ts (line 25)
:markdown
Base class for all errors arising from misconfigured bindings.
@@ -24,37 +24,7 @@ p.location-badge.
.l-sub-section
- h3 addKey
-
-
- pre.prettyprint
- code.
- addKey(key)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 constructResolvingMessage
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 keys
+ h3 name
:markdown
@@ -80,7 +50,7 @@ p.location-badge.
.l-sub-section
- h3 name
+ h3 keys
:markdown
@@ -92,6 +62,36 @@ p.location-badge.
+ .l-sub-section
+ h3 constructResolvingMessage
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 addKey
+
+
+ pre.prettyprint
+ code.
+ addKey(key)
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 toString
diff --git a/public/docs/js/latest/api/di/AsyncBindingError-class.jade b/public/docs/js/latest/api/di/AsyncBindingError-class.jade
index 5439316fe0..de94fd414c 100644
--- a/public/docs/js/latest/api/di/AsyncBindingError-class.jade
+++ b/public/docs/js/latest/api/di/AsyncBindingError-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 69)
+ defined in angular2/src/di/exceptions.ts (line 69)
:markdown
Thrown when trying to retrieve an async Binding
using the sync API.
diff --git a/public/docs/js/latest/api/di/Binding-class.jade b/public/docs/js/latest/api/di/Binding-class.jade
index 6f8d4950f0..f4d84a0fe7 100644
--- a/public/docs/js/latest/api/di/Binding-class.jade
+++ b/public/docs/js/latest/api/di/Binding-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/binding.ts (line 25)
+ defined in angular2/src/di/binding.ts (line 34)
:markdown
Describes how the Injector
should instantiate a given token.
@@ -43,25 +43,52 @@ p.location-badge.
.l-sub-section
- h3 dependencies
+ h3 token
:markdown
- Used in conjunction with `toFactory` or `toAsyncFactory` and specifies a set of dependencies
- (as `token`s) which should be injected into the factory function.
+ 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
- var injector = Injector.resolveAndCreate([
- new Binding(Number, { toFactory: () => { return 1+2; }}),
- new Binding(String, { toFactory: (value) => { return "Value: " + value; },
- dependencies: [Number] })
+
+ 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(injector.get(Number)).toEqual(3);
- expect(injector.get(String)).toEqual('Value: 3');
+ 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);
```
@@ -71,19 +98,22 @@ p.location-badge.
.l-sub-section
- h3 resolve
+ h3 toValue
- pre.prettyprint
- code.
- resolve()
-
:markdown
- Converts the Binding
into ResolvedBinding
.
+ Binds a key to a value.
- Injector
internally only uses ResolvedBinding
, Binding
contains
- convenience binding syntax.
+
+
+ ```javascript
+ var injector = Injector.resolveAndCreate([
+ new Binding(String, { toValue: 'Hello' })
+ ]);
+
+ expect(injector.get(String)).toEqual('Hello');
+ ```
@@ -135,6 +165,33 @@ p.location-badge.
+ .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 toAsyncFactory
@@ -172,53 +229,13 @@ p.location-badge.
.l-sub-section
- h3 toClass
+ h3 dependencies
: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 toFactory
-
-
- :markdown
-
- Binds a key to a function which computes the value.
+ Used in conjunction with `toFactory` or `toAsyncFactory` and specifies a set of dependencies
+ (as `token`s) which should be injected into the factory function.
@@ -240,36 +257,19 @@ p.location-badge.
.l-sub-section
- h3 toValue
+ h3 resolve
+ pre.prettyprint
+ code.
+ resolve()
+
:markdown
- Binds a key to a value.
+ Converts the Binding
into ResolvedBinding
.
-
-
- ```javascript
- var injector = Injector.resolveAndCreate([
- new Binding(String, { toValue: 'Hello' })
- ]);
-
- expect(injector.get(String)).toEqual('Hello');
- ```
-
-
-
-
-
-
-
- .l-sub-section
- h3 token
-
-
- :markdown
-
- Token used when retrieving this binding. Usually the `Type`.
+ 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
index c2432f4c1a..b5cb40d097 100644
--- a/public/docs/js/latest/api/di/BindingBuilder-class.jade
+++ b/public/docs/js/latest/api/di/BindingBuilder-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/binding.ts (line 296)
+ defined in angular2/src/di/binding.ts (line 305)
:markdown
Helper class for the bind
function.
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public token)
+ constructor(token)
:markdown
@@ -24,84 +24,11 @@ p.location-badge.
.l-sub-section
- h3 toAlias
+ h3 token
- pre.prettyprint
- code.
- toAlias(aliasToken)
-
:markdown
- Binds a key to the alias for an existing key.
-
- An alias means that we will return the same instance as if the alias token was used. (This is
- in contrast to `toClass` where a separet 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 toAsyncFactory
-
-
- pre.prettyprint
- code.
- toAsyncFactory(factoryFunction: Function, dependencies?: List<any>)
-
- :markdown
-
- Binds a key to a function which computes the value asynchronously.
-
-
-
- ```javascript
- var injector = Injector.resolveAndCreate([
- bind(Number).toAsyncFactory(() => {
- return new Promise((resolve) => resolve(1 + 2));
- }),
- bind(String).toFactory((v) => { return "Value: " + v; }, [Number])
- ]);
-
- injector.asyncGet(Number).then((v) => expect(v).toBe(3));
- injector.asyncGet(String).then((v) => expect(v).toBe('Value: 3'));
- ```
-
- The interesting thing to note is that event though `Number` has an async factory, the `String`
- factory function takes the resolved value. This shows that the Injector
delays
- executing of the `String` factory
- until after the `Number` is resolved. This can only be done if the `token` is retrieved using
- the `asyncGet` API in the Injector
.
@@ -154,6 +81,82 @@ p.location-badge.
+ .l-sub-section
+ h3 toValue
+
+
+ pre.prettyprint
+ code.
+ toValue(value)
+
+ :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)
+
+ :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 separet 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
@@ -185,39 +188,36 @@ p.location-badge.
.l-sub-section
- h3 toValue
+ h3 toAsyncFactory
pre.prettyprint
code.
- toValue(value)
+ toAsyncFactory(factoryFunction: Function, dependencies?: List<any>)
:markdown
- Binds a key to a value.
+ Binds a key to a function which computes the value asynchronously.
```javascript
var injector = Injector.resolveAndCreate([
- bind(String).toValue('Hello')
+ bind(Number).toAsyncFactory(() => {
+ return new Promise((resolve) => resolve(1 + 2));
+ }),
+ bind(String).toFactory((v) => { return "Value: " + v; }, [Number])
]);
- expect(injector.get(String)).toEqual('Hello');
+ injector.asyncGet(Number).then((v) => expect(v).toBe(3));
+ injector.asyncGet(String).then((v) => expect(v).toBe('Value: 3'));
```
-
-
-
-
-
-
- .l-sub-section
- h3 token
-
-
- :markdown
-
+ The interesting thing to note is that event though `Number` has an async factory, the `String`
+ factory function takes the resolved value. This shows that the Injector
delays
+ executing of the `String` factory
+ until after the `Number` is resolved. This can only be done if the `token` is retrieved using
+ the `asyncGet` API in the Injector
.
diff --git a/public/docs/js/latest/api/di/CyclicDependencyError-class.jade b/public/docs/js/latest/api/di/CyclicDependencyError-class.jade
index 3044da6c80..04a2c1f667 100644
--- a/public/docs/js/latest/api/di/CyclicDependencyError-class.jade
+++ b/public/docs/js/latest/api/di/CyclicDependencyError-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 103)
+ defined in angular2/src/di/exceptions.ts (line 103)
:markdown
Thrown when dependencies form a cycle.
diff --git a/public/docs/js/latest/api/di/Dependency-class.jade b/public/docs/js/latest/api/di/Dependency-class.jade
index 972e57fcbc..d961e52df2 100644
--- a/public/docs/js/latest/api/di/Dependency-class.jade
+++ b/public/docs/js/latest/api/di/Dependency-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/binding.ts (line 13)
+ defined in angular2/src/di/binding.ts (line 22)
:markdown
@@ -13,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public key: Key, public asPromise: boolean, public lazy: boolean, public optional: boolean, public properties: List<any>)
+ constructor(key: Key, asPromise: boolean, lazy: boolean, optional: boolean, properties: List<any>)
:markdown
@@ -22,19 +22,6 @@ p.location-badge.
- .l-sub-section
- h3 asPromise
-
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 key
@@ -48,6 +35,19 @@ p.location-badge.
+ .l-sub-section
+ h3 asPromise
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 lazy
diff --git a/public/docs/js/latest/api/di/DependencyAnnotation-class.jade b/public/docs/js/latest/api/di/DependencyAnnotation-class.jade
index 861bb9ca0c..b70b0e5a8b 100644
--- a/public/docs/js/latest/api/di/DependencyAnnotation-class.jade
+++ b/public/docs/js/latest/api/di/DependencyAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/annotations_impl.ts (line 72)
+ defined in angular2/src/di/annotations_impl.ts (line 76)
:markdown
`DependencyAnnotation` is used by the framework to extend DI.
diff --git a/public/docs/js/latest/api/di/FORWARD_REF-var.jade b/public/docs/js/latest/api/di/FORWARD_REF-var.jade
deleted file mode 100644
index 89a3dd5c04..0000000000
--- a/public/docs/js/latest/api/di/FORWARD_REF-var.jade
+++ /dev/null
@@ -1,10 +0,0 @@
-
-.l-main-section
- h2 FORWARD_REF variable
- p.location-badge.
- exported from angular2/di
-
- :markdown
-
-
-
diff --git a/public/docs/js/latest/api/di/ForwardRefFn-interface.jade b/public/docs/js/latest/api/di/ForwardRefFn-interface.jade
index 9d56fef0cd..ec5ffccd87 100644
--- a/public/docs/js/latest/api/di/ForwardRefFn-interface.jade
+++ b/public/docs/js/latest/api/di/ForwardRefFn-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/forward_ref.ts (line 1)
+ 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
index a75c718843..5892040959 100644
--- a/public/docs/js/latest/api/di/Inject-var.jade
+++ b/public/docs/js/latest/api/di/Inject-var.jade
@@ -3,6 +3,7 @@
h2 Inject variable
p.location-badge.
exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 10)
:markdown
diff --git a/public/docs/js/latest/api/di/InjectAnnotation-class.jade b/public/docs/js/latest/api/di/InjectAnnotation-class.jade
index 4cf9700b1f..8fb0d0e820 100644
--- a/public/docs/js/latest/api/di/InjectAnnotation-class.jade
+++ b/public/docs/js/latest/api/di/InjectAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/annotations_impl.ts (line 1)
+ defined in angular2/src/di/annotations_impl.ts (line 1)
:markdown
A parameter annotation that specifies a dependency.
@@ -20,7 +20,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public token)
+ constructor(token)
:markdown
@@ -41,3 +41,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/InjectLazy-var.jade b/public/docs/js/latest/api/di/InjectLazy-var.jade
index 8dc7e82cf2..104f4964b1 100644
--- a/public/docs/js/latest/api/di/InjectLazy-var.jade
+++ b/public/docs/js/latest/api/di/InjectLazy-var.jade
@@ -3,6 +3,7 @@
h2 InjectLazy variable
p.location-badge.
exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 12)
:markdown
diff --git a/public/docs/js/latest/api/di/InjectLazyAnnotation-class.jade b/public/docs/js/latest/api/di/InjectLazyAnnotation-class.jade
index fdbd9aa8ec..40a366df5d 100644
--- a/public/docs/js/latest/api/di/InjectLazyAnnotation-class.jade
+++ b/public/docs/js/latest/api/di/InjectLazyAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/annotations_impl.ts (line 36)
+ defined in angular2/src/di/annotations_impl.ts (line 38)
:markdown
A parameter annotation that creates a synchronous lazy dependency.
@@ -22,7 +22,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public token)
+ constructor(token)
:markdown
@@ -43,3 +43,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/InjectPromise-var.jade b/public/docs/js/latest/api/di/InjectPromise-var.jade
index 5d8c7aeb8d..4cbd2c944f 100644
--- a/public/docs/js/latest/api/di/InjectPromise-var.jade
+++ b/public/docs/js/latest/api/di/InjectPromise-var.jade
@@ -3,6 +3,7 @@
h2 InjectPromise variable
p.location-badge.
exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 11)
:markdown
diff --git a/public/docs/js/latest/api/di/InjectPromiseAnnotation-class.jade b/public/docs/js/latest/api/di/InjectPromiseAnnotation-class.jade
index 1719e5997d..181983c89a 100644
--- a/public/docs/js/latest/api/di/InjectPromiseAnnotation-class.jade
+++ b/public/docs/js/latest/api/di/InjectPromiseAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/annotations_impl.ts (line 18)
+ defined in angular2/src/di/annotations_impl.ts (line 19)
:markdown
A parameter annotation that specifies a `Promise` of a dependency.
@@ -22,7 +22,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(public token)
+ constructor(token)
:markdown
@@ -43,3 +43,20 @@ p.location-badge.
+
+ .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
index 1f7ec4f589..ca10c07ee3 100644
--- a/public/docs/js/latest/api/di/Injectable-var.jade
+++ b/public/docs/js/latest/api/di/Injectable-var.jade
@@ -3,6 +3,7 @@
h2 Injectable variable
p.location-badge.
exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 14)
:markdown
diff --git a/public/docs/js/latest/api/di/InjectableAnnotation-class.jade b/public/docs/js/latest/api/di/InjectableAnnotation-class.jade
index 0dfc4f294d..7f1d58c615 100644
--- a/public/docs/js/latest/api/di/InjectableAnnotation-class.jade
+++ b/public/docs/js/latest/api/di/InjectableAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/annotations_impl.ts (line 105)
+ defined in angular2/src/di/annotations_impl.ts (line 109)
:markdown
A marker annotation that marks a class as available to `Injector` for creation. Used by tooling
diff --git a/public/docs/js/latest/api/di/Injector-class.jade b/public/docs/js/latest/api/di/Injector-class.jade
index 714d13f68f..1a85cbabfe 100644
--- a/public/docs/js/latest/api/di/Injector-class.jade
+++ b/public/docs/js/latest/api/di/Injector-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/injector.ts (line 27)
+ defined in angular2/src/di/injector.ts (line 27)
:markdown
A dependency injection container used for resolving dependencies.
@@ -49,52 +49,23 @@ p.location-badge.
pre.prettyprint
code.
- constructor(bindings: List<ResolvedBinding>, parent: Injector, defaultBindings: boolean)
+ constructor(_bindings: List<ResolvedBinding>, _parent: Injector, _defaultBindings: boolean)
:markdown
- @param `bindings` A sparse list of ResolvedBinding
s. See `resolve` for the
- Injector
.
- @param `parent` Parent Injector or `null` if root Injector.
- @param `defaultBindings` Setting to true will auto-create bindings. (Only use with root
- injector.)
-
.l-sub-section
- h3 asyncGet
+ h3 parent
- pre.prettyprint
- code.
- asyncGet(token)
-
:markdown
- Retrieves an instance from the injector asynchronously. Used with asynchronous bindings.
+ Direct parent of this injector.
- @param `token`: usually a `Type`. (Same as token used while setting up a binding).
-
-
-
-
-
- .l-sub-section
- h3 createChildFromResolved
-
-
- pre.prettyprint
- code.
- createChildFromResolved(bindings: List<ResolvedBinding>)
-
- :markdown
-
- Creates a child injector and loads a new set of ResolvedBinding
s into it.
- @param `bindings`: A sparse list of ResolvedBinding
s.
- See `resolve` for the Injector
.
@@ -112,8 +83,6 @@ p.location-badge.
Retrieves an instance from the injector.
- @param `token`: usually the `Type` of an object. (Same as the token used while setting up a
- binding).
@@ -131,20 +100,22 @@ p.location-badge.
Retrieves an instance from the injector.
- @param `token`: usually a `Type`. (Same as the token used while setting up a binding).
.l-sub-section
- h3 parent
+ h3 asyncGet
+ pre.prettyprint
+ code.
+ asyncGet(token)
+
:markdown
- Direct parent of this injector.
-
+ Retrieves an instance from the injector asynchronously. Used with asynchronous bindings.
@@ -167,9 +138,22 @@ p.location-badge.
bindings into a list of ResolvedBinding
s. The resolution can be cached by `resolve`
for the Injector
for performance-sensitive code.
- @param `bindings` can be a list of `Type`, Binding
, ResolvedBinding
, or a
- recursive list of more bindings.
-
+
+
+
+
+
+ .l-sub-section
+ h3 createChildFromResolved
+
+
+ pre.prettyprint
+ code.
+ createChildFromResolved(bindings: List<ResolvedBinding>)
+
+ :markdown
+
+ Creates a child injector and loads a new set of ResolvedBinding
s into it.
diff --git a/public/docs/js/latest/api/di/InstantiationError-class.jade b/public/docs/js/latest/api/di/InstantiationError-class.jade
index d54747089c..927f502515 100644
--- a/public/docs/js/latest/api/di/InstantiationError-class.jade
+++ b/public/docs/js/latest/api/di/InstantiationError-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 130)
+ defined in angular2/src/di/exceptions.ts (line 130)
:markdown
Thrown when a constructing type returns with an Error.
diff --git a/public/docs/js/latest/api/di/InvalidBindingError-class.jade b/public/docs/js/latest/api/di/InvalidBindingError-class.jade
index 2a1d3f8007..85cb3410ab 100644
--- a/public/docs/js/latest/api/di/InvalidBindingError-class.jade
+++ b/public/docs/js/latest/api/di/InvalidBindingError-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 152)
+ defined in angular2/src/di/exceptions.ts (line 153)
:markdown
Thrown when an object other then Binding
(or `Type`) is passed to Injector
diff --git a/public/docs/js/latest/api/di/Key-class.jade b/public/docs/js/latest/api/di/Key-class.jade
index 9d34136106..44751e8e04 100644
--- a/public/docs/js/latest/api/di/Key-class.jade
+++ b/public/docs/js/latest/api/di/Key-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/key.ts (line 6)
+ defined in angular2/src/di/key.ts (line 6)
:markdown
A unique object used for retrieving items from the Injector
.
@@ -30,7 +30,7 @@ p.location-badge.
.l-sub-section
- h3 displayName
+ h3 token
:markdown
@@ -56,7 +56,7 @@ p.location-badge.
.l-sub-section
- h3 token
+ 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
index de380d2fda..fbeaec167e 100644
--- a/public/docs/js/latest/api/di/KeyRegistry-class.jade
+++ b/public/docs/js/latest/api/di/KeyRegistry-class.jade
@@ -1,27 +1,12 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/key.ts (line 48)
+ defined in angular2/src/di/key.ts (line 41)
:markdown
.l-main-section
h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor()
-
- :markdown
-
-
-
-
-
-
.l-sub-section
h3 get
diff --git a/public/docs/js/latest/api/di/NoAnnotationError-class.jade b/public/docs/js/latest/api/di/NoAnnotationError-class.jade
index 110dc216ac..72ab828c70 100644
--- a/public/docs/js/latest/api/di/NoAnnotationError-class.jade
+++ b/public/docs/js/latest/api/di/NoAnnotationError-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 169)
+ defined in angular2/src/di/exceptions.ts (line 170)
:markdown
Thrown when the class has no annotation information.
@@ -17,7 +17,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(typeOrFunc)
+ constructor(typeOrFunc, params: List<List<any>>)
:markdown
@@ -26,19 +26,6 @@ p.location-badge.
- .l-sub-section
- h3 message
-
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 name
@@ -52,6 +39,19 @@ p.location-badge.
+ .l-sub-section
+ h3 message
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 toString
diff --git a/public/docs/js/latest/api/di/NoBindingError-class.jade b/public/docs/js/latest/api/di/NoBindingError-class.jade
index b43a6d889c..250666c874 100644
--- a/public/docs/js/latest/api/di/NoBindingError-class.jade
+++ b/public/docs/js/latest/api/di/NoBindingError-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 53)
+ defined in angular2/src/di/exceptions.ts (line 53)
:markdown
Thrown when trying to retrieve a dependency by `Key` from Injector
, but the
diff --git a/public/docs/js/latest/api/di/OpaqueToken-class.jade b/public/docs/js/latest/api/di/OpaqueToken-class.jade
index 7c7d601bf0..be5d81bae2 100644
--- a/public/docs/js/latest/api/di/OpaqueToken-class.jade
+++ b/public/docs/js/latest/api/di/OpaqueToken-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/opaque_token.ts (line 1)
+ defined in angular2/src/di/opaque_token.ts (line 1)
:markdown
diff --git a/public/docs/js/latest/api/di/Optional-var.jade b/public/docs/js/latest/api/di/Optional-var.jade
index 6dc92b2f36..0745ccdd8a 100644
--- a/public/docs/js/latest/api/di/Optional-var.jade
+++ b/public/docs/js/latest/api/di/Optional-var.jade
@@ -3,6 +3,7 @@
h2 Optional variable
p.location-badge.
exported from angular2/di
+ defined in angular2/src/di/decorators.ts (line 13)
:markdown
diff --git a/public/docs/js/latest/api/di/OptionalAnnotation-class.jade b/public/docs/js/latest/api/di/OptionalAnnotation-class.jade
index 3678d22323..3de21c42cc 100644
--- a/public/docs/js/latest/api/di/OptionalAnnotation-class.jade
+++ b/public/docs/js/latest/api/di/OptionalAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/annotations_impl.ts (line 54)
+ defined in angular2/src/di/annotations_impl.ts (line 57)
:markdown
A parameter annotation that marks a dependency as optional. Injector
provides `null` if
@@ -15,3 +15,21 @@ p.location-badge.
}
```
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/ResolvedBinding-class.jade b/public/docs/js/latest/api/di/ResolvedBinding-class.jade
index 66bb192946..a5adb8f4cb 100644
--- a/public/docs/js/latest/api/di/ResolvedBinding-class.jade
+++ b/public/docs/js/latest/api/di/ResolvedBinding-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/binding.ts (line 246)
+ defined in angular2/src/di/binding.ts (line 255)
:markdown
An internal resolved representation of a Binding
used by the Injector
.
@@ -18,19 +18,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(/**
- * A key, usually a `Type`.
- */
- public key: Key, /**
- * Factory function which can return an instance of an object represented by a key.
- */
- public factory: Function, /**
- * Arguments (dependencies) to the `factory` function.
- */
- public dependencies: List<Dependency>, /**
- * Specifies whether the `factory` function returns a `Promise`.
- */
- public providedAsPromise: boolean)
+ constructor(key: Key, factory: Function, dependencies: List<Dependency>, providedAsPromise: boolean)
:markdown
@@ -40,12 +28,12 @@ p.location-badge.
.l-sub-section
- h3 dependencies
+ h3 key
:markdown
- Arguments (dependencies) to the `factory` function.
+ A key, usually a `Type`.
@@ -68,12 +56,12 @@ p.location-badge.
.l-sub-section
- h3 key
+ h3 dependencies
:markdown
- A key, usually a `Type`.
+ Arguments (dependencies) to the `factory` function.
diff --git a/public/docs/js/latest/api/di/TypeLiteral-class.jade b/public/docs/js/latest/api/di/TypeLiteral-class.jade
index a252ab0776..ed60ffe4c5 100644
--- a/public/docs/js/latest/api/di/TypeLiteral-class.jade
+++ b/public/docs/js/latest/api/di/TypeLiteral-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/type_literal.ts (line 1)
+ 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
diff --git a/public/docs/js/latest/api/di/_data.json b/public/docs/js/latest/api/di/_data.json
index 7add89576e..ee08e4366c 100644
--- a/public/docs/js/latest/api/di/_data.json
+++ b/public/docs/js/latest/api/di/_data.json
@@ -128,10 +128,6 @@
"title" : "forwardRef Function"
},
- "FORWARD_REF-var" : {
- "title" : "FORWARD_REF Var"
- },
-
"resolveForwardRef-function" : {
"title" : "resolveForwardRef Function"
}
diff --git a/public/docs/js/latest/api/di/bind-function.jade b/public/docs/js/latest/api/di/bind-function.jade
index d1b519edaf..e4b2e43ee9 100644
--- a/public/docs/js/latest/api/di/bind-function.jade
+++ b/public/docs/js/latest/api/di/bind-function.jade
@@ -10,7 +10,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/binding.ts (line 278)
+ defined in angular2/src/di/binding.ts (line 287)
:markdown
Provides an API for imperatively constructing Binding
s.
diff --git a/public/docs/js/latest/api/di/forwardRef-function.jade b/public/docs/js/latest/api/di/forwardRef-function.jade
index 9a7af21eb7..03e67043fa 100644
--- a/public/docs/js/latest/api/di/forwardRef-function.jade
+++ b/public/docs/js/latest/api/di/forwardRef-function.jade
@@ -10,7 +10,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/forward_ref.ts (line 3)
+ defined in angular2/src/di/forward_ref.ts (line 3)
:markdown
Allows to refer to references which are not yet defined.
diff --git a/public/docs/js/latest/api/di/index.jade b/public/docs/js/latest/api/di/index.jade
index 957e311479..870633c745 100644
--- a/public/docs/js/latest/api/di/index.jade
+++ b/public/docs/js/latest/api/di/index.jade
@@ -1,5 +1,5 @@
p.location-badge.
- defined in angular2/di.ts (line 1)
+ 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
diff --git a/public/docs/js/latest/api/di/resolveBindings-function.jade b/public/docs/js/latest/api/di/resolveBindings-function.jade
index aad0cb4ae3..ef4f662136 100644
--- a/public/docs/js/latest/api/di/resolveBindings-function.jade
+++ b/public/docs/js/latest/api/di/resolveBindings-function.jade
@@ -10,7 +10,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/injector.ts (line 370)
+ defined in angular2/src/di/injector.ts (line 366)
:markdown
diff --git a/public/docs/js/latest/api/di/resolveForwardRef-function.jade b/public/docs/js/latest/api/di/resolveForwardRef-function.jade
index 84570fc866..072094e6e4 100644
--- a/public/docs/js/latest/api/di/resolveForwardRef-function.jade
+++ b/public/docs/js/latest/api/di/resolveForwardRef-function.jade
@@ -10,7 +10,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/forward_ref.ts (line 36)
+ defined in angular2/src/di/forward_ref.ts (line 35)
:markdown
Lazily retrieve the reference value.
diff --git a/public/docs/js/latest/api/directives/CSSClass-class.jade b/public/docs/js/latest/api/directives/CSSClass-class.jade
index 8fea229271..2d8abd96a1 100644
--- a/public/docs/js/latest/api/directives/CSSClass-class.jade
+++ b/public/docs/js/latest/api/directives/CSSClass-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/class.ts (line 5)
+ defined in angular2/src/directives/class.ts (line 5)
:markdown
diff --git a/public/docs/js/latest/api/directives/For-class.jade b/public/docs/js/latest/api/directives/For-class.jade
deleted file mode 100644
index 5dd97edc3c..0000000000
--- a/public/docs/js/latest/api/directives/For-class.jade
+++ /dev/null
@@ -1,138 +0,0 @@
-
-p.location-badge.
- exported from angular2/directives
- defined in angular2/src/directives/for.js (line 44)
-
-:markdown
- The `For` 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, `For` 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, protoViewRef: ProtoViewRef)
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 bulkInsert
-
-
- pre.prettyprint
- code.
- bulkInsert(tuples, viewContainer, protoViewRef)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 bulkRemove
-
-
- pre.prettyprint
- code.
- bulkRemove(tuples, viewContainer)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 iterableChanges
-
-
- pre.prettyprint
- code.
- iterableChanges(changes)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 perViewChange
-
-
- pre.prettyprint
- code.
- perViewChange(view, record)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 protoViewRef
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 viewContainer
-
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/directives/If-class.jade b/public/docs/js/latest/api/directives/If-class.jade
deleted file mode 100644
index 17c2129844..0000000000
--- a/public/docs/js/latest/api/directives/If-class.jade
+++ /dev/null
@@ -1,93 +0,0 @@
-
-p.location-badge.
- exported from angular2/directives
- defined in angular2/src/directives/if.js (line 34)
-
-:markdown
- Removes or recreates a portion of the DOM tree based on an {expression}.
-
- If the expression assigned to `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, protoViewRef:ProtoViewRef)
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 condition
-
-
- pre.prettyprint
- code.
- condition(newCondition)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 prevCondition
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 protoViewRef
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 viewContainer
-
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/directives/NgFor-class.jade b/public/docs/js/latest/api/directives/NgFor-class.jade
index 7fafcaa2f2..81ef67d154 100644
--- a/public/docs/js/latest/api/directives/NgFor-class.jade
+++ b/public/docs/js/latest/api/directives/NgFor-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_for.ts (line 4)
+ defined in angular2/src/directives/ng_for.ts (line 3)
:markdown
The `NgFor` directive instantiates a template once per item from an iterable. The context for
@@ -50,6 +50,32 @@ p.location-badge.
+ .l-sub-section
+ h3 viewContainer
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 protoViewRef
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 iterableChanges
@@ -79,29 +105,3 @@ p.location-badge.
-
- .l-sub-section
- h3 protoViewRef
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 viewContainer
-
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/directives/NgIf-class.jade b/public/docs/js/latest/api/directives/NgIf-class.jade
index d064f10ee0..8c8b72d3c3 100644
--- a/public/docs/js/latest/api/directives/NgIf-class.jade
+++ b/public/docs/js/latest/api/directives/NgIf-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_if.ts (line 3)
+ defined in angular2/src/directives/ng_if.ts (line 3)
:markdown
Removes or recreates a portion of the DOM tree based on an {expression}.
@@ -43,20 +43,7 @@ p.location-badge.
.l-sub-section
- h3 ngIf
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 prevCondition
+ h3 viewContainer
:markdown
@@ -82,7 +69,20 @@ p.location-badge.
.l-sub-section
- h3 viewContainer
+ 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
index 30d46eeb37..477f20d166 100644
--- a/public/docs/js/latest/api/directives/NgNonBindable-class.jade
+++ b/public/docs/js/latest/api/directives/NgNonBindable-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_non_bindable.ts (line 1)
+ 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
diff --git a/public/docs/js/latest/api/directives/NgSwitch-class.jade b/public/docs/js/latest/api/directives/NgSwitch-class.jade
index bf3ac04b55..acfe57319b 100644
--- a/public/docs/js/latest/api/directives/NgSwitch-class.jade
+++ b/public/docs/js/latest/api/directives/NgSwitch-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_switch.ts (line 18)
+ defined in angular2/src/directives/ng_switch.ts (line 18)
:markdown
The `NgSwitch` directive is used to conditionally swap DOM structure on your template based on a
diff --git a/public/docs/js/latest/api/directives/NgSwitchDefault-class.jade b/public/docs/js/latest/api/directives/NgSwitchDefault-class.jade
index 8e974f203a..aa5518befb 100644
--- a/public/docs/js/latest/api/directives/NgSwitchDefault-class.jade
+++ b/public/docs/js/latest/api/directives/NgSwitchDefault-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_switch.ts (line 176)
+ defined in angular2/src/directives/ng_switch.ts (line 176)
:markdown
Defines a default case statement.
@@ -22,7 +22,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(viewContainer: ViewContainerRef, protoViewRef: ProtoViewRef, @Parent() sswitch: NgSwitch)
+ constructor(viewContainer: ViewContainerRef, protoViewRef: ProtoViewRef, 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
index 389c15c30f..594240240c 100644
--- a/public/docs/js/latest/api/directives/NgSwitchWhen-class.jade
+++ b/public/docs/js/latest/api/directives/NgSwitchWhen-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_switch.ts (line 136)
+ defined in angular2/src/directives/ng_switch.ts (line 136)
:markdown
Defines a case statement as an expression.
@@ -26,7 +26,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(viewContainer: ViewContainerRef, protoViewRef: ProtoViewRef, @Parent() sswitch: NgSwitch)
+ constructor(viewContainer: ViewContainerRef, protoViewRef: ProtoViewRef, sswitch: NgSwitch)
:markdown
@@ -35,19 +35,6 @@ p.location-badge.
- .l-sub-section
- h3 ngSwitchWhen
-
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 onDestroy
@@ -64,3 +51,16 @@ p.location-badge.
+
+ .l-sub-section
+ h3 ngSwitchWhen
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/directives/NonBindable-class.jade b/public/docs/js/latest/api/directives/NonBindable-class.jade
deleted file mode 100644
index 4b0f4d617b..0000000000
--- a/public/docs/js/latest/api/directives/NonBindable-class.jade
+++ /dev/null
@@ -1,18 +0,0 @@
-
-p.location-badge.
- exported from angular2/directives
- defined in angular2/src/directives/non_bindable.js (line 21)
-
-:markdown
- The `NonBindable` 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/Switch-class.jade b/public/docs/js/latest/api/directives/Switch-class.jade
deleted file mode 100644
index 919097b4c4..0000000000
--- a/public/docs/js/latest/api/directives/Switch-class.jade
+++ /dev/null
@@ -1,61 +0,0 @@
-
-p.location-badge.
- exported from angular2/directives
- defined in angular2/src/directives/switch.js (line 58)
-
-:markdown
- The `Switch` directive is used to conditionally swap DOM structure on your template based on a
- scope expression.
- Elements within `Switch` but without `SwitchWhen` or `SwitchDefault` directives will be
- preserved at the location as specified in the template.
-
- `Switch` 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 **`[switch]="..."` attribute**),
- define any inner elements inside of the directive and place a `[switch-when]` attribute per
- element.
- The when attribute is used to inform Switch 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 value
-
-
- pre.prettyprint
- code.
- value(value)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/directives/SwitchDefault-class.jade b/public/docs/js/latest/api/directives/SwitchDefault-class.jade
deleted file mode 100644
index ad15b0929c..0000000000
--- a/public/docs/js/latest/api/directives/SwitchDefault-class.jade
+++ /dev/null
@@ -1,31 +0,0 @@
-
-p.location-badge.
- exported from angular2/directives
- defined in angular2/src/directives/switch.js (line 211)
-
-:markdown
- Defines a default case statement.
-
- Default case statements are displayed when no `SwitchWhen` match the `switch` value.
-
- Example:
-
- ```
- ...
- ```
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor(viewContainer: ViewContainerRef, protoViewRef: ProtoViewRef, sswitch: Switch)
-
- :markdown
-
-
-
-
diff --git a/public/docs/js/latest/api/directives/SwitchView-class.jade b/public/docs/js/latest/api/directives/SwitchView-class.jade
index 5afd53d503..c91690c60d 100644
--- a/public/docs/js/latest/api/directives/SwitchView-class.jade
+++ b/public/docs/js/latest/api/directives/SwitchView-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_switch.ts (line 4)
+ defined in angular2/src/directives/ng_switch.ts (line 4)
:markdown
diff --git a/public/docs/js/latest/api/directives/SwitchWhen-class.jade b/public/docs/js/latest/api/directives/SwitchWhen-class.jade
deleted file mode 100644
index 64ed8e6e57..0000000000
--- a/public/docs/js/latest/api/directives/SwitchWhen-class.jade
+++ /dev/null
@@ -1,67 +0,0 @@
-
-p.location-badge.
- exported from angular2/directives
- defined in angular2/src/directives/switch.js (line 172)
-
-:markdown
- Defines a case statement as an expression.
-
- If multiple `SwitchWhen` match the `Switch` 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, protoViewRef: ProtoViewRef, sswitch: Switch)
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 onDestroy
-
-
- pre.prettyprint
- code.
- onDestroy()
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 when
-
-
- pre.prettyprint
- code.
- when(value)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/directives/coreDirectives-const.jade b/public/docs/js/latest/api/directives/coreDirectives-const.jade
index 2f1ea4bb00..5c623f038b 100644
--- a/public/docs/js/latest/api/directives/coreDirectives-const.jade
+++ b/public/docs/js/latest/api/directives/coreDirectives-const.jade
@@ -3,6 +3,7 @@
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
diff --git a/public/docs/js/latest/api/directives/index.jade b/public/docs/js/latest/api/directives/index.jade
index 2172e0ba13..f7aa17d831 100644
--- a/public/docs/js/latest/api/directives/index.jade
+++ b/public/docs/js/latest/api/directives/index.jade
@@ -1,5 +1,5 @@
p.location-badge.
- defined in angular2/directives.ts (line 1)
+ 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
diff --git a/public/docs/js/latest/api/forms/AbstractControl-class.jade b/public/docs/js/latest/api/forms/AbstractControl-class.jade
index 63366f2849..4f9a237d39 100644
--- a/public/docs/js/latest/api/forms/AbstractControl-class.jade
+++ b/public/docs/js/latest/api/forms/AbstractControl-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/model.ts (line 22)
+ defined in angular2/src/forms/model.ts (line 41)
:markdown
Omitting from external API doc as this is really an abstract internal concept.
@@ -25,7 +25,46 @@ p.location-badge.
.l-sub-section
- h3 dirty
+ h3 validator
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 value
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 status
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 valid
:markdown
@@ -64,24 +103,7 @@ p.location-badge.
.l-sub-section
- h3 setParent
-
-
- pre.prettyprint
- code.
- setParent(parent)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 status
+ h3 dirty
:markdown
@@ -94,24 +116,7 @@ p.location-badge.
.l-sub-section
- h3 updateValidity
-
-
- pre.prettyprint
- code.
- updateValidity()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 valid
+ h3 touched
:markdown
@@ -124,7 +129,7 @@ p.location-badge.
.l-sub-section
- h3 validator
+ h3 untouched
:markdown
@@ -136,20 +141,6 @@ p.location-badge.
- .l-sub-section
- h3 value
-
-
- :markdown
-
-
-
-
-
-
-
-
-
.l-sub-section
h3 valueChanges
@@ -162,3 +153,140 @@ p.location-badge.
+
+ .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)
+
+ :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/CheckboxControlValueAccessor-class.jade b/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade
index f649c8a860..33ebd0cbf6 100644
--- a/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade
+++ b/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade
@@ -1,15 +1,14 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/checkbox_value_accessor.ts (line 4)
+ defined in angular2/src/forms/directives/checkbox_value_accessor.ts (line 4)
:markdown
The accessor for writing a value and listening to changes on a checkbox input element.
-
# Example
```
-
+
```
.l-main-section
@@ -20,7 +19,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(cd: ControlDirective, private _elementRef: ElementRef, private _renderer: Renderer)
+ constructor(cd: NgControl, renderer: Renderer, elementRef: ElementRef)
:markdown
@@ -56,12 +55,47 @@ p.location-badge.
.l-sub-section
- h3 registerOnChange
+ h3 onTouched
- pre.prettyprint
- code.
- registerOnChange(fn)
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 cd
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 renderer
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 elementRef
+
:markdown
@@ -88,3 +122,37 @@ p.location-badge.
+
+ .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
index f13b932a95..e1855642cf 100644
--- a/public/docs/js/latest/api/forms/Control-class.jade
+++ b/public/docs/js/latest/api/forms/Control-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/model.ts (line 74)
+ defined in angular2/src/forms/model.ts (line 139)
:markdown
Defines a part of a form that cannot be divided into other controls.
@@ -18,7 +18,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(value: any, validator: Function = Validators.nullValidator)
+ constructor(value: any, validator?: Function)
:markdown
@@ -33,7 +33,24 @@ p.location-badge.
pre.prettyprint
code.
- updateValue(value: any)
+ updateValue(value: any, {onlySelf, emitEvent}?: {onlySelf?: boolean, emitEvent?: 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
index 5099b17a9a..889a997c1e 100644
--- a/public/docs/js/latest/api/forms/ControlArray-class.jade
+++ b/public/docs/js/latest/api/forms/ControlArray-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/model.ts (line 213)
+ defined in angular2/src/forms/model.ts (line 254)
:markdown
Defines a part of a form, of variable length, that can contain other controls.
@@ -26,7 +26,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(controls: List<AbstractControl>, validator: Function = Validators.array)
+ constructor(controls: List<AbstractControl>, validator?: Function)
:markdown
@@ -35,23 +35,6 @@ p.location-badge.
- .l-sub-section
- h3 at
-
-
- pre.prettyprint
- code.
- at(index: number)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 controls
@@ -66,25 +49,12 @@ p.location-badge.
.l-sub-section
- h3 insert
+ h3 at
pre.prettyprint
code.
- insert(index: number, control: AbstractControl)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 length
-
+ at(index: number)
:markdown
@@ -112,6 +82,23 @@ p.location-badge.
+ .l-sub-section
+ h3 insert
+
+
+ pre.prettyprint
+ code.
+ insert(index: number, control: AbstractControl)
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 removeAt
@@ -128,3 +115,16 @@ p.location-badge.
+
+ .l-sub-section
+ h3 length
+
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/forms/ControlDirective-class.jade b/public/docs/js/latest/api/forms/ControlDirective-class.jade
deleted file mode 100644
index 69cb0d8066..0000000000
--- a/public/docs/js/latest/api/forms/ControlDirective-class.jade
+++ /dev/null
@@ -1,76 +0,0 @@
-
-p.location-badge.
- exported from angular2/forms
- defined in angular2/src/forms/directives/control_directive.ts (line 2)
-
-:markdown
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor()
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 name
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 path
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 validator
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 valueAccessor
-
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/forms/ControlGroup-class.jade b/public/docs/js/latest/api/forms/ControlGroup-class.jade
index 1fabd35ede..643e5d4db8 100644
--- a/public/docs/js/latest/api/forms/ControlGroup-class.jade
+++ b/public/docs/js/latest/api/forms/ControlGroup-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/model.ts (line 106)
+ defined in angular2/src/forms/model.ts (line 168)
:markdown
Defines a part of a form, of fixed length, that can contain other controls.
@@ -26,7 +26,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(controls: StringMap<String, AbstractControl>, optionals: StringMap<String, boolean> = null, validator: Function = Validators.group)
+ constructor(controls: StringMap<String, AbstractControl>, optionals?: StringMap<String, boolean>, validator?: Function)
:markdown
@@ -35,6 +35,19 @@ p.location-badge.
+ .l-sub-section
+ h3 controls
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 addControl
@@ -53,59 +66,12 @@ p.location-badge.
.l-sub-section
- h3 contains
+ h3 removeControl
pre.prettyprint
code.
- contains(controlName: string)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 controls
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 exclude
-
-
- pre.prettyprint
- code.
- exclude(controlName: string)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 find
-
-
- pre.prettyprint
- code.
- find(path: string | List<string>)
+ removeControl(name: string)
:markdown
@@ -134,12 +100,29 @@ p.location-badge.
.l-sub-section
- h3 removeControl
+ h3 exclude
pre.prettyprint
code.
- removeControl(name: string)
+ 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/ControlGroupDirective-class.jade b/public/docs/js/latest/api/forms/ControlGroupDirective-class.jade
deleted file mode 100644
index 8f5a1280af..0000000000
--- a/public/docs/js/latest/api/forms/ControlGroupDirective-class.jade
+++ /dev/null
@@ -1,120 +0,0 @@
-
-p.location-badge.
- exported from angular2/forms
- defined in angular2/src/forms/directives/control_group_directive.ts (line 10)
-
-:markdown
- Binds a 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.
-
- Here we use formDirectives
, rather than importing each form directive individually, e.g.
- `ControlDirective`, `ControlGroupDirective`. This is just a shorthand for the same end result.
-
- ```
- @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
- }
- }
-
- ```
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor(@Ancestor() _parent: ControlContainerDirective)
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 formDirective
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 onDestroy
-
-
- pre.prettyprint
- code.
- onDestroy()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 onInit
-
-
- pre.prettyprint
- code.
- onInit()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 path
-
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/forms/ControlNameDirective-class.jade b/public/docs/js/latest/api/forms/ControlNameDirective-class.jade
deleted file mode 100644
index eec1d237fc..0000000000
--- a/public/docs/js/latest/api/forms/ControlNameDirective-class.jade
+++ /dev/null
@@ -1,111 +0,0 @@
-
-p.location-badge.
- exported from angular2/forms
- defined in angular2/src/forms/directives/control_name_directive.ts (line 11)
-
-:markdown
- Binds a 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.
-
- Here we use formDirectives
, rather than importing each form directive individually, e.g.
- `ControlDirective`, `ControlGroupDirective`. This is just a shorthand for the same end result.
-
- ```
- @Component({selector: "login-comp"})
- @View({
- directives: [formDirectives],
- template: " "
- })
- class LoginComp {
- loginControl:Control;
-
- constructor() {
- this.loginControl = new Control('');
- }
- }
-
- ```
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor(@Ancestor() _parent: ControlContainerDirective)
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 formDirective
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 onDestroy
-
-
- pre.prettyprint
- code.
- onDestroy()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 onInit
-
-
- pre.prettyprint
- code.
- onInit()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 path
-
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/forms/ControlValueAccessor-interface.jade b/public/docs/js/latest/api/forms/ControlValueAccessor-interface.jade
index 9c9a94d16a..2c6142c390 100644
--- a/public/docs/js/latest/api/forms/ControlValueAccessor-interface.jade
+++ b/public/docs/js/latest/api/forms/ControlValueAccessor-interface.jade
@@ -1,30 +1,16 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/control_value_accessor.ts (line 1)
+ 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 registerOnChange
-
-
- pre.prettyprint
- code.
- registerOnChange(fun: any)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 writeValue
@@ -41,3 +27,37 @@ p.location-badge.
+
+ .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
index 965cac5e2c..c6881442dd 100644
--- a/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade
+++ b/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade
@@ -1,17 +1,15 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/default_value_accessor.ts (line 4)
+ defined in angular2/src/forms/directives/default_value_accessor.ts (line 5)
:markdown
- The default accessor for writing a value and listening to changes that is used by a
- Control
directive.
-
- This is the default strategy that Angular uses when no other accessor is applied.
+ 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
@@ -22,7 +20,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(cd: ControlDirective, private _elementRef: ElementRef, private _renderer: Renderer)
+ constructor(cd: NgControl, renderer: Renderer, elementRef: ElementRef)
:markdown
@@ -31,6 +29,19 @@ p.location-badge.
+ .l-sub-section
+ h3 value
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 onChange
@@ -44,6 +55,75 @@ p.location-badge.
+ .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)
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 registerOnChange
@@ -62,25 +142,12 @@ p.location-badge.
.l-sub-section
- h3 value
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 writeValue
+ h3 registerOnTouched
pre.prettyprint
code.
- writeValue(value)
+ registerOnTouched(fn)
:markdown
diff --git a/public/docs/js/latest/api/forms/FormBuilder-class.jade b/public/docs/js/latest/api/forms/FormBuilder-class.jade
index 520cdcba30..6a03f7a92f 100644
--- a/public/docs/js/latest/api/forms/FormBuilder-class.jade
+++ b/public/docs/js/latest/api/forms/FormBuilder-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/form_builder.ts (line 3)
+ defined in angular2/src/forms/form_builder.ts (line 3)
:markdown
Creates a form object from a user-specified configuration.
@@ -69,12 +69,12 @@ p.location-badge.
.l-main-section
h2 Members
.l-sub-section
- h3 array
+ h3 group
pre.prettyprint
code.
- array(controlsConfig: List<any>, validator: Function = null)
+ group(controlsConfig: StringMap<string, any>, extra?: StringMap<string, any>)
:markdown
@@ -91,7 +91,7 @@ p.location-badge.
pre.prettyprint
code.
- control(value: Object, validator: Function = null)
+ control(value: Object, validator?: Function)
:markdown
@@ -103,12 +103,12 @@ p.location-badge.
.l-sub-section
- h3 group
+ h3 array
pre.prettyprint
code.
- group(controlsConfig: StringMap<string, any>, extra: StringMap<string, any> = null)
+ array(controlsConfig: List<any>, validator?: Function)
:markdown
diff --git a/public/docs/js/latest/api/forms/FormControlDirective-class.jade b/public/docs/js/latest/api/forms/FormControlDirective-class.jade
deleted file mode 100644
index de2d4212d2..0000000000
--- a/public/docs/js/latest/api/forms/FormControlDirective-class.jade
+++ /dev/null
@@ -1,39 +0,0 @@
-
-p.location-badge.
- exported from angular2/forms
- defined in angular2/src/forms/directives/form_control_directive.ts (line 10)
-
-:markdown
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 control
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 onChange
-
-
- pre.prettyprint
- code.
- onChange(_)
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/forms/FormDirectives-var.jade b/public/docs/js/latest/api/forms/FormDirectives-var.jade
deleted file mode 100644
index 4ead987c5c..0000000000
--- a/public/docs/js/latest/api/forms/FormDirectives-var.jade
+++ /dev/null
@@ -1,12 +0,0 @@
-
-.l-main-section
- h2 FormDirectives variable
- p.location-badge.
- exported from angular2/forms
-
- :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/FormModelDirective-class.jade b/public/docs/js/latest/api/forms/FormModelDirective-class.jade
deleted file mode 100644
index f72daf6cae..0000000000
--- a/public/docs/js/latest/api/forms/FormModelDirective-class.jade
+++ /dev/null
@@ -1,161 +0,0 @@
-
-p.location-badge.
- exported from angular2/forms
- defined in angular2/src/forms/directives/form_model_directive.ts (line 13)
-
-:markdown
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor()
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 addControl
-
-
- pre.prettyprint
- code.
- addControl(dir: ControlDirective)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 addControlGroup
-
-
- pre.prettyprint
- code.
- addControlGroup(dir: ControlGroupDirective)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 directives
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 form
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 formDirective
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 onChange
-
-
- pre.prettyprint
- code.
- onChange(_)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 path
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 removeControl
-
-
- pre.prettyprint
- code.
- removeControl(dir: ControlDirective)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 removeControlGroup
-
-
- pre.prettyprint
- code.
- removeControlGroup(dir: ControlGroupDirective)
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/forms/INVALID-const.jade b/public/docs/js/latest/api/forms/INVALID-const.jade
index 526e2c685e..4692796713 100644
--- a/public/docs/js/latest/api/forms/INVALID-const.jade
+++ b/public/docs/js/latest/api/forms/INVALID-const.jade
@@ -3,6 +3,7 @@
h2 INVALID variable
p.location-badge.
exported from angular2/forms
+ defined in angular2/src/forms/model.ts (line 18)
:markdown
Indicates that a Control is invalid, i.e. that an error exists in the input value.
diff --git a/public/docs/js/latest/api/forms/INVALID-var.jade b/public/docs/js/latest/api/forms/INVALID-var.jade
deleted file mode 100644
index fe5786ca11..0000000000
--- a/public/docs/js/latest/api/forms/INVALID-var.jade
+++ /dev/null
@@ -1,10 +0,0 @@
-
-.l-main-section
- h2 INVALID variable
- p.location-badge.
- exported from angular2/forms
-
- :markdown
- Indicates that a Control is invalid, i.e. that an error exists in the input value.
-
-
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..60605dbae3
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgControl-class.jade
@@ -0,0 +1,108 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/ng_control.ts (line 3)
+
+: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 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .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 control
+
+
+ :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..c819d2b617
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgControlGroup-class.jade
@@ -0,0 +1,118 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/ng_control_group.ts (line 10)
+
+: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 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..15a928edb2
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgControlName-class.jade
@@ -0,0 +1,193 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/ng_control_name.ts (line 13)
+
+: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)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngModel
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 model
+
+
+ :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
+
+
+
+
+
+
+
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..73ecd9deb6
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgForm-class.jade
@@ -0,0 +1,263 @@
+
+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 path
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 controls
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 value
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 errors
+
+
+ :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 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..0c04a1ea83
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgFormControl-class.jade
@@ -0,0 +1,165 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/ng_form_control.ts (line 13)
+
+: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()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 form
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ngModel
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 model
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onChange
+
+
+ pre.prettyprint
+ code.
+ onChange(c)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 control
+
+
+ :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/NgFormModel-class.jade b/public/docs/js/latest/api/forms/NgFormModel-class.jade
new file mode 100644
index 0000000000..97738072c5
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgFormModel-class.jade
@@ -0,0 +1,288 @@
+
+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 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .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(_)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 formDirective
+
+
+ :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 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..4e78f8b7e6
--- /dev/null
+++ b/public/docs/js/latest/api/forms/NgModel-class.jade
@@ -0,0 +1,108 @@
+
+p.location-badge.
+ exported from angular2/forms
+ defined in angular2/src/forms/directives/ng_model.ts (line 12)
+
+: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 ngModel
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 model
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onChange
+
+
+ pre.prettyprint
+ code.
+ onChange(c)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 control
+
+
+ :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/RequiredValidatorDirective-class.jade b/public/docs/js/latest/api/forms/NgRequiredValidator-class.jade
similarity index 50%
rename from public/docs/js/latest/api/forms/RequiredValidatorDirective-class.jade
rename to public/docs/js/latest/api/forms/NgRequiredValidator-class.jade
index 5628f6dbc0..67e307a984 100644
--- a/public/docs/js/latest/api/forms/RequiredValidatorDirective-class.jade
+++ b/public/docs/js/latest/api/forms/NgRequiredValidator-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/validator_directives.ts (line 3)
+ defined in angular2/src/forms/directives/validators.ts (line 3)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(c: ControlDirective)
+ constructor(c: NgControl)
:markdown
diff --git a/public/docs/js/latest/api/forms/SelectControlValueAccessor-class.jade b/public/docs/js/latest/api/forms/SelectControlValueAccessor-class.jade
index 169887c1de..2c5b70e8db 100644
--- a/public/docs/js/latest/api/forms/SelectControlValueAccessor-class.jade
+++ b/public/docs/js/latest/api/forms/SelectControlValueAccessor-class.jade
@@ -1,18 +1,10 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/select_control_value_accessor.ts (line 4)
+ defined in angular2/src/forms/directives/select_control_value_accessor.ts (line 19)
:markdown
- The accessor for writing a value and listening to changes that is used by a
- Control
directive.
-
- This is the default strategy that Angular uses when no other accessor is applied.
-
- # Example
- ```
-
- ```
+ The accessor for writing a value and listening to changes on a select element.
.l-main-section
h2 Members
@@ -22,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(cd: ControlDirective, private _elementRef: ElementRef, private _renderer: Renderer)
+ constructor(cd: NgControl, renderer: Renderer, elementRef: ElementRef, query: QueryList<NgSelectOption>)
:markdown
@@ -31,6 +23,19 @@ p.location-badge.
+ .l-sub-section
+ h3 value
+
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 onChange
@@ -44,6 +49,75 @@ p.location-badge.
+ .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)
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 registerOnChange
@@ -62,25 +136,12 @@ p.location-badge.
.l-sub-section
- h3 value
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 writeValue
+ h3 registerOnTouched
pre.prettyprint
code.
- writeValue(value)
+ registerOnTouched(fn)
:markdown
diff --git a/public/docs/js/latest/api/forms/TemplateDrivenFormDirective-class.jade b/public/docs/js/latest/api/forms/TemplateDrivenFormDirective-class.jade
deleted file mode 100644
index 41c14a24f1..0000000000
--- a/public/docs/js/latest/api/forms/TemplateDrivenFormDirective-class.jade
+++ /dev/null
@@ -1,157 +0,0 @@
-
-p.location-badge.
- exported from angular2/forms
- defined in angular2/src/forms/directives/template_driven_form_directive.ts (line 14)
-
-:markdown
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor()
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 addControl
-
-
- pre.prettyprint
- code.
- addControl(dir: ControlDirective)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 addControlGroup
-
-
- pre.prettyprint
- code.
- addControlGroup(dir: ControlGroupDirective)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 controls
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 form
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 formDirective
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 path
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 removeControl
-
-
- pre.prettyprint
- code.
- removeControl(dir: ControlDirective)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 removeControlGroup
-
-
- pre.prettyprint
- code.
- removeControlGroup(dir: ControlGroupDirective)
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 value
-
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/forms/VALID-const.jade b/public/docs/js/latest/api/forms/VALID-const.jade
index 7d78b82d3e..478a93097c 100644
--- a/public/docs/js/latest/api/forms/VALID-const.jade
+++ b/public/docs/js/latest/api/forms/VALID-const.jade
@@ -3,6 +3,7 @@
h2 VALID variable
p.location-badge.
exported from angular2/forms
+ defined in angular2/src/forms/model.ts (line 11)
:markdown
Indicates that a Control is valid, i.e. that no errors exist in the input value.
diff --git a/public/docs/js/latest/api/forms/VALID-var.jade b/public/docs/js/latest/api/forms/VALID-var.jade
deleted file mode 100644
index d01a5f8006..0000000000
--- a/public/docs/js/latest/api/forms/VALID-var.jade
+++ /dev/null
@@ -1,10 +0,0 @@
-
-.l-main-section
- h2 VALID variable
- p.location-badge.
- exported from angular2/forms
-
- :markdown
- Indicates that a Control is valid, i.e. that no errors exist in the input value.
-
-
diff --git a/public/docs/js/latest/api/forms/Validators-class.jade b/public/docs/js/latest/api/forms/Validators-class.jade
index ff7ebaa6b5..bbd71eb77d 100644
--- a/public/docs/js/latest/api/forms/Validators-class.jade
+++ b/public/docs/js/latest/api/forms/Validators-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/validators.ts (line 4)
+ defined in angular2/src/forms/validators.ts (line 4)
:markdown
Provides a set of validators used by form controls.
diff --git a/public/docs/js/latest/api/forms/_data.json b/public/docs/js/latest/api/forms/_data.json
index 5ff384e179..d5d1d94e4d 100644
--- a/public/docs/js/latest/api/forms/_data.json
+++ b/public/docs/js/latest/api/forms/_data.json
@@ -4,6 +4,10 @@
"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."
},
+ "formInjectables-const" : {
+ "title" : "formInjectables Const"
+ },
+
"VALID-const" : {
"title" : "VALID Const"
},
@@ -32,28 +36,32 @@
"title" : "ControlArray Class"
},
- "ControlNameDirective-class" : {
- "title" : "ControlNameDirective Class"
+ "NgControlName-class" : {
+ "title" : "NgControlName Class"
},
- "FormControlDirective-class" : {
- "title" : "FormControlDirective Class"
+ "NgFormControl-class" : {
+ "title" : "NgFormControl Class"
},
- "ControlDirective-class" : {
- "title" : "ControlDirective Class"
+ "NgModel-class" : {
+ "title" : "NgModel Class"
},
- "ControlGroupDirective-class" : {
- "title" : "ControlGroupDirective Class"
+ "NgControl-class" : {
+ "title" : "NgControl Class"
},
- "FormModelDirective-class" : {
- "title" : "FormModelDirective Class"
+ "NgControlGroup-class" : {
+ "title" : "NgControlGroup Class"
},
- "TemplateDrivenFormDirective-class" : {
- "title" : "TemplateDrivenFormDirective Class"
+ "NgFormModel-class" : {
+ "title" : "NgFormModel Class"
+ },
+
+ "NgForm-class" : {
+ "title" : "NgForm Class"
},
"ControlValueAccessor-interface" : {
@@ -72,6 +80,10 @@
"title" : "SelectControlValueAccessor Class"
},
+ "NgRequiredValidator-class" : {
+ "title" : "NgRequiredValidator Class"
+ },
+
"formDirectives-const" : {
"title" : "formDirectives Const"
},
@@ -80,10 +92,6 @@
"title" : "Validators Class"
},
- "RequiredValidatorDirective-class" : {
- "title" : "RequiredValidatorDirective Class"
- },
-
"FormBuilder-class" : {
"title" : "FormBuilder Class"
}
diff --git a/public/docs/js/latest/api/forms/formDirectives-const.jade b/public/docs/js/latest/api/forms/formDirectives-const.jade
index c219e08e62..a1056bb324 100644
--- a/public/docs/js/latest/api/forms/formDirectives-const.jade
+++ b/public/docs/js/latest/api/forms/formDirectives-const.jade
@@ -3,6 +3,7 @@
h2 formDirectives variable
p.location-badge.
exported from angular2/forms
+ defined in angular2/src/forms/directives.ts (line 37)
:markdown
A list of all the form directives used as part of a `@View` annotation.
diff --git a/public/docs/js/latest/api/forms/formInjectables-const.jade b/public/docs/js/latest/api/forms/formInjectables-const.jade
new file mode 100644
index 0000000000..bd233bc8bf
--- /dev/null
+++ b/public/docs/js/latest/api/forms/formInjectables-const.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ h2 formInjectables variable
+ p.location-badge.
+ exported from angular2/forms
+ defined in angular2/forms.ts (line 24)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/forms/index.jade b/public/docs/js/latest/api/forms/index.jade
index f0cb4bc433..e5b2048197 100644
--- a/public/docs/js/latest/api/forms/index.jade
+++ b/public/docs/js/latest/api/forms/index.jade
@@ -1,5 +1,5 @@
p.location-badge.
- defined in angular2/forms.ts (line 1)
+ 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
diff --git a/public/docs/js/latest/api/forms/isControl-function.jade b/public/docs/js/latest/api/forms/isControl-function.jade
index 1f64b6bc50..7322eef237 100644
--- a/public/docs/js/latest/api/forms/isControl-function.jade
+++ b/public/docs/js/latest/api/forms/isControl-function.jade
@@ -10,7 +10,7 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/model.ts (line 18)
+ defined in angular2/src/forms/model.ts (line 18)
:markdown
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..c5163ed2a2
--- /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 54)
+
+:markdown
+ Injectable version of RequestOptions
.
+
+ #Example
+
+ ```
+ import {Http, BaseRequestOptions, Request} from 'angular2/http';
+ ...
+ class MyComponent {
+ constructor(baseRequestOptions:BaseRequestOptions, http:Http) {
+ var options = baseRequestOptions.merge({body: 'foobar'});
+ var request = new Request('https://foo', 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/Headers-class.jade b/public/docs/js/latest/api/http/Headers-class.jade
new file mode 100644
index 0000000000..fa6e25b0f4
--- /dev/null
+++ b/public/docs/js/latest/api/http/Headers-class.jade
@@ -0,0 +1,197 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/headers.ts (line 15)
+
+: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 | Object)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 append
+
+
+ pre.prettyprint
+ code.
+ append(name: string, value: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 delete
+
+
+ pre.prettyprint
+ code.
+ delete(name: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEach
+
+
+ pre.prettyprint
+ code.
+ forEach(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 get
+
+
+ pre.prettyprint
+ code.
+ get(header: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 has
+
+
+ pre.prettyprint
+ code.
+ has(header: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 keys
+
+
+ pre.prettyprint
+ code.
+ keys()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 set
+
+
+ pre.prettyprint
+ code.
+ set(header: string, value: string | List<string>)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 values
+
+
+ pre.prettyprint
+ code.
+ values()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getAll
+
+
+ pre.prettyprint
+ code.
+ getAll(header: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 entries
+
+
+ pre.prettyprint
+ code.
+ entries()
+
+ :markdown
+
+
+
+
+
+
+
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..60dbadc6ff
--- /dev/null
+++ b/public/docs/js/latest/api/http/Http-class.jade
@@ -0,0 +1,199 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/http.ts (line 22)
+
+: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
+ [Observable](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/observable.md),
+ which will emit a single Response
when a response is
+ received.
+
+ #Example
+
+ ```
+ import {Http, httpInjectables} from 'angular2/http';
+ @Component({selector: 'http-app', appInjector: [httpInjectables]})
+ @View({templateUrl: 'people.html'})
+ class PeopleComponent {
+ constructor(http: Http) {
+ http('people.json')
+ // 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);
+ }
+ }
+ ```
+
+ 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').subscribe((res:Response) => doSomething(res));
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_backend: XHRBackend, _defaultOptions: BaseRequestOptions)
+
+ :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: URLSearchParams | FormData | Blob | string, options?: IRequestOptions)
+
+ :markdown
+
+ Performs a request with `post` http method.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 put
+
+
+ pre.prettyprint
+ code.
+ put(url: string, body: URLSearchParams | FormData | Blob | 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: URLSearchParams | FormData | Blob | 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/HttpFactory-function.jade b/public/docs/js/latest/api/http/HttpFactory-function.jade
new file mode 100644
index 0000000000..fa41b41d72
--- /dev/null
+++ b/public/docs/js/latest/api/http/HttpFactory-function.jade
@@ -0,0 +1,38 @@
+
+.l-main-section
+ h2(class="function export") HttpFactory
+
+
+ pre.prettyprint
+ code.
+ HttpFactory(backend: XHRBackend, defaultOptions: BaseRequestOptions)
+
+
+ p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/http.ts (line 149)
+
+ :markdown
+ Alias to the `request` method of Http
, for those who'd prefer a simple function instead
+ of an object. In order to get TypeScript type information about the `HttpFactory`, the IHttp
interface can be used as shown in the following example.
+
+ #Example
+
+ ```
+ import {httpInjectables, HttpFactory, IHttp} from 'angular2/http';
+ @Component({
+ appInjector: [httpInjectables]
+ })
+ @View({
+ templateUrl: 'people.html'
+ })
+ class MyComponent {
+ constructor(@Inject(HttpFactory) http:IHttp) {
+ http('people.json').subscribe(res => this.people = res.json());
+ }
+ }
+ ```
+
+
+
+
diff --git a/public/docs/js/latest/api/http/IHttp-interface.jade b/public/docs/js/latest/api/http/IHttp-interface.jade
new file mode 100644
index 0000000000..fc883358a8
--- /dev/null
+++ b/public/docs/js/latest/api/http/IHttp-interface.jade
@@ -0,0 +1,26 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/interfaces.ts (line 59)
+
+:markdown
+ Provides an interface to provide type information for HttpFactory
when injecting.
+
+ #Example
+
+ ```
+ * import {httpInjectables, HttpFactory, IHttp} from 'angular2/http';
+ @Component({
+ appInjector: [httpInjectables]
+ })
+ @View({
+ templateUrl: 'people.html'
+ })
+ class MyComponent {
+ constructor(@Inject(HttpFactory) http:IHttp) {
+ http('people.json').subscribe(res => this.people = res.json());
+ }
+ }
+ ```
+
+
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..be43f3a64a
--- /dev/null
+++ b/public/docs/js/latest/api/http/MockBackend-class.jade
@@ -0,0 +1,195 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/mock_backend.ts (line 106)
+
+: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
+
+ [RxJS
+ Subject](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/subjects/subject.md)
+ 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('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
+
+ [Observable](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/observable.md)
+ 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`
+ observable 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..425ccebeaa
--- /dev/null
+++ b/public/docs/js/latest/api/http/MockConnection-class.jade
@@ -0,0 +1,160 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/mock_backend.ts (line 6)
+
+:markdown
+ Connection class used by MockBackend
+
+ This class is typically not instantiated directly, but instances can be retrieved by subscribing
+ to the `connections` Observable of
+ MockBackend
in order to mock responses to requests.
+
+
+.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
+
+ [RxJS
+ Observable](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/observable.md)
+ 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
+ `Observable` 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?)
+
+ :markdown
+
+ Emits the provided error object as an error to the Response
observable returned
+ from Http
.
+
+
+
+
+
+
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..51973a855d
--- /dev/null
+++ b/public/docs/js/latest/api/http/Request-class.jade
@@ -0,0 +1,122 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/static_request.ts (line 5)
+
+:markdown
+ Creates `Request` instances with default 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(url: string, {body, method = RequestMethods.GET, mode = RequestModesOpts.Cors,
+ credentials = RequestCredentialsOpts.Omit,
+ headers = new Headers()}?: IRequestOptions)
+
+ :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 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/RequestOptions-class.jade b/public/docs/js/latest/api/http/RequestOptions-class.jade
new file mode 100644
index 0000000000..c3289187a6
--- /dev/null
+++ b/public/docs/js/latest/api/http/RequestOptions-class.jade
@@ -0,0 +1,132 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/base_request_options.ts (line 7)
+
+:markdown
+ Creates a request options object with default properties as described in the [Fetch
+ Spec](https://fetch.spec.whatwg.org/#requestinit) to be optionally provided when instantiating a
+ Request
. This class is used implicitly by Http
to merge in provided request
+ options with the default options specified here. These same default options are injectable via
+ the BaseRequestOptions
class.
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({method, headers, body, mode, credentials, cache}?: 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 merge
+
+
+ pre.prettyprint
+ code.
+ merge(opts?: 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..6ae33c59d4
--- /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 with default 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 Request 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(_body?: string | Object | ArrayBuffer | JSON | FormData | Blob, {status, statusText, headers, type, url}?: 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/XHRBackend-class.jade b/public/docs/js/latest/api/http/XHRBackend-class.jade
new file mode 100644
index 0000000000..9431638c8e
--- /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 49)
+
+: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({
+ appInjector: [
+ 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(_NativeConstruct: BrowserXHR)
+
+ :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..57c770ff62
--- /dev/null
+++ b/public/docs/js/latest/api/http/XHRConnection-class.jade
@@ -0,0 +1,90 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/xhr_backend.ts (line 8)
+
+: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, NativeConstruct: any)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 response
+
+
+ :markdown
+
+ Response
+ [Subject](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/subjects/subject.md)
+ 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..1c2d125cd2
--- /dev/null
+++ b/public/docs/js/latest/api/http/_data.json
@@ -0,0 +1,58 @@
+{
+ "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"
+ },
+
+ "Http-class" : {
+ "title" : "Http Class"
+ },
+
+ "XHRBackend-class" : {
+ "title" : "XHRBackend Class"
+ },
+
+ "XHRConnection-class" : {
+ "title" : "XHRConnection Class"
+ },
+
+ "BaseRequestOptions-class" : {
+ "title" : "BaseRequestOptions Class"
+ },
+
+ "RequestOptions-class" : {
+ "title" : "RequestOptions Class"
+ },
+
+ "HttpFactory-function" : {
+ "title" : "HttpFactory Function"
+ },
+
+ "IHttp-interface" : {
+ "title" : "IHttp Interface"
+ },
+
+ "Headers-class" : {
+ "title" : "Headers Class"
+ },
+
+ "httpInjectables-var" : {
+ "title" : "httpInjectables 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..f383e3e44c
--- /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 39)
+
+ :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', appInjector: [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..f7ea3b6cda
--- /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/pipes/AsyncPipe-class.jade b/public/docs/js/latest/api/pipes/AsyncPipe-class.jade
deleted file mode 100644
index fa2c415a68..0000000000
--- a/public/docs/js/latest/api/pipes/AsyncPipe-class.jade
+++ /dev/null
@@ -1,90 +0,0 @@
-
-p.location-badge.
- exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/async_pipe.js (line 29)
-
-: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({
- inline: "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 onDestroy
-
-
- pre.prettyprint
- code.
- onDestroy()
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(obs)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 transform
-
-
- pre.prettyprint
- code.
- transform(obs:Observable)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/pipes/AsyncPipeFactory-class.jade b/public/docs/js/latest/api/pipes/AsyncPipeFactory-class.jade
deleted file mode 100644
index 2368d6fabe..0000000000
--- a/public/docs/js/latest/api/pipes/AsyncPipeFactory-class.jade
+++ /dev/null
@@ -1,55 +0,0 @@
-
-p.location-badge.
- exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/async_pipe.js (line 103)
-
-:markdown
- Provides a factory for [AsyncPipe].
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor()
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 create
-
-
- pre.prettyprint
- code.
- create(cdRef)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(obs)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/pipes/CollectionChangeRecord-class.jade b/public/docs/js/latest/api/pipes/CollectionChangeRecord-class.jade
deleted file mode 100644
index 589276fa8b..0000000000
--- a/public/docs/js/latest/api/pipes/CollectionChangeRecord-class.jade
+++ /dev/null
@@ -1,74 +0,0 @@
-
-p.location-badge.
- exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/iterable_changes.js (line 515)
-
-:markdown
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor(item)
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 currentIndex
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 item
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 previousIndex
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 toString
-
-
- pre.prettyprint
- code.
- toString()
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/pipes/IterableChanges-class.jade b/public/docs/js/latest/api/pipes/IterableChanges-class.jade
index f1c270ff29..c170acdca2 100644
--- a/public/docs/js/latest/api/pipes/IterableChanges-class.jade
+++ b/public/docs/js/latest/api/pipes/IterableChanges-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/iterable_changes.ts (line 26)
+ defined in angular2/src/change_detection/pipes/iterable_changes.ts (line 27)
:markdown
@@ -23,12 +23,12 @@ p.location-badge.
.l-sub-section
- h3 check
+ h3 supports
pre.prettyprint
code.
- check(collection)
+ supports(obj)
:markdown
@@ -53,13 +53,9 @@ p.location-badge.
.l-sub-section
- h3 forEachAddedItem
+ h3 length
- pre.prettyprint
- code.
- forEachAddedItem(fn: Function)
-
:markdown
@@ -87,12 +83,12 @@ p.location-badge.
.l-sub-section
- h3 forEachMovedItem
+ h3 forEachPreviousItem
pre.prettyprint
code.
- forEachMovedItem(fn: Function)
+ forEachPreviousItem(fn: Function)
:markdown
@@ -104,12 +100,29 @@ p.location-badge.
.l-sub-section
- h3 forEachPreviousItem
+ h3 forEachAddedItem
pre.prettyprint
code.
- forEachPreviousItem(fn: Function)
+ forEachAddedItem(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEachMovedItem
+
+
+ pre.prettyprint
+ code.
+ forEachMovedItem(fn: Function)
:markdown
@@ -138,38 +151,42 @@ p.location-badge.
.l-sub-section
- h3 isDirty
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 length
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 supports
+ h3 transform
pre.prettyprint
code.
- supports(obj)
+ transform(collection)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 check
+
+
+ pre.prettyprint
+ code.
+ check(collection)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 isDirty
+
:markdown
@@ -196,20 +213,3 @@ p.location-badge.
-
- .l-sub-section
- h3 transform
-
-
- pre.prettyprint
- code.
- transform(collection)
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/pipes/JsonPipe-class.jade b/public/docs/js/latest/api/pipes/JsonPipe-class.jade
index 6be3d75c01..7fa152b7dc 100644
--- a/public/docs/js/latest/api/pipes/JsonPipe-class.jade
+++ b/public/docs/js/latest/api/pipes/JsonPipe-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/json_pipe.ts (line 2)
+ defined in angular2/src/change_detection/pipes/json_pipe.ts (line 2)
:markdown
Implements json transforms to any object.
@@ -28,38 +28,6 @@ p.location-badge.
.l-main-section
h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor()
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 onDestroy
-
-
- pre.prettyprint
- code.
- onDestroy()
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 supports
@@ -93,3 +61,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 create
+
+
+ pre.prettyprint
+ code.
+ create(cdRef)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/pipes/KVChangeRecord-class.jade b/public/docs/js/latest/api/pipes/KVChangeRecord-class.jade
deleted file mode 100644
index c2012dd3c0..0000000000
--- a/public/docs/js/latest/api/pipes/KVChangeRecord-class.jade
+++ /dev/null
@@ -1,74 +0,0 @@
-
-p.location-badge.
- exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/keyvalue_changes.js (line 365)
-
-:markdown
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor(key)
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 currentValue
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 key
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 previousValue
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 toString
-
-
- pre.prettyprint
- code.
- toString()
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/pipes/KeyValueChanges-class.jade b/public/docs/js/latest/api/pipes/KeyValueChanges-class.jade
index e099bbbe0d..501c8aafd4 100644
--- a/public/docs/js/latest/api/pipes/KeyValueChanges-class.jade
+++ b/public/docs/js/latest/api/pipes/KeyValueChanges-class.jade
@@ -1,34 +1,19 @@
p.location-badge.
exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/keyvalue_changes.ts (line 16)
+ defined in angular2/src/change_detection/pipes/keyvalue_changes.ts (line 16)
:markdown
.l-main-section
h2 Members
.l-sub-section
- h3 constructor
+ h3 supports
pre.prettyprint
code.
- constructor()
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 check
-
-
- pre.prettyprint
- code.
- check(map)
+ supports(obj)
:markdown
@@ -40,12 +25,12 @@ p.location-badge.
.l-sub-section
- h3 forEachAddedItem
+ h3 transform
pre.prettyprint
code.
- forEachAddedItem(fn: Function)
+ transform(map)
:markdown
@@ -57,13 +42,9 @@ p.location-badge.
.l-sub-section
- h3 forEachChangedItem
+ h3 isDirty
- pre.prettyprint
- code.
- forEachChangedItem(fn: Function)
-
:markdown
@@ -107,6 +88,40 @@ p.location-badge.
+ .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
@@ -125,25 +140,12 @@ p.location-badge.
.l-sub-section
- h3 isDirty
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 supports
+ h3 check
pre.prettyprint
code.
- supports(obj)
+ check(map)
:markdown
@@ -170,20 +172,3 @@ p.location-badge.
-
- .l-sub-section
- h3 transform
-
-
- pre.prettyprint
- code.
- transform(map)
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/pipes/KeyValueChangesFactory-class.jade b/public/docs/js/latest/api/pipes/KeyValueChangesFactory-class.jade
deleted file mode 100644
index be5d2d284e..0000000000
--- a/public/docs/js/latest/api/pipes/KeyValueChangesFactory-class.jade
+++ /dev/null
@@ -1,54 +0,0 @@
-
-p.location-badge.
- exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/keyvalue_changes.js (line 8)
-
-:markdown
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor()
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 create
-
-
- pre.prettyprint
- code.
- create(cdRef)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(obj)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/pipes/LowerCasePipe-class.jade b/public/docs/js/latest/api/pipes/LowerCasePipe-class.jade
index dea7a92042..0e0a2c31f1 100644
--- a/public/docs/js/latest/api/pipes/LowerCasePipe-class.jade
+++ b/public/docs/js/latest/api/pipes/LowerCasePipe-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/lowercase_pipe.ts (line 2)
+ defined in angular2/src/change_detection/pipes/lowercase_pipe.ts (line 2)
:markdown
Implements lowercase transforms to text.
@@ -26,20 +26,22 @@ p.location-badge.
.l-main-section
h2 Members
.l-sub-section
- h3 constructor
+ h3 supports
pre.prettyprint
code.
- constructor()
+ supports(str)
:markdown
+
+
.l-sub-section
h3 onDestroy
@@ -57,23 +59,6 @@ p.location-badge.
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(str)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 transform
diff --git a/public/docs/js/latest/api/pipes/NullPipe-class.jade b/public/docs/js/latest/api/pipes/NullPipe-class.jade
deleted file mode 100644
index b490e1fb7e..0000000000
--- a/public/docs/js/latest/api/pipes/NullPipe-class.jade
+++ /dev/null
@@ -1,82 +0,0 @@
-
-p.location-badge.
- exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/null_pipe.js (line 24)
-
-:markdown
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor()
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 called
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(obj)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 supportsObj
-
-
- pre.prettyprint
- code.
- supportsObj(obj)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 transform
-
-
- pre.prettyprint
- code.
- transform(value)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/pipes/NullPipeFactory-class.jade b/public/docs/js/latest/api/pipes/NullPipeFactory-class.jade
deleted file mode 100644
index 1ba205e81e..0000000000
--- a/public/docs/js/latest/api/pipes/NullPipeFactory-class.jade
+++ /dev/null
@@ -1,54 +0,0 @@
-
-p.location-badge.
- exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/null_pipe.js (line 6)
-
-:markdown
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor()
-
- :markdown
-
-
-
-
-
- .l-sub-section
- h3 create
-
-
- pre.prettyprint
- code.
- create(cdRef)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(obj)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/pipes/ObservablePipe-class.jade b/public/docs/js/latest/api/pipes/ObservablePipe-class.jade
index 8204e0701c..cf0a51265a 100644
--- a/public/docs/js/latest/api/pipes/ObservablePipe-class.jade
+++ b/public/docs/js/latest/api/pipes/ObservablePipe-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/observable_pipe.ts (line 4)
+ defined in angular2/src/change_detection/pipes/observable_pipe.ts (line 4)
:markdown
Implements async bindings to Observable.
@@ -35,7 +35,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(ref: ChangeDetectorRef)
+ constructor(_ref: ChangeDetectorRef)
:markdown
@@ -44,23 +44,6 @@ p.location-badge.
- .l-sub-section
- h3 onDestroy
-
-
- pre.prettyprint
- code.
- onDestroy()
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 supports
@@ -78,6 +61,23 @@ p.location-badge.
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 transform
diff --git a/public/docs/js/latest/api/pipes/Pipe-class.jade b/public/docs/js/latest/api/pipes/Pipe-class.jade
deleted file mode 100644
index 0198417b8c..0000000000
--- a/public/docs/js/latest/api/pipes/Pipe-class.jade
+++ /dev/null
@@ -1,73 +0,0 @@
-
-p.location-badge.
- exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/pipe.js (line 54)
-
-: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 extends Pipe {
- supports(obj) {
- return true;
- }
-
- transform(value) {
- return `${value}${value}`;
- }
- }
- ```
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 onDestroy
-
-
- pre.prettyprint
- code.
- onDestroy()
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(obj)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 transform
-
-
- pre.prettyprint
- code.
- transform(value:any)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/pipes/PromisePipe-class.jade b/public/docs/js/latest/api/pipes/PromisePipe-class.jade
index d929e91f13..c8ea18c047 100644
--- a/public/docs/js/latest/api/pipes/PromisePipe-class.jade
+++ b/public/docs/js/latest/api/pipes/PromisePipe-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/promise_pipe.ts (line 4)
+ defined in angular2/src/change_detection/pipes/promise_pipe.ts (line 4)
:markdown
Implements async bindings to Promise.
@@ -34,7 +34,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(ref: ChangeDetectorRef)
+ constructor(_ref: ChangeDetectorRef)
:markdown
@@ -43,23 +43,6 @@ p.location-badge.
- .l-sub-section
- h3 onDestroy
-
-
- pre.prettyprint
- code.
- onDestroy()
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 supports
@@ -77,6 +60,23 @@ p.location-badge.
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 transform
diff --git a/public/docs/js/latest/api/pipes/UpperCasePipe-class.jade b/public/docs/js/latest/api/pipes/UpperCasePipe-class.jade
index 65cfe98b39..66de21a1b1 100644
--- a/public/docs/js/latest/api/pipes/UpperCasePipe-class.jade
+++ b/public/docs/js/latest/api/pipes/UpperCasePipe-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/uppercase_pipe.ts (line 2)
+ defined in angular2/src/change_detection/pipes/uppercase_pipe.ts (line 2)
:markdown
Implements uppercase transforms to text.
@@ -26,20 +26,22 @@ p.location-badge.
.l-main-section
h2 Members
.l-sub-section
- h3 constructor
+ h3 supports
pre.prettyprint
code.
- constructor()
+ supports(str)
:markdown
+
+
.l-sub-section
h3 onDestroy
@@ -57,23 +59,6 @@ p.location-badge.
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(str)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 transform
diff --git a/public/docs/js/latest/api/pipes/WrappedValue-class.jade b/public/docs/js/latest/api/pipes/WrappedValue-class.jade
deleted file mode 100644
index 55e037155e..0000000000
--- a/public/docs/js/latest/api/pipes/WrappedValue-class.jade
+++ /dev/null
@@ -1,53 +0,0 @@
-
-p.location-badge.
- exported from angular2/pipes
- defined in angular2/src/change_detection/pipes/pipe.js (line 9)
-
-: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 wrap
-
-
- pre.prettyprint
- code.
- wrap(value:any)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 wrapped
-
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/pipes/async-var.jade b/public/docs/js/latest/api/pipes/async-var.jade
deleted file mode 100644
index 2d97aa6190..0000000000
--- a/public/docs/js/latest/api/pipes/async-var.jade
+++ /dev/null
@@ -1,10 +0,0 @@
-
-.l-main-section
- h2 async variable
- p.location-badge.
- exported from angular2/pipes
-
- :markdown
- Async binding to such types as Observable.
-
-
diff --git a/public/docs/js/latest/api/pipes/index.jade b/public/docs/js/latest/api/pipes/index.jade
index 14dda15ae5..5cc9a22de0 100644
--- a/public/docs/js/latest/api/pipes/index.jade
+++ b/public/docs/js/latest/api/pipes/index.jade
@@ -1,5 +1,5 @@
p.location-badge.
- defined in angular2/pipes.ts (line 1)
+ 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
diff --git a/public/docs/js/latest/api/pipes/iterableDiff-var.jade b/public/docs/js/latest/api/pipes/iterableDiff-var.jade
deleted file mode 100644
index 8d4a9922fc..0000000000
--- a/public/docs/js/latest/api/pipes/iterableDiff-var.jade
+++ /dev/null
@@ -1,10 +0,0 @@
-
-.l-main-section
- h2 iterableDiff variable
- p.location-badge.
- exported from angular2/pipes
-
- :markdown
- Structural diffing for `Iterable` types such as `Array`s.
-
-
diff --git a/public/docs/js/latest/api/pipes/keyValDiff-var.jade b/public/docs/js/latest/api/pipes/keyValDiff-var.jade
deleted file mode 100644
index c977f311af..0000000000
--- a/public/docs/js/latest/api/pipes/keyValDiff-var.jade
+++ /dev/null
@@ -1,10 +0,0 @@
-
-.l-main-section
- h2 keyValDiff variable
- p.location-badge.
- exported from angular2/pipes
-
- :markdown
- Structural diffing for `Object`s and `Map`s.
-
-
diff --git a/public/docs/js/latest/api/router/BrowserLocation-class.jade b/public/docs/js/latest/api/router/BrowserLocation-class.jade
index 81e17b7cde..70c84d9797 100644
--- a/public/docs/js/latest/api/router/BrowserLocation-class.jade
+++ b/public/docs/js/latest/api/router/BrowserLocation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/router
- defined in angular2/src/router/browser_location.js (line 1)
+ defined in angular2/src/router/browser_location.ts (line 3)
:markdown
@@ -24,29 +24,12 @@ p.location-badge.
.l-sub-section
- h3 back
+ h3 onPopState
pre.prettyprint
code.
- back()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 forward
-
-
- pre.prettyprint
- code.
- forward()
+ onPopState(fn: EventListener)
:markdown
@@ -74,23 +57,6 @@ p.location-badge.
- .l-sub-section
- h3 onPopState
-
-
- pre.prettyprint
- code.
- onPopState(fn: Function)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 path
@@ -114,7 +80,41 @@ p.location-badge.
pre.prettyprint
code.
- pushState(state:any, title:string, url:string)
+ 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
index f6fd89d509..9078e67741 100644
--- a/public/docs/js/latest/api/router/Location-class.jade
+++ b/public/docs/js/latest/api/router/Location-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/router
- defined in angular2/src/router/location.js (line 3)
+ defined in angular2/src/router/location.ts (line 6)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(browserLocation:BrowserLocation)
+ constructor(_browserLocation: BrowserLocation, href?: string)
:markdown
@@ -24,46 +24,12 @@ p.location-badge.
.l-sub-section
- h3 back
+ h3 path
pre.prettyprint
code.
- back()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 forward
-
-
- pre.prettyprint
- code.
- forward()
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 go
-
-
- pre.prettyprint
- code.
- go(url:string)
+ path()
:markdown
@@ -109,12 +75,46 @@ p.location-badge.
.l-sub-section
- h3 path
+ h3 go
pre.prettyprint
code.
- path()
+ go(url: string)
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forward
+
+
+ pre.prettyprint
+ code.
+ forward()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 back
+
+
+ pre.prettyprint
+ code.
+ back()
:markdown
@@ -131,7 +131,7 @@ p.location-badge.
pre.prettyprint
code.
- subscribe(onNext, onThrow = null, onReturn = null)
+ subscribe(onNext, onThrow?, onReturn?)
:markdown
diff --git a/public/docs/js/latest/api/router/Pipeline-class.jade b/public/docs/js/latest/api/router/Pipeline-class.jade
index e3c1503272..3a5b8820d6 100644
--- a/public/docs/js/latest/api/router/Pipeline-class.jade
+++ b/public/docs/js/latest/api/router/Pipeline-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/router
- defined in angular2/src/router/pipeline.js (line 3)
+ defined in angular2/src/router/pipeline.ts (line 3)
:markdown
Responsible for performing each step of navigation.
@@ -25,23 +25,6 @@ p.location-badge.
- .l-sub-section
- h3 process
-
-
- pre.prettyprint
- code.
- process(instruction:Instruction)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 steps
@@ -54,3 +37,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 process
+
+
+ pre.prettyprint
+ code.
+ process(instruction: Instruction)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/RootRouter-class.jade b/public/docs/js/latest/api/router/RootRouter-class.jade
index babbf38580..ab3dd0fa1a 100644
--- a/public/docs/js/latest/api/router/RootRouter-class.jade
+++ b/public/docs/js/latest/api/router/RootRouter-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/router
- defined in angular2/src/router/router.js (line 232)
+ defined in angular2/src/router/router.ts (line 200)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(registry:RouteRegistry, pipeline:Pipeline, location:Location, hostComponent:Type)
+ constructor(registry: RouteRegistry, pipeline: Pipeline, location: Location, hostComponent: Type)
:markdown
diff --git a/public/docs/js/latest/api/router/RouteConfig-var.jade b/public/docs/js/latest/api/router/RouteConfig-var.jade
index 5b907962d9..fbdf78c3fd 100644
--- a/public/docs/js/latest/api/router/RouteConfig-var.jade
+++ b/public/docs/js/latest/api/router/RouteConfig-var.jade
@@ -3,6 +3,7 @@
h2 RouteConfig variable
p.location-badge.
exported from angular2/router
+ defined in angular2/src/router/route_config_decorator.ts (line 4)
:markdown
diff --git a/public/docs/js/latest/api/router/RouteConfigAnnotation-class.jade b/public/docs/js/latest/api/router/RouteConfigAnnotation-class.jade
deleted file mode 100644
index f9f376e3ce..0000000000
--- a/public/docs/js/latest/api/router/RouteConfigAnnotation-class.jade
+++ /dev/null
@@ -1,43 +0,0 @@
-
-p.location-badge.
- exported from angular2/router
- defined in angular2/src/router/route_config_impl.js (line 2)
-
-:markdown
- You use the RouteConfig annotation to add routes to a component.
-
- Supported keys:
- - `path` (required)
- - `component`, `components`, `redirectTo` (requires exactly one of these)
- - `as` (optional)
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor(configs:List<Map>)
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 configs
-
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/router/RouteParams-class.jade b/public/docs/js/latest/api/router/RouteParams-class.jade
index 37e1ed5be9..75ecae5763 100644
--- a/public/docs/js/latest/api/router/RouteParams-class.jade
+++ b/public/docs/js/latest/api/router/RouteParams-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/router
- defined in angular2/src/router/instruction.js (line 3)
+ defined in angular2/src/router/instruction.ts (line 9)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(params:StringMap)
+ constructor(params: StringMap<string, string>)
:markdown
@@ -23,23 +23,6 @@ p.location-badge.
- .l-sub-section
- h3 get
-
-
- pre.prettyprint
- code.
- get(param:string)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 params
@@ -52,3 +35,20 @@ p.location-badge.
+
+ .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
index 8265207227..c7352230fb 100644
--- a/public/docs/js/latest/api/router/RouteRegistry-class.jade
+++ b/public/docs/js/latest/api/router/RouteRegistry-class.jade
@@ -1,11 +1,12 @@
p.location-badge.
exported from angular2/router
- defined in angular2/src/router/route_registry.js (line 6)
+ defined in angular2/src/router/route_registry.ts (line 22)
: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.
+ It is responsible for creating Instructions from URLs, and generating URLs based on route and
+ parameters.
.l-main-section
@@ -31,7 +32,7 @@ p.location-badge.
pre.prettyprint
code.
- config(parentComponent, config:StringMap<string, any>)
+ config(parentComponent, config: StringMap<string, any>)
:markdown
@@ -61,30 +62,13 @@ p.location-badge.
- .l-sub-section
- h3 generate
-
-
- pre.prettyprint
- code.
- generate(name:string, params:StringMap<string, string>, hostComponent)
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 recognize
pre.prettyprint
code.
- recognize(url:string, parentComponent)
+ recognize(url: string, parentComponent)
:markdown
@@ -96,3 +80,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 generate
+
+
+ pre.prettyprint
+ code.
+ generate(name: string, params: StringMap<string, string>, hostComponent)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/Router-class.jade b/public/docs/js/latest/api/router/Router-class.jade
index df36c46899..1151f82693 100644
--- a/public/docs/js/latest/api/router/Router-class.jade
+++ b/public/docs/js/latest/api/router/Router-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/router
- defined in angular2/src/router/router.js (line 9)
+ defined in angular2/src/router/router.ts (line 9)
:markdown
# Router
@@ -16,7 +16,8 @@ p.location-badge.
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`.
+ 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
@@ -27,7 +28,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(registry:RouteRegistry, pipeline:Pipeline, parent:Router, hostComponent:any)
+ constructor(_registry: RouteRegistry, _pipeline: Pipeline, parent: Router, hostComponent: any)
:markdown
@@ -37,17 +38,63 @@ p.location-badge.
.l-sub-section
- h3 activate
+ h3 navigating
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 lastNavigationAttempt
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 previousUrl
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 parent
+
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 hostComponent
- pre.prettyprint
- code.
- activate(instruction:Instruction)
-
:markdown
- Recursively activate.
- Calls the "activate" hook on descendant components.
@@ -61,11 +108,12 @@ p.location-badge.
pre.prettyprint
code.
- childRouter(hostComponent:any)
+ childRouter(hostComponent: any)
:markdown
- Constructs a child router. You probably don't need to use this unless you're writing a reusable component.
+ Constructs a child router. You probably don't need to use this unless you're writing a reusable
+ component.
@@ -74,16 +122,17 @@ p.location-badge.
.l-sub-section
- h3 commit
+ h3 registerOutlet
pre.prettyprint
code.
- commit(instruction:Instruction)
+ 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.
@@ -97,7 +146,7 @@ p.location-badge.
pre.prettyprint
code.
- config(config:any)
+ config(config: any)
:markdown
@@ -124,80 +173,17 @@ p.location-badge.
- .l-sub-section
- h3 deactivate
-
-
- pre.prettyprint
- code.
- deactivate()
-
- :markdown
-
- Recursively remove all components contained by this router's outlets.
- Calls deactivate hooks on all descendant components
-
-
-
-
-
-
-
- .l-sub-section
- h3 generate
-
-
- pre.prettyprint
- code.
- generate(name:string, params:StringMap<string, string>)
-
- :markdown
-
- Generate a URL from a component name and optional map of parameters. The URL is relative to the app's base href.
-
-
-
-
-
-
-
- .l-sub-section
- h3 hostComponent
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 lastNavigationAttempt
-
-
- :markdown
-
-
-
-
-
-
-
-
.l-sub-section
h3 navigate
pre.prettyprint
code.
- navigate(url:string)
+ navigate(url: string)
:markdown
- Navigate to a URL. Returns a promise that resolves to the canonical URL for the route.
+ 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.
@@ -208,99 +194,6 @@ p.location-badge.
- .l-sub-section
- h3 navigating
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 parent
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 previousUrl
-
-
- :markdown
-
-
-
-
-
-
-
-
- .l-sub-section
- h3 recognize
-
-
- pre.prettyprint
- code.
- recognize(url:string)
-
- :markdown
-
- Given a URL, returns an instruction representing the component graph
-
-
-
-
-
-
-
- .l-sub-section
- h3 registerOutlet
-
-
- pre.prettyprint
- code.
- registerOutlet(outlet:RouterOutlet, name: string = 'default')
-
- :markdown
-
- Register an object to notify of route changes. You probably don't need to use this unless you're writing a reusable component.
-
-
-
-
-
-
-
- .l-sub-section
- h3 renavigate
-
-
- pre.prettyprint
- code.
- renavigate()
-
- :markdown
-
- Navigates to either the last URL successfully navigated to, or the last URL requested if the router has yet to successfully navigate.
-
-
-
-
-
-
-
.l-sub-section
h3 subscribe
@@ -318,3 +211,95 @@ p.location-badge.
+
+ .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 deactivate
+
+
+ pre.prettyprint
+ code.
+ deactivate()
+
+ :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(name: string, params: StringMap<string, string>)
+
+ :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
index f07a740f68..14c66d240a 100644
--- a/public/docs/js/latest/api/router/RouterLink-class.jade
+++ b/public/docs/js/latest/api/router/RouterLink-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/router
- defined in angular2/src/router/router_link.js (line 9)
+ defined in angular2/src/router/router_link.ts (line 10)
:markdown
The RouterLink directive lets you link to specific parts of your app.
@@ -11,7 +11,7 @@ p.location-badge.
```
@RouteConfig({
- path: '/user', component: UserCmp, alias: 'user'
+ path: '/user', component: UserCmp, as: 'user'
});
class MyComp {}
```
@@ -30,7 +30,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(elementRef:ElementRef, router:Router, location:Location)
+ constructor(elementRef: ElementRef, _router: Router, _location: Location)
:markdown
@@ -40,13 +40,9 @@ p.location-badge.
.l-sub-section
- h3 onAllChangesDone
+ h3 route
- pre.prettyprint
- code.
- onAllChangesDone()
-
:markdown
@@ -70,9 +66,30 @@ p.location-badge.
.l-sub-section
- h3 route
+ h3 onClick
+ pre.prettyprint
+ code.
+ onClick()
+
+ :markdown
+
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 onAllChangesDone
+
+
+ pre.prettyprint
+ code.
+ onAllChangesDone()
+
:markdown
diff --git a/public/docs/js/latest/api/router/RouterOutlet-class.jade b/public/docs/js/latest/api/router/RouterOutlet-class.jade
index 79234040b1..82f5d8f925 100644
--- a/public/docs/js/latest/api/router/RouterOutlet-class.jade
+++ b/public/docs/js/latest/api/router/RouterOutlet-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/router
- defined in angular2/src/router/router_outlet.js (line 10)
+ defined in angular2/src/router/router_outlet.ts (line 9)
:markdown
A router outlet is a placeholder that Angular dynamically fills based on the application's route.
@@ -12,13 +12,6 @@ p.location-badge.
```
- Route outlets can also optionally have a name:
-
- ```
-
-
- ```
-
.l-main-section
h2 Members
@@ -28,7 +21,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(elementRef:ElementRef, loader:DynamicComponentLoader, router:routerMod.Router, injector:Injector, @Attribute('name') nameAttr:String)
+ constructor(elementRef: ElementRef, _loader: DynamicComponentLoader, _parentRouter:Router, _injector: Injector, nameAttr: string)
:markdown
@@ -43,28 +36,11 @@ p.location-badge.
pre.prettyprint
code.
- activate(instruction:Instruction)
-
- :markdown
-
- Given an instruction, update the contents of this viewport.
-
-
-
-
-
-
-
- .l-sub-section
- h3 canDeactivate
-
-
- pre.prettyprint
- code.
- canDeactivate(instruction:Instruction)
+ activate(instruction: Instruction)
:markdown
+ Given an instruction, update the contents of this outlet.
@@ -88,3 +64,20 @@ p.location-badge.
+
+ .l-sub-section
+ h3 canDeactivate
+
+
+ pre.prettyprint
+ code.
+ canDeactivate(instruction: Instruction)
+
+ :markdown
+
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/router/_data.json b/public/docs/js/latest/api/router/_data.json
index 6caea2d62a..3f739d7ad9 100644
--- a/public/docs/js/latest/api/router/_data.json
+++ b/public/docs/js/latest/api/router/_data.json
@@ -36,6 +36,10 @@
"title" : "Location Class"
},
+ "appBaseHrefToken-const" : {
+ "title" : "appBaseHrefToken Const"
+ },
+
"Pipeline-class" : {
"title" : "Pipeline Class"
},
@@ -48,10 +52,6 @@
"title" : "routerInjectables Var"
},
- "RouteConfigAnnotation-class" : {
- "title" : "RouteConfigAnnotation Class"
- },
-
"RouteConfig-var" : {
"title" : "RouteConfig Var"
}
diff --git a/public/docs/js/latest/api/router/appBaseHrefToken-const.jade b/public/docs/js/latest/api/router/appBaseHrefToken-const.jade
new file mode 100644
index 0000000000..474b8cf6ff
--- /dev/null
+++ b/public/docs/js/latest/api/router/appBaseHrefToken-const.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 6)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/router/index.jade b/public/docs/js/latest/api/router/index.jade
index 80caa59ddd..d897e54e17 100644
--- a/public/docs/js/latest/api/router/index.jade
+++ b/public/docs/js/latest/api/router/index.jade
@@ -1,5 +1,5 @@
p.location-badge.
- defined in angular2/router.js (line 1)
+ 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
diff --git a/public/docs/js/latest/api/router/routerDirectives-const.jade b/public/docs/js/latest/api/router/routerDirectives-const.jade
index 94e8e597b8..e51e4615ab 100644
--- a/public/docs/js/latest/api/router/routerDirectives-const.jade
+++ b/public/docs/js/latest/api/router/routerDirectives-const.jade
@@ -3,6 +3,7 @@
h2 routerDirectives variable
p.location-badge.
exported from angular2/router
+ defined in angular2/router.ts (line 31)
:markdown
diff --git a/public/docs/js/latest/api/router/routerInjectables-var.jade b/public/docs/js/latest/api/router/routerInjectables-var.jade
index 4444fe8f46..2a2d11eea1 100644
--- a/public/docs/js/latest/api/router/routerInjectables-var.jade
+++ b/public/docs/js/latest/api/router/routerInjectables-var.jade
@@ -3,6 +3,7 @@
h2 routerInjectables variable
p.location-badge.
exported from angular2/router
+ defined in angular2/router.ts (line 33)
:markdown
diff --git a/public/docs/js/latest/api/test/FunctionWithParamTokens-class.jade b/public/docs/js/latest/api/test/FunctionWithParamTokens-class.jade
index b5ac71edae..d9510a98c1 100644
--- a/public/docs/js/latest/api/test/FunctionWithParamTokens-class.jade
+++ b/public/docs/js/latest/api/test/FunctionWithParamTokens-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/test
- defined in angular2/src/test_lib/test_injector.ts (line 169)
+ defined in angular2/src/test_lib/test_injector.ts (line 169)
:markdown
diff --git a/public/docs/js/latest/api/test/TestBed-class.jade b/public/docs/js/latest/api/test/TestBed-class.jade
index 8080fa2fd2..d68636aebd 100644
--- a/public/docs/js/latest/api/test/TestBed-class.jade
+++ b/public/docs/js/latest/api/test/TestBed-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/test
- defined in angular2/src/test_lib/test_bed.ts (line 22)
+ defined in angular2/src/test_lib/test_bed.ts (line 22)
:markdown
@@ -22,53 +22,6 @@ p.location-badge.
- .l-sub-section
- h3 createView
-
-
- pre.prettyprint
- code.
- createView(component: Type, {context = null,
- html = null}: {context?: any, html?: string} = {})
-
- :markdown
-
- Creates an `AppView` for the given component.
-
- Only either a component or a context needs to be specified but both can be provided for
- advanced use cases (ie subclassing the context).
-
- @param {Type} component
- @param {*} context
- @param {string} html Use as the component template when specified (shortcut for
- setInlineTemplate)
-
-
-
-
-
- .l-sub-section
- h3 overrideDirective
-
-
- pre.prettyprint
- code.
- overrideDirective(component: Type, from: Type, to: Type)
-
- :markdown
-
- Overrides the directives from the component View
.
-
- @param {Type} component
- @param {Type} from
- @param {Type} to
-
-
-
-
-
-
-
.l-sub-section
h3 overrideView
@@ -99,9 +52,43 @@ p.location-badge.
Overrides only the html of a Component
.
All the other propoerties of the component's View
are preserved.
- @param {Type} component
- @param {string} html
-
+
+
+
+
+
+ .l-sub-section
+ h3 overrideDirective
+
+
+ pre.prettyprint
+ code.
+ overrideDirective(component: Type, from: Type, to: Type)
+
+ :markdown
+
+ Overrides the directives from the component View
.
+
+
+
+
+
+
+ .l-sub-section
+ h3 createView
+
+
+ pre.prettyprint
+ code.
+ createView(component: Type, {context = null, html = null}?: {context?: any,
+ html?: string})
+
+ :markdown
+
+ Creates an `AppView` for the given component.
+
+ Only either a component or a context needs to be specified but both can be provided for
+ advanced use cases (ie subclassing the context).
diff --git a/public/docs/js/latest/api/test/ViewProxy-class.jade b/public/docs/js/latest/api/test/ViewProxy-class.jade
index f69da96db9..d847ff29ee 100644
--- a/public/docs/js/latest/api/test/ViewProxy-class.jade
+++ b/public/docs/js/latest/api/test/ViewProxy-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/test
- defined in angular2/src/test_lib/test_bed.ts (line 106)
+ defined in angular2/src/test_lib/test_bed.ts (line 106)
:markdown
Proxy to `AppView` return by `createView` in TestBed
which offers a high level API for
@@ -40,13 +40,9 @@ p.location-badge.
.l-sub-section
- h3 destroy
+ h3 rootNodes
- pre.prettyprint
- code.
- destroy()
-
:markdown
@@ -90,6 +86,23 @@ p.location-badge.
+ .l-sub-section
+ h3 destroy
+
+
+ pre.prettyprint
+ code.
+ destroy()
+
+ :markdown
+
+
+
+
+
+
+
+
.l-sub-section
h3 rawView
@@ -101,16 +114,3 @@ p.location-badge.
-
- .l-sub-section
- h3 rootNodes
-
-
- :markdown
-
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/test/createTestInjector-function.jade b/public/docs/js/latest/api/test/createTestInjector-function.jade
index 1c72b2854b..43ec152462 100644
--- a/public/docs/js/latest/api/test/createTestInjector-function.jade
+++ b/public/docs/js/latest/api/test/createTestInjector-function.jade
@@ -10,7 +10,7 @@
p.location-badge.
exported from angular2/test
- defined in angular2/src/test_lib/test_injector.ts (line 130)
+ defined in angular2/src/test_lib/test_injector.ts (line 130)
:markdown
diff --git a/public/docs/js/latest/api/test/index.jade b/public/docs/js/latest/api/test/index.jade
index 5139ee2ace..83a940e1af 100644
--- a/public/docs/js/latest/api/test/index.jade
+++ b/public/docs/js/latest/api/test/index.jade
@@ -1,5 +1,5 @@
p.location-badge.
- defined in angular2/test.ts (line 1)
+ 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
diff --git a/public/docs/js/latest/api/test/inject-function.jade b/public/docs/js/latest/api/test/inject-function.jade
index 9866b2bbba..890bb5ac7a 100644
--- a/public/docs/js/latest/api/test/inject-function.jade
+++ b/public/docs/js/latest/api/test/inject-function.jade
@@ -10,7 +10,7 @@
p.location-badge.
exported from angular2/test
- defined in angular2/src/test_lib/test_injector.ts (line 135)
+ defined in angular2/src/test_lib/test_injector.ts (line 135)
:markdown
Allows injecting dependencies in `beforeEach()` and `it()`.
@@ -37,7 +37,5 @@
- inject is currently a function because of some Traceur limitation the syntax should eventually
becomes `it('...', @Inject (object: AClass, async: AsyncTestCompleter) => { ... });`
- @param {Array} tokens
- @param {Function} fn