diff --git a/public/docs/js/latest/api/annotations/Attribute-var.jade b/public/docs/js/latest/api/annotations/Attribute-var.jade
index 7c3c9f6b87..1b66965e81 100644
--- a/public/docs/js/latest/api/annotations/Attribute-var.jade
+++ b/public/docs/js/latest/api/annotations/Attribute-var.jade
@@ -3,7 +3,7 @@
h2 Attribute variable
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 360)
+ defined in angular2/src/core/annotations/decorators.ts (line 391)
:markdown
Attribute
factory function.
diff --git a/public/docs/js/latest/api/annotations/AttributeFactory-interface.jade b/public/docs/js/latest/api/annotations/AttributeFactory-interface.jade
index eaf7d3f3fb..c90a44cd49 100644
--- a/public/docs/js/latest/api/annotations/AttributeFactory-interface.jade
+++ b/public/docs/js/latest/api/annotations/AttributeFactory-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 236)
+ defined in angular2/src/core/annotations/decorators.ts (line 243)
:markdown
Attribute
factory for creating annotations, decorators or DSL.
diff --git a/public/docs/js/latest/api/annotations/Component-var.jade b/public/docs/js/latest/api/annotations/Component-var.jade
index f12cd774ee..de44bd2b83 100644
--- a/public/docs/js/latest/api/annotations/Component-var.jade
+++ b/public/docs/js/latest/api/annotations/Component-var.jade
@@ -3,7 +3,7 @@
h2 Component variable
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 344)
+ defined in angular2/src/core/annotations/decorators.ts (line 375)
:markdown
Component
factory function.
diff --git a/public/docs/js/latest/api/annotations/ComponentAnnotation-class.jade b/public/docs/js/latest/api/annotations/ComponentAnnotation-class.jade
index 932be72c2b..9737b7075b 100644
--- a/public/docs/js/latest/api/annotations/ComponentAnnotation-class.jade
+++ b/public/docs/js/latest/api/annotations/ComponentAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations_impl/annotations.ts (line 778)
+ defined in angular2/src/core/annotations_impl/annotations.ts (line 754)
:markdown
Declare reusable UI building blocks for an application.
diff --git a/public/docs/js/latest/api/annotations/ComponentDecorator-interface.jade b/public/docs/js/latest/api/annotations/ComponentDecorator-interface.jade
index 9b47da039c..2a6cf0da19 100644
--- a/public/docs/js/latest/api/annotations/ComponentDecorator-interface.jade
+++ b/public/docs/js/latest/api/annotations/ComponentDecorator-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 13)
+ defined in angular2/src/core/annotations/decorators.ts (line 18)
:markdown
Interface for the Component
decorator function.
@@ -21,6 +21,7 @@ p.location-badge.
templateUrl?: string,
template?: string,
directives?: List<Type | any | List<any>>,
+ pipes?: List<Type | any | List<any>>,
renderer?: string,
styles?: List<string>,
styleUrls?: List<string>,
diff --git a/public/docs/js/latest/api/annotations/ComponentFactory-interface.jade b/public/docs/js/latest/api/annotations/ComponentFactory-interface.jade
index 1e7221a172..c65de71f00 100644
--- a/public/docs/js/latest/api/annotations/ComponentFactory-interface.jade
+++ b/public/docs/js/latest/api/annotations/ComponentFactory-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 104)
+ defined in angular2/src/core/annotations/decorators.ts (line 111)
:markdown
ComponentAnnotation
factory for creating annotations, decorators or DSL.
diff --git a/public/docs/js/latest/api/annotations/Directive-var.jade b/public/docs/js/latest/api/annotations/Directive-var.jade
index 10250b88fd..be0573e7cb 100644
--- a/public/docs/js/latest/api/annotations/Directive-var.jade
+++ b/public/docs/js/latest/api/annotations/Directive-var.jade
@@ -3,7 +3,7 @@
h2 Directive variable
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 349)
+ defined in angular2/src/core/annotations/decorators.ts (line 380)
:markdown
Directive
factory function.
diff --git a/public/docs/js/latest/api/annotations/DirectiveAnnotation-class.jade b/public/docs/js/latest/api/annotations/DirectiveAnnotation-class.jade
index f87078017a..29f7b437ef 100644
--- a/public/docs/js/latest/api/annotations/DirectiveAnnotation-class.jade
+++ b/public/docs/js/latest/api/annotations/DirectiveAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations_impl/annotations.ts (line 4)
+ defined in angular2/src/core/annotations_impl/annotations.ts (line 4)
:markdown
Directives allow you to attach behavior to elements in the DOM.
@@ -471,7 +471,7 @@ p.location-badge.
- `directiveProperty` specifies the component property where the value is written.
- `bindingProperty` specifies the DOM property where the value is read from.
- You can include a Pipe
when specifying a `bindingProperty` to allow for data
+ You can include a Pipe
when specifying a `bindingProperty` to allow for data
transformation and structural change detection of the value. These pipes will be evaluated in
the context of this component.
@@ -522,38 +522,14 @@ p.location-badge.
Whenever the `someExpression` expression changes, the `properties` declaration instructs
Angular to update the `Tooltip`'s `text` property.
- ## Bindings With Pipes
+ ### Bindings With Pipes
- You can also use pipes when writing binding definitions for a directive.
-
- For example, we could write a binding that updates the directive on structural changes, rather
- than on reference changes, as normally occurs in change detection.
-
- See Pipe
and `KeyValueChanges` documentation for more details.
-
- ```
- @Directive({
- selector: '[class-set]',
- properties: [
- 'classChanges: classSet | keyValDiff'
- ]
- })
- class ClassSet {
- set classChanges(changes: KeyValueChanges) {
- // This will get called every time the `class-set` expressions changes its structure.
- }
- }
- ```
-
- The template that this directive is used in may also contain its own pipes. For example:
+ You can use pipes in bindings, as follows:
```html
Directive
decorator function.
diff --git a/public/docs/js/latest/api/annotations/DirectiveFactory-interface.jade b/public/docs/js/latest/api/annotations/DirectiveFactory-interface.jade
index 25f61b2833..d6964aa4ca 100644
--- a/public/docs/js/latest/api/annotations/DirectiveFactory-interface.jade
+++ b/public/docs/js/latest/api/annotations/DirectiveFactory-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 51)
+ defined in angular2/src/core/annotations/decorators.ts (line 58)
:markdown
Directive
factory for creating annotations, decorators or DSL.
diff --git a/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade b/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade
index 20c6b7b548..7e31ec7e7d 100644
--- a/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade
+++ b/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations_impl/annotations.ts (line 900)
+ defined in angular2/src/core/annotations_impl/annotations.ts (line 876)
:markdown
Lifecycle events are guaranteed to be called in the following order:
diff --git a/public/docs/js/latest/api/annotations/Pipe-var.jade b/public/docs/js/latest/api/annotations/Pipe-var.jade
new file mode 100644
index 0000000000..0e4b7b53b2
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/Pipe-var.jade
@@ -0,0 +1,12 @@
+
+.l-main-section
+ h2 Pipe variable
+ p.location-badge.
+ exported from angular2/annotations
+ defined in angular2/src/core/annotations/decorators.ts (line 407)
+
+ :markdown
+ Pipe
factory function.
+
+
+
diff --git a/public/docs/js/latest/api/annotations/PipeAnnotation-class.jade b/public/docs/js/latest/api/annotations/PipeAnnotation-class.jade
new file mode 100644
index 0000000000..871ff93952
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/PipeAnnotation-class.jade
@@ -0,0 +1,58 @@
+
+p.location-badge.
+ exported from angular2/annotations
+ defined in angular2/src/core/annotations_impl/annotations.ts (line 1008)
+
+:markdown
+ Declare reusable pipe function.
+
+ ## Example
+
+ ```
+ @Pipe({
+ name: 'lowercase'
+ })
+ class Lowercase {
+ transform(v, args) { return v.toLowerCase(); }
+ }
+ ```
+
+
+
+.l-main-section
+ h2 Annotations
+ .l-sub-section
+ h3.annotation CONST
+ pre.prettyprint
+ code.
+ @CONST()
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({name}: {name: string})
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 name
+
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/PipeFactory-interface.jade b/public/docs/js/latest/api/annotations/PipeFactory-interface.jade
new file mode 100644
index 0000000000..02059e2aaf
--- /dev/null
+++ b/public/docs/js/latest/api/annotations/PipeFactory-interface.jade
@@ -0,0 +1,24 @@
+
+p.location-badge.
+ exported from angular2/annotations
+ defined in angular2/src/core/annotations/decorators.ts (line 345)
+
+:markdown
+ Pipe
factory for creating decorators.
+
+ ## Example as TypeScript Decorator
+
+ ```
+ import {Pipe} from "angular2/angular2";
+
+ @Pipe({...})
+ class MyPipe {
+ constructor() {
+ ...
+ }
+
+ transform(v, args) {}
+ }
+ ```
+
+
diff --git a/public/docs/js/latest/api/annotations/Query-var.jade b/public/docs/js/latest/api/annotations/Query-var.jade
index a2b12fd3a5..4eeb57656c 100644
--- a/public/docs/js/latest/api/annotations/Query-var.jade
+++ b/public/docs/js/latest/api/annotations/Query-var.jade
@@ -3,7 +3,7 @@
h2 Query variable
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 365)
+ defined in angular2/src/core/annotations/decorators.ts (line 396)
:markdown
Query
factory function.
diff --git a/public/docs/js/latest/api/annotations/QueryFactory-interface.jade b/public/docs/js/latest/api/annotations/QueryFactory-interface.jade
index 610967928a..66f50c931e 100644
--- a/public/docs/js/latest/api/annotations/QueryFactory-interface.jade
+++ b/public/docs/js/latest/api/annotations/QueryFactory-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 287)
+ defined in angular2/src/core/annotations/decorators.ts (line 294)
:markdown
Query
factory for creating annotations, decorators or DSL.
diff --git a/public/docs/js/latest/api/annotations/View-var.jade b/public/docs/js/latest/api/annotations/View-var.jade
index fd6f0d47e5..91dedc9073 100644
--- a/public/docs/js/latest/api/annotations/View-var.jade
+++ b/public/docs/js/latest/api/annotations/View-var.jade
@@ -3,7 +3,7 @@
h2 View variable
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 354)
+ defined in angular2/src/core/annotations/decorators.ts (line 385)
:markdown
View
factory function.
diff --git a/public/docs/js/latest/api/annotations/ViewAnnotation-class.jade b/public/docs/js/latest/api/annotations/ViewAnnotation-class.jade
index 852134ce12..3cd5cb20ce 100644
--- a/public/docs/js/latest/api/annotations/ViewAnnotation-class.jade
+++ b/public/docs/js/latest/api/annotations/ViewAnnotation-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations_impl/view.ts (line 4)
+ defined in angular2/src/core/annotations_impl/view.ts (line 4)
:markdown
Declares the available HTML templates for an application.
@@ -53,10 +53,11 @@ p.location-badge.
pre.prettyprint
code.
- constructor({templateUrl, template, directives, encapsulation, styles, styleUrls}?: {
+ constructor({templateUrl, template, directives, pipes, encapsulation, styles, styleUrls}?: {
templateUrl?: string,
template?: string,
directives?: List<Type | any | List<any>>,
+ pipes?: List<Type | any | List<any>>,
encapsulation?: ViewEncapsulation,
styles?: List<string>,
styleUrls?: List<string>,
@@ -157,6 +158,18 @@ p.location-badge.
+ .l-sub-section
+ h3 pipes
+
+
+ :markdown
+
+
+
+
+
+
+
.l-sub-section
h3 encapsulation
diff --git a/public/docs/js/latest/api/annotations/ViewDecorator-interface.jade b/public/docs/js/latest/api/annotations/ViewDecorator-interface.jade
index 08e5d691df..dfba91e4f1 100644
--- a/public/docs/js/latest/api/annotations/ViewDecorator-interface.jade
+++ b/public/docs/js/latest/api/annotations/ViewDecorator-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 32)
+ defined in angular2/src/core/annotations/decorators.ts (line 38)
:markdown
Interface for the View
decorator function.
@@ -21,6 +21,7 @@ p.location-badge.
templateUrl?: string,
template?: string,
directives?: List<Type | any | List<any>>,
+ pipes?: List<Type | any | List<any>>,
renderer?: string,
styles?: List<string>,
styleUrls?: List<string>,
diff --git a/public/docs/js/latest/api/annotations/ViewFactory-interface.jade b/public/docs/js/latest/api/annotations/ViewFactory-interface.jade
index daaccc1747..536a268b42 100644
--- a/public/docs/js/latest/api/annotations/ViewFactory-interface.jade
+++ b/public/docs/js/latest/api/annotations/ViewFactory-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 174)
+ defined in angular2/src/core/annotations/decorators.ts (line 181)
:markdown
ViewAnnotation
factory for creating annotations, decorators or DSL.
diff --git a/public/docs/js/latest/api/annotations/ViewQuery-var.jade b/public/docs/js/latest/api/annotations/ViewQuery-var.jade
index 0b054ed686..4fbff8c464 100644
--- a/public/docs/js/latest/api/annotations/ViewQuery-var.jade
+++ b/public/docs/js/latest/api/annotations/ViewQuery-var.jade
@@ -3,7 +3,7 @@
h2 ViewQuery variable
p.location-badge.
exported from angular2/annotations
- defined in angular2/src/core/annotations/decorators.ts (line 371)
+ defined in angular2/src/core/annotations/decorators.ts (line 402)
:markdown
ViewQuery
factory function.
diff --git a/public/docs/js/latest/api/annotations/_data.json b/public/docs/js/latest/api/annotations/_data.json
index 72bd4e985a..f2dd03b8e4 100644
--- a/public/docs/js/latest/api/annotations/_data.json
+++ b/public/docs/js/latest/api/annotations/_data.json
@@ -12,6 +12,10 @@
"title" : "DirectiveAnnotation Class"
},
+ "PipeAnnotation-class" : {
+ "title" : "PipeAnnotation Class"
+ },
+
"LifecycleEvent-enum" : {
"title" : "LifecycleEvent Enum"
},
@@ -118,5 +122,13 @@
"ViewQuery-var" : {
"title" : "ViewQuery Var"
+ },
+
+ "Pipe-var" : {
+ "title" : "Pipe Var"
+ },
+
+ "PipeFactory-interface" : {
+ "title" : "PipeFactory Interface"
}
}
\ No newline at end of file
diff --git a/public/docs/js/latest/api/annotations/index.jade b/public/docs/js/latest/api/annotations/index.jade
index 732ec112dd..ea0da3f744 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/change_detection/BasePipe-class.jade b/public/docs/js/latest/api/change_detection/BasePipe-class.jade
deleted file mode 100644
index 0d650b27a4..0000000000
--- a/public/docs/js/latest/api/change_detection/BasePipe-class.jade
+++ /dev/null
@@ -1,78 +0,0 @@
-
-p.location-badge.
- exported from angular2/change_detection
- defined in angular2/src/change_detection/pipes/pipe.ts (line 58)
-
-:markdown
- Provides default implementation of `supports` and `onDestroy` method.
-
- #Example
-
- ```
- class DoublePipe extends BasePipe {
- transform(value) {
- return `${value}${value}`;
- }
- }
- ```
-
-
-
-.l-main-section
- h2 Annotations
- .l-sub-section
- h3.annotation CONST
- pre.prettyprint
- code.
- @CONST()
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(obj: any)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 onDestroy
-
-
- pre.prettyprint
- code.
- onDestroy()
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 transform
-
-
- pre.prettyprint
- code.
- transform(value: any, args: List<any>)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/ChangeDetector-interface.jade b/public/docs/js/latest/api/change_detection/ChangeDetector-interface.jade
index 3b2563d4cd..93c97561bf 100644
--- a/public/docs/js/latest/api/change_detection/ChangeDetector-interface.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 48)
+ defined in angular2/src/change_detection/interfaces.ts (line 49)
:markdown
@@ -32,6 +32,18 @@ p.location-badge.
+ .l-sub-section
+ h3 ref
+
+
+ :markdown
+
+
+
+
+
+
+
.l-sub-section
h3 addChild
diff --git a/public/docs/js/latest/api/change_detection/NullPipe-class.jade b/public/docs/js/latest/api/change_detection/NullPipe-class.jade
deleted file mode 100644
index 437adde964..0000000000
--- a/public/docs/js/latest/api/change_detection/NullPipe-class.jade
+++ /dev/null
@@ -1,53 +0,0 @@
-
-p.location-badge.
- exported from angular2/change_detection
- defined in angular2/src/change_detection/pipes/null_pipe.ts (line 10)
-
-:markdown
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 called
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(obj: any)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 transform
-
-
- pre.prettyprint
- code.
- transform(value: any, args?: List<any>)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/NullPipeFactory-class.jade b/public/docs/js/latest/api/change_detection/NullPipeFactory-class.jade
deleted file mode 100644
index 7652efc9cd..0000000000
--- a/public/docs/js/latest/api/change_detection/NullPipeFactory-class.jade
+++ /dev/null
@@ -1,51 +0,0 @@
-
-p.location-badge.
- exported from angular2/change_detection
- defined in angular2/src/change_detection/pipes/null_pipe.ts (line 3)
-
-:markdown
-
-
-
-.l-main-section
- h2 Annotations
- .l-sub-section
- h3.annotation CONST
- pre.prettyprint
- code.
- @CONST()
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(obj: any)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 create
-
-
- pre.prettyprint
- code.
- create(cdRef: ChangeDetectorRef)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/Pipe-interface.jade b/public/docs/js/latest/api/change_detection/Pipe-interface.jade
deleted file mode 100644
index 41174ad845..0000000000
--- a/public/docs/js/latest/api/change_detection/Pipe-interface.jade
+++ /dev/null
@@ -1,75 +0,0 @@
-
-p.location-badge.
- exported from angular2/change_detection
- defined in angular2/src/change_detection/pipes/pipe.ts (line 28)
-
-:markdown
- An interface which all pipes must implement.
-
- #Example
-
- ```
- class DoublePipe implements Pipe {
- supports(obj) {
- return true;
- }
-
- onDestroy() {}
-
- transform(value, args = []) {
- return `${value}${value}`;
- }
- }
- ```
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(obj: any)
-
- :markdown
- Query if a pipe supports a particular object instance.
-
-
-
-
-
-
-
- .l-sub-section
- h3 onDestroy
-
-
- pre.prettyprint
- code.
- onDestroy()
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 transform
-
-
- pre.prettyprint
- code.
- transform(value: any, args: List<any>)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/PipeFactory-interface.jade b/public/docs/js/latest/api/change_detection/PipeFactory-interface.jade
deleted file mode 100644
index e75a6c4010..0000000000
--- a/public/docs/js/latest/api/change_detection/PipeFactory-interface.jade
+++ /dev/null
@@ -1,42 +0,0 @@
-
-p.location-badge.
- exported from angular2/change_detection
- defined in angular2/src/change_detection/pipes/pipe.ts (line 78)
-
-:markdown
-
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 supports
-
-
- pre.prettyprint
- code.
- supports(obs: any)
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 create
-
-
- pre.prettyprint
- code.
- create(cdRef: ChangeDetectorRef)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/PipeOnDestroy-interface.jade b/public/docs/js/latest/api/change_detection/PipeOnDestroy-interface.jade
new file mode 100644
index 0000000000..a27ac90abe
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/PipeOnDestroy-interface.jade
@@ -0,0 +1,44 @@
+
+p.location-badge.
+ exported from angular2/change_detection
+ defined in angular2/src/change_detection/pipe_transform.ts (line 16)
+
+:markdown
+ An interface that stateful pipes should implement.
+
+ #Example
+
+ ```
+ class StatefulPipe implements PipeTransform, PipeOnDestroy {
+ connection;
+
+ onDestroy() {
+ this.connection.release();
+ }
+
+ transform(value, args = []) {
+ this.connection = createConnection();
+ // ...
+ return someValue;
+ }
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 onDestroy
+
+
+ pre.prettyprint
+ code.
+ onDestroy()
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/PipeTransform-interface.jade b/public/docs/js/latest/api/change_detection/PipeTransform-interface.jade
new file mode 100644
index 0000000000..a6c274d44a
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/PipeTransform-interface.jade
@@ -0,0 +1,36 @@
+
+p.location-badge.
+ exported from angular2/change_detection
+ defined in angular2/src/change_detection/pipe_transform.ts (line 1)
+
+:markdown
+ An interface which all pipes must implement.
+
+ #Example
+
+ ```
+ class DoublePipe implements PipeTransform {
+ transform(value, args = []) {
+ return `${value}${value}`;
+ }
+ }
+ ```
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 transform
+
+
+ pre.prettyprint
+ code.
+ transform(value: any, args: List<any>)
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/change_detection/Pipes-class.jade b/public/docs/js/latest/api/change_detection/Pipes-class.jade
deleted file mode 100644
index 641379c18c..0000000000
--- a/public/docs/js/latest/api/change_detection/Pipes-class.jade
+++ /dev/null
@@ -1,84 +0,0 @@
-
-p.location-badge.
- exported from angular2/change_detection
- defined in angular2/src/change_detection/pipes/pipes.ts (line 6)
-
-:markdown
-
-
-
-.l-main-section
- h2 Annotations
- .l-sub-section
- h3.annotation Injectable
- pre.prettyprint
- code.
- @Injectable()
-
-
- .l-sub-section
- h3.annotation CONST
- pre.prettyprint
- code.
- @CONST()
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor(config: StringMap<string, PipeFactory[]>)
-
- :markdown
-
-
-
-
-
-
- .l-sub-section
- h3 config
-
-
- :markdown
- Map of Pipe
names to PipeFactory
lists used to configure the
- Pipes
registry.
-
- #Example
-
- ```
- var pipesConfig = {
- 'json': [jsonPipeFactory]
- }
- @Component({
- viewBindings: [
- bind(Pipes).toValue(new Pipes(pipesConfig))
- ]
- })
- ```
-
-
-
-
-
-
-
- .l-sub-section
- h3 get
-
-
- pre.prettyprint
- code.
- get(type: string, obj: any, cdRef?: ChangeDetectorRef, existingPipe?: Pipe)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/WrappedValue-class.jade b/public/docs/js/latest/api/change_detection/WrappedValue-class.jade
index 286e34f344..6ec68e6889 100644
--- a/public/docs/js/latest/api/change_detection/WrappedValue-class.jade
+++ b/public/docs/js/latest/api/change_detection/WrappedValue-class.jade
@@ -1,14 +1,25 @@
p.location-badge.
exported from angular2/change_detection
- defined in angular2/src/change_detection/pipes/pipe.ts (line 2)
+ defined in angular2/src/change_detection/change_detection_util.ts (line 5)
:markdown
- Indicates that the result of a Pipe
transformation has changed even though the reference
+ 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.
+ Example:
+
+ ```
+ if (this._latestValue === this._latestReturnedValue) {
+ return this._latestReturnedValue;
+ } else {
+ this._latestReturnedValue = this._latestValue;
+ return WrappedValue.wrap(this._latestValue); // this will force update
+ }
+ ```
+
.l-main-section
h2 Members
diff --git a/public/docs/js/latest/api/change_detection/_data.json b/public/docs/js/latest/api/change_detection/_data.json
index a347479a6f..d59e36df26 100644
--- a/public/docs/js/latest/api/change_detection/_data.json
+++ b/public/docs/js/latest/api/change_detection/_data.json
@@ -52,16 +52,12 @@
"title" : "WrappedValue Class"
},
- "defaultPipes-const" : {
- "title" : "defaultPipes Const"
+ "PipeTransform-interface" : {
+ "title" : "PipeTransform Interface"
},
- "Pipe-interface" : {
- "title" : "Pipe Interface"
- },
-
- "Pipes-class" : {
- "title" : "Pipes Class"
+ "PipeOnDestroy-interface" : {
+ "title" : "PipeOnDestroy Interface"
},
"IterableDiffers-class" : {
@@ -86,21 +82,5 @@
"KeyValueDifferFactory-interface" : {
"title" : "KeyValueDifferFactory Interface"
- },
-
- "PipeFactory-interface" : {
- "title" : "PipeFactory Interface"
- },
-
- "BasePipe-class" : {
- "title" : "BasePipe Class"
- },
-
- "NullPipe-class" : {
- "title" : "NullPipe Class"
- },
-
- "NullPipeFactory-class" : {
- "title" : "NullPipeFactory Class"
}
}
\ No newline at end of file
diff --git a/public/docs/js/latest/api/change_detection/defaultPipes-const.jade b/public/docs/js/latest/api/change_detection/defaultPipes-const.jade
deleted file mode 100644
index 5d988c0862..0000000000
--- a/public/docs/js/latest/api/change_detection/defaultPipes-const.jade
+++ /dev/null
@@ -1,11 +0,0 @@
-
-.l-main-section
- h2 defaultPipes variable
- p.location-badge.
- exported from angular2/change_detection
- defined in angular2/src/change_detection/change_detection.ts (line 129)
-
- :markdown
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/index.jade b/public/docs/js/latest/api/change_detection/index.jade
index b5564bd476..5029aaeb06 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/core/appComponentTypeToken-const.jade b/public/docs/js/latest/api/core/APP_COMPONENT-const.jade
similarity index 91%
rename from public/docs/js/latest/api/core/appComponentTypeToken-const.jade
rename to public/docs/js/latest/api/core/APP_COMPONENT-const.jade
index e44a25ee57..17d1cc0992 100644
--- a/public/docs/js/latest/api/core/appComponentTypeToken-const.jade
+++ b/public/docs/js/latest/api/core/APP_COMPONENT-const.jade
@@ -1,6 +1,6 @@
.l-main-section
- h2 appComponentTypeToken variable
+ h2 APP_COMPONENT variable
p.location-badge.
exported from angular2/core
defined in angular2/src/core/application_tokens.ts (line 25)
diff --git a/public/docs/js/latest/api/core/ApplicationRef-class.jade b/public/docs/js/latest/api/core/ApplicationRef-class.jade
index 9b38891a70..9c6d7c6372 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_common.ts (line 337)
+ defined in angular2/src/core/application_common.ts (line 338)
:markdown
Represents a Angular's representation of an Application.
diff --git a/public/docs/js/latest/api/core/Compiler-class.jade b/public/docs/js/latest/api/core/Compiler-class.jade
index 0a462efe95..64639a945d 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 61)
+ defined in angular2/src/core/compiler/compiler.ts (line 64)
:markdown
## URL Resolution
@@ -42,7 +42,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(reader: DirectiveResolver, cache: CompilerCache, viewResolver: ViewResolver, componentUrlMapper: ComponentUrlMapper, urlResolver: UrlResolver, render:RenderCompiler, protoViewFactory: ProtoViewFactory, appUrl: AppRootUrl)
+ constructor(_directiveResolver: DirectiveResolver, _pipeResolver: PipeResolver, _defaultPipes: Type[], _compilerCache: CompilerCache, _viewResolver: ViewResolver, _componentUrlMapper: ComponentUrlMapper, _urlResolver: UrlResolver, _render:RenderCompiler, _protoViewFactory: ProtoViewFactory, appUrl: AppRootUrl)
:markdown
diff --git a/public/docs/js/latest/api/core/IQueryList-interface.jade b/public/docs/js/latest/api/core/IQueryList-interface.jade
deleted file mode 100644
index cf083b1535..0000000000
--- a/public/docs/js/latest/api/core/IQueryList-interface.jade
+++ /dev/null
@@ -1,79 +0,0 @@
-
-p.location-badge.
- exported from angular2/core
- defined in angular2/src/core/compiler/interface_query.ts (line 1)
-
-:markdown
- An iterable live list of components in the Light DOM.
-
- Injectable Objects that contains a live list of child directives in the light DOM of a directive.
- The directives are kept in depth-first pre-order traversal of the DOM.
-
- The `QueryList` is iterable, therefore it can be used in both javascript code with `for..of` loop
- as well as in
- template with `*ng-for="of"` directive.
-
- NOTE: In the future this class will implement an `Observable` interface. For now it uses a plain
- list of observable
- callbacks.
-
- # Example:
-
- Assume that `Injector
should instantiate a given token.
+ Describes how_ the Injector
should instantiate a given token.
See bind
.
diff --git a/public/docs/js/latest/api/di/BindingWithVisibility-class.jade b/public/docs/js/latest/api/di/BindingWithVisibility-class.jade
index 89df5f72b1..a64c72abf8 100644
--- a/public/docs/js/latest/api/di/BindingWithVisibility-class.jade
+++ b/public/docs/js/latest/api/di/BindingWithVisibility-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/injector.ts (line 352)
+ defined in angular2/src/di/injector.ts (line 360)
:markdown
@@ -14,7 +14,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(binding: ResolvedBinding, visibility: number)
+ constructor(binding: ResolvedBinding, visibility: Visibility)
:markdown
diff --git a/public/docs/js/latest/api/di/DependencyProvider-interface.jade b/public/docs/js/latest/api/di/DependencyProvider-interface.jade
index 98bc8a73be..68e3953440 100644
--- a/public/docs/js/latest/api/di/DependencyProvider-interface.jade
+++ b/public/docs/js/latest/api/di/DependencyProvider-interface.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/injector.ts (line 358)
+ defined in angular2/src/di/injector.ts (line 366)
:markdown
Used to provide dependencies that cannot be easily expressed as bindings.
diff --git a/public/docs/js/latest/api/di/Injector-class.jade b/public/docs/js/latest/api/di/Injector-class.jade
index fff6c8011f..e8af092d74 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 365)
+ defined in angular2/src/di/injector.ts (line 373)
:markdown
A dependency injection container used for resolving dependencies.
@@ -190,6 +190,38 @@ p.location-badge.
+ .l-sub-section
+ h3 resolveAndInstantiate
+
+
+ pre.prettyprint
+ code.
+ resolveAndInstantiate(binding: Type | Binding)
+
+ :markdown
+ Resolves a binding and instantiates an object in the context of the injector.
+
+
+
+
+
+
+ .l-sub-section
+ h3 instantiateResolved
+
+
+ pre.prettyprint
+ code.
+ instantiateResolved(binding: ResolvedBinding)
+
+ :markdown
+ Instantiates an object using a resolved bindin in the context of the injector.
+
+
+
+
+
+
.l-sub-section
h3 displayName
diff --git a/public/docs/js/latest/api/di/PRIVATE-const.jade b/public/docs/js/latest/api/di/PRIVATE-const.jade
deleted file mode 100644
index 402e0f2c3b..0000000000
--- a/public/docs/js/latest/api/di/PRIVATE-const.jade
+++ /dev/null
@@ -1,11 +0,0 @@
-
-.l-main-section
- h2 PRIVATE variable
- p.location-badge.
- exported from angular2/di
- defined in angular2/src/di/injector.ts (line 22)
-
- :markdown
-
-
-
diff --git a/public/docs/js/latest/api/di/PUBLIC-const.jade b/public/docs/js/latest/api/di/PUBLIC-const.jade
deleted file mode 100644
index 5258180743..0000000000
--- a/public/docs/js/latest/api/di/PUBLIC-const.jade
+++ /dev/null
@@ -1,11 +0,0 @@
-
-.l-main-section
- h2 PUBLIC variable
- p.location-badge.
- exported from angular2/di
- defined in angular2/src/di/injector.ts (line 21)
-
- :markdown
-
-
-
diff --git a/public/docs/js/latest/api/di/PUBLIC_AND_PRIVATE-const.jade b/public/docs/js/latest/api/di/PUBLIC_AND_PRIVATE-const.jade
deleted file mode 100644
index e158983d61..0000000000
--- a/public/docs/js/latest/api/di/PUBLIC_AND_PRIVATE-const.jade
+++ /dev/null
@@ -1,11 +0,0 @@
-
-.l-main-section
- h2 PUBLIC_AND_PRIVATE variable
- p.location-badge.
- exported from angular2/di
- defined in angular2/src/di/injector.ts (line 23)
-
- :markdown
-
-
-
diff --git a/public/docs/js/latest/api/di/ProtoInjector-class.jade b/public/docs/js/latest/api/di/ProtoInjector-class.jade
index 9f8b37045f..bf1590c124 100644
--- a/public/docs/js/latest/api/di/ProtoInjector-class.jade
+++ b/public/docs/js/latest/api/di/ProtoInjector-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/injector.ts (line 167)
+ defined in angular2/src/di/injector.ts (line 175)
:markdown
diff --git a/public/docs/js/latest/api/di/undefinedValue-const.jade b/public/docs/js/latest/api/di/UNDEFINED-const.jade
similarity index 83%
rename from public/docs/js/latest/api/di/undefinedValue-const.jade
rename to public/docs/js/latest/api/di/UNDEFINED-const.jade
index b916cc985b..147c48547e 100644
--- a/public/docs/js/latest/api/di/undefinedValue-const.jade
+++ b/public/docs/js/latest/api/di/UNDEFINED-const.jade
@@ -1,6 +1,6 @@
.l-main-section
- h2 undefinedValue variable
+ h2 UNDEFINED variable
p.location-badge.
exported from angular2/di
defined in angular2/src/di/injector.ts (line 19)
diff --git a/public/docs/js/latest/api/di/Visibility-enum.jade b/public/docs/js/latest/api/di/Visibility-enum.jade
new file mode 100644
index 0000000000..6ebefe1f54
--- /dev/null
+++ b/public/docs/js/latest/api/di/Visibility-enum.jade
@@ -0,0 +1,45 @@
+
+p.location-badge.
+ exported from angular2/di
+ defined in angular2/src/di/injector.ts (line 19)
+
+:markdown
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 Public
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Private
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 PublicAndPrivate
+
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/di/_data.json b/public/docs/js/latest/api/di/_data.json
index 50ba8b86a1..eb9956557e 100644
--- a/public/docs/js/latest/api/di/_data.json
+++ b/public/docs/js/latest/api/di/_data.json
@@ -60,20 +60,12 @@
"title" : "DependencyProvider Interface"
},
- "PUBLIC_AND_PRIVATE-const" : {
- "title" : "PUBLIC_AND_PRIVATE Const"
+ "Visibility-enum" : {
+ "title" : "Visibility Enum"
},
- "PUBLIC-const" : {
- "title" : "PUBLIC Const"
- },
-
- "PRIVATE-const" : {
- "title" : "PRIVATE Const"
- },
-
- "undefinedValue-const" : {
- "title" : "undefinedValue Const"
+ "UNDEFINED-const" : {
+ "title" : "UNDEFINED Const"
},
"Binding-class" : {
diff --git a/public/docs/js/latest/api/di/index.jade b/public/docs/js/latest/api/di/index.jade
index 5fe0b1f7f0..121d8e3528 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/directives/coreDirectives-const.jade b/public/docs/js/latest/api/directives/CORE_DIRECTIVES-const.jade
similarity index 89%
rename from public/docs/js/latest/api/directives/coreDirectives-const.jade
rename to public/docs/js/latest/api/directives/CORE_DIRECTIVES-const.jade
index f294e8a95f..10f54d8b7c 100644
--- a/public/docs/js/latest/api/directives/coreDirectives-const.jade
+++ b/public/docs/js/latest/api/directives/CORE_DIRECTIVES-const.jade
@@ -1,9 +1,9 @@
.l-main-section
- h2 coreDirectives variable
+ h2 CORE_DIRECTIVES variable
p.location-badge.
exported from angular2/directives
- defined in angular2/directives.ts (line 62)
+ defined in angular2/directives.ts (line 63)
: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/CSSClass-class.jade b/public/docs/js/latest/api/directives/NgClass-class.jade
similarity index 80%
rename from public/docs/js/latest/api/directives/CSSClass-class.jade
rename to public/docs/js/latest/api/directives/NgClass-class.jade
index 67049c3a3b..0df1a10df2 100644
--- a/public/docs/js/latest/api/directives/CSSClass-class.jade
+++ b/public/docs/js/latest/api/directives/NgClass-class.jade
@@ -1,7 +1,7 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/class.ts (line 11)
+ defined in angular2/src/directives/ng_class.ts (line 11)
:markdown
Adds and removes CSS classes based on an {expression} value.
@@ -18,7 +18,7 @@ p.location-badge.
# Example:
```
-