- ```
-
-
-
-
-
-
-
- .l-sub-section
- h3 events
-
-
- :markdown
- Enumerates the set of emitted events.
-
- ## Syntax
-
- ```
- @Component({
- events: ['statusChange']
- })
- class TaskComponent {
- statusChange: EventEmitter;
-
- constructor() {
- this.statusChange = new EventEmitter();
- }
-
- onComplete() {
- this.statusChange.next('completed');
- }
- }
- ```
-
- Use `propertyName: eventName` when the event emitter property name is different from the name
- of the emitted event:
-
- ```
- @Component({
- events: ['status: statusChange']
- })
- class TaskComponent {
- status: EventEmitter;
-
- constructor() {
- this.status = new EventEmitter();
- }
-
- onComplete() {
- this.status.next('completed');
- }
- }
- ```
-
-
-
-
-
-
-
- .l-sub-section
- h3 host
-
-
- :markdown
- Specifiy the events, actions, properties and attributes related to the host element.
-
- ## Events
-
- Specifies which DOM hostListeners a directive listens to via a set of `(event)` to `method`
- key-value pairs:
-
- - `event1`: the DOM event that the directive listens to.
- - `statement`: the statement to execute when the event occurs.
- If the evalutation of the statement returns `false`, then `preventDefault`is applied on the DOM
- event.
-
- To listen to global events, a target must be added to the event name.
- The target can be `window`, `document` or `body`.
-
- When writing a directive event binding, you can also refer to the following local variables:
- - `$event`: Current event object which triggered the event.
- - `$target`: The source of the event. This will be either a DOM element or an Angular
- directive. (will be implemented in later release)
-
- ## Syntax
-
- ```
- @Directive({
- host: {
- '(event1)': 'onMethod1(arguments)',
- '(target:event2)': 'onMethod2(arguments)',
- ...
- }
- }
- ```
-
- ## Basic Event Binding:
-
- Suppose you want to write a directive that reacts to `change` events in the DOM and on
- `resize` events in window.
- You would define the event binding as follows:
-
- ```
- @Directive({
- selector: 'input',
- host: {
- '(change)': 'onChange($event)',
- '(window:resize)': 'onResize($event)'
- }
- })
- class InputDirective {
- onChange(event:Event) {
- // invoked when the input element fires the 'change' event
- }
- onResize(event:Event) {
- // invoked when the window fires the 'resize' event
- }
- }
- ```
-
- ## Properties
-
- Specifies which DOM properties a directives updates.
-
- ## Syntax
-
- ```
- @Directive({
- selector: 'input',
- host: {
- '[prop]': 'expression'
- }
- })
- class InputDirective {
- value:string;
- }
- ```
-
- In this example the prop property of the host element is updated with the expression value
- every time it changes.
-
- ## Attributes
-
- Specifies static attributes that should be propagated to a host element. Attributes specified
- in `hostAttributes` are propagated only if a given attribute is not present on a host element.
-
- ## Syntax
-
- ```
- @Directive({
- selector: '[my-button]',
- host: {
- 'role': 'button'
- }
- })
- class MyButton {
- }
- ```
-
- In this example using `my-button` directive (ex.: `
` ) will ensure that this element will get the "button" role.
-
- ## Actions
-
- Specifies which DOM methods a directive can invoke.
-
- ## Syntax
-
- ```
- @Directive({
- selector: 'input',
- host: {
- '@emitFocus': 'focus()'
- }
- })
- class InputDirective {
- constructor() {
- this.emitFocus = new EventEmitter();
- }
-
- focus() {
- this.emitFocus.next();
- }
- }
- ```
-
- In this example calling focus on InputDirective will result in calling focus on the input.
-
-
-
-
-
-
-
- .l-sub-section
- h3 lifecycle
-
-
- :markdown
- Specifies which lifecycle should be notified to the directive.
-
- See
LifecycleEvent
for details.
-
-
-
-
-
-
-
- .l-sub-section
- h3 compileChildren
-
-
- :markdown
- If set to false the compiler does not compile the children of this directive.
-
-
-
-
-
-
-
- .l-sub-section
- h3 bindings
-
-
- :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',
- bindings: [
- Greeter
- ]
- })
- class HelloWorld {
- greeter:Greeter;
-
- constructor(greeter:Greeter) {
- this.greeter = greeter;
- }
- }
- ```
-
-
-
-
-
-
-
- .l-sub-section
- h3 exportAs
-
-
- :markdown
- Defines the name that can be used in the template to assign this directive to a variable.
-
- ## Simple Example
-
- ```
- @Directive({
- selector: 'child-dir',
- exportAs: 'child'
- })
- class ChildDir {
- }
-
- @Component({
- selector: 'main',
- })
- @View({
- template: `
`,
- directives: [ChildDir]
- })
- class MainComponent {
- }
-
- ```
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/DirectiveDecorator-interface.jade b/public/docs/js/latest/api/annotations/DirectiveDecorator-interface.jade
deleted file mode 100644
index f8a00113c1..0000000000
--- a/public/docs/js/latest/api/annotations/DirectiveDecorator-interface.jade
+++ /dev/null
@@ -1,11 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/annotations/decorators.ts (line 11)
-
-:markdown
- Interface for the
Directive
decorator function.
-
- See
DirectiveFactory
.
-
-
diff --git a/public/docs/js/latest/api/annotations/DirectiveFactory-interface.jade b/public/docs/js/latest/api/annotations/DirectiveFactory-interface.jade
deleted file mode 100644
index d6964aa4ca..0000000000
--- a/public/docs/js/latest/api/annotations/DirectiveFactory-interface.jade
+++ /dev/null
@@ -1,46 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/annotations/decorators.ts (line 58)
-
-:markdown
-
Directive
factory for creating annotations, decorators or DSL.
-
- ## Example as TypeScript Decorator
-
- ```
- import {Directive} from "angular2/angular2";
-
- @Directive({...})
- class MyDirective {
- constructor() {
- ...
- }
- }
- ```
-
- ## Example as ES5 DSL
-
- ```
- var MyDirective = ng
- .Directive({...})
- .Class({
- constructor: function() {
- ...
- }
- })
- ```
-
- ## Example as ES5 annotation
-
- ```
- var MyDirective = function() {
- ...
- };
-
- MyDirective.annotations = [
- new ng.Directive({...})
- ]
- ```
-
-
diff --git a/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade b/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade
deleted file mode 100644
index 7e31ec7e7d..0000000000
--- a/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade
+++ /dev/null
@@ -1,176 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/annotations_impl/annotations.ts (line 876)
-
-:markdown
- Lifecycle events are guaranteed to be called in the following order:
- - `onChange` (optional if any bindings have changed),
- - `onInit` (optional after the first check only),
- - `onCheck`,
- - `onAllChangesDone`
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 onDestroy
-
-
- :markdown
- Notify a directive whenever a
View
that contains it is destroyed.
-
-
-
- ```
- @Directive({
- ...,
- lifecycle: [LifecycleEvent.onDestroy]
- })
- class ClassSet {
- onDestroy() {
- // invoked to notify directive of the containing view destruction.
- }
- }
- ```
-
-
-
-
-
-
-
- .l-sub-section
- h3 onChange
-
-
- :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.
-
- :
-
- ```
- @Directive({
- selector: '[class-set]',
- properties: [
- 'propA',
- 'propB'
- ],
- lifecycle: [LifecycleEvent.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
- }
- }
- }
- ```
-
-
-
-
-
-
-
- .l-sub-section
- h3 onCheck
-
-
- :markdown
- Notify a directive when it has been checked.
-
- 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 every time even when none of the directive's bindings has changed.
-
-
-
- ```
- @Directive({
- selector: '[class-set]',
- lifecycle: [LifecycleEvent.onCheck]
- })
- class ClassSet {
- onCheck() {
- }
- }
- ```
-
-
-
-
-
-
-
- .l-sub-section
- h3 onInit
-
-
- :markdown
- Notify a directive when it has been checked the first itme.
-
- 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 once.
-
-
-
- ```
- @Directive({
- selector: '[class-set]',
- lifecycle: [LifecycleEvent.onInit]
- })
- class ClassSet {
- onInit() {
- }
- }
- ```
-
-
-
-
-
-
-
- .l-sub-section
- h3 onAllChangesDone
-
-
- :markdown
- Notify a directive when the bindings of all its children have been checked (whether they have
- changed or not).
-
-
-
- ```
- @Directive({
- selector: '[class-set]',
- lifecycle: [LifecycleEvent.onAllChangesDone]
- })
- class ClassSet {
-
- onAllChangesDone() {
- }
-
- }
- ```
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/OnAllChangesDone-interface.jade b/public/docs/js/latest/api/annotations/OnAllChangesDone-interface.jade
deleted file mode 100644
index 55cb2205ce..0000000000
--- a/public/docs/js/latest/api/annotations/OnAllChangesDone-interface.jade
+++ /dev/null
@@ -1,28 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/compiler/interfaces.ts (line 30)
-
-:markdown
- Defines lifecycle method
-
`LifeCycleEvent.onAllChangesDone`
- called when the bindings of all its children have been changed.
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 onAllChangesDone
-
-
- pre.prettyprint
- code.
- onAllChangesDone()
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/OnChange-interface.jade b/public/docs/js/latest/api/annotations/OnChange-interface.jade
deleted file mode 100644
index c3b74256ca..0000000000
--- a/public/docs/js/latest/api/annotations/OnChange-interface.jade
+++ /dev/null
@@ -1,27 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/compiler/interfaces.ts (line 7)
-
-:markdown
- Defines lifecycle method
`LifeCycleEvent.onChange`
- called after all of component's bound properties are updated.
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 onChange
-
-
- pre.prettyprint
- code.
- onChange(changes: StringMap<string, any>)
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/OnCheck-interface.jade b/public/docs/js/latest/api/annotations/OnCheck-interface.jade
deleted file mode 100644
index 100130ab61..0000000000
--- a/public/docs/js/latest/api/annotations/OnCheck-interface.jade
+++ /dev/null
@@ -1,27 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/compiler/interfaces.ts (line 18)
-
-:markdown
- Defines lifecycle method
`LifeCycleEvent.onCheck`
- called when a directive is being checked.
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 onCheck
-
-
- pre.prettyprint
- code.
- onCheck()
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/OnDestroy-interface.jade b/public/docs/js/latest/api/annotations/OnDestroy-interface.jade
deleted file mode 100644
index 469d095c2b..0000000000
--- a/public/docs/js/latest/api/annotations/OnDestroy-interface.jade
+++ /dev/null
@@ -1,27 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/compiler/interfaces.ts (line 12)
-
-:markdown
- Defines lifecycle method
`LifeCycleEvent.onDestroy`
- called when a directive is being destroyed.
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 onDestroy
-
-
- pre.prettyprint
- code.
- onDestroy()
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/OnInit-interface.jade b/public/docs/js/latest/api/annotations/OnInit-interface.jade
deleted file mode 100644
index 8a708d9366..0000000000
--- a/public/docs/js/latest/api/annotations/OnInit-interface.jade
+++ /dev/null
@@ -1,27 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/compiler/interfaces.ts (line 24)
-
-:markdown
- Defines lifecycle method
`LifeCycleEvent.onInit`
- called when a directive is being checked the first time.
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 onInit
-
-
- pre.prettyprint
- code.
- onInit()
-
- :markdown
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/Pipe-var.jade b/public/docs/js/latest/api/annotations/Pipe-var.jade
deleted file mode 100644
index 0e4b7b53b2..0000000000
--- a/public/docs/js/latest/api/annotations/Pipe-var.jade
+++ /dev/null
@@ -1,12 +0,0 @@
-
-.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
deleted file mode 100644
index 871ff93952..0000000000
--- a/public/docs/js/latest/api/annotations/PipeAnnotation-class.jade
+++ /dev/null
@@ -1,58 +0,0 @@
-
-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
deleted file mode 100644
index 02059e2aaf..0000000000
--- a/public/docs/js/latest/api/annotations/PipeFactory-interface.jade
+++ /dev/null
@@ -1,24 +0,0 @@
-
-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
deleted file mode 100644
index 4eeb57656c..0000000000
--- a/public/docs/js/latest/api/annotations/Query-var.jade
+++ /dev/null
@@ -1,12 +0,0 @@
-
-.l-main-section
- h2 Query
variable
- p.location-badge.
- exported from
angular2/annotations
- 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
deleted file mode 100644
index 66f50c931e..0000000000
--- a/public/docs/js/latest/api/annotations/QueryFactory-interface.jade
+++ /dev/null
@@ -1,52 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/annotations/decorators.ts (line 294)
-
-:markdown
-
Query
factory for creating annotations, decorators or DSL.
-
- ## Example as TypeScript Decorator
-
- ```
- import {Query, QueryList, Component, View} from "angular2/angular2";
-
- @Component({...})
- @View({...})
- class MyComponent {
- constructor(@Query(SomeType) queryList: QueryList) {
- ...
- }
- }
- ```
-
- ## Example as ES5 DSL
-
- ```
- var MyComponent = ng
- .Component({...})
- .View({...})
- .Class({
- constructor: [new ng.Query(SomeType), function(queryList) {
- ...
- }]
- })
- ```
-
- ## Example as ES5 annotation
-
- ```
- var MyComponent = function(queryList) {
- ...
- };
-
- MyComponent.annotations = [
- new ng.Component({...})
- new ng.View({...})
- ]
- MyComponent.parameters = [
- [new ng.Query(SomeType)]
- ]
- ```
-
-
diff --git a/public/docs/js/latest/api/annotations/View-var.jade b/public/docs/js/latest/api/annotations/View-var.jade
deleted file mode 100644
index 91dedc9073..0000000000
--- a/public/docs/js/latest/api/annotations/View-var.jade
+++ /dev/null
@@ -1,12 +0,0 @@
-
-.l-main-section
- h2 View
variable
- p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/annotations/decorators.ts (line 385)
-
- :markdown
-
View
factory function.
-
-
-
diff --git a/public/docs/js/latest/api/annotations/ViewDecorator-interface.jade b/public/docs/js/latest/api/annotations/ViewDecorator-interface.jade
deleted file mode 100644
index dfba91e4f1..0000000000
--- a/public/docs/js/latest/api/annotations/ViewDecorator-interface.jade
+++ /dev/null
@@ -1,37 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/annotations/decorators.ts (line 38)
-
-:markdown
- Interface for the
View
decorator function.
-
- See
ViewFactory
.
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 View
-
-
- pre.prettyprint
- code.
- View(obj: {
- templateUrl?: string,
- template?: string,
- directives?: List<Type | any | List<any>>,
- pipes?: List<Type | any | List<any>>,
- renderer?: string,
- styles?: List<string>,
- styleUrls?: List<string>,
- })
-
- :markdown
- Chain
View
annotation.
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/ViewEncapsulation-enum.jade b/public/docs/js/latest/api/annotations/ViewEncapsulation-enum.jade
deleted file mode 100644
index a5a90b6c85..0000000000
--- a/public/docs/js/latest/api/annotations/ViewEncapsulation-enum.jade
+++ /dev/null
@@ -1,50 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/render/api.ts (line 274)
-
-:markdown
- How the template and styles of a view should be encapsulated.
-
-
-.l-main-section
- h2 Members
- .l-sub-section
- h3 EMULATED
-
-
- :markdown
- Emulate scoping of styles by preprocessing the style rules
- and adding additional attributes to elements. This is the default.
-
-
-
-
-
-
-
- .l-sub-section
- h3 NATIVE
-
-
- :markdown
- Uses the native mechanism of the renderer. For the DOM this means creating a ShadowRoot.
-
-
-
-
-
-
-
- .l-sub-section
- h3 NONE
-
-
- :markdown
- Don't scope the template nor the styles.
-
-
-
-
-
-
diff --git a/public/docs/js/latest/api/annotations/ViewFactory-interface.jade b/public/docs/js/latest/api/annotations/ViewFactory-interface.jade
deleted file mode 100644
index 536a268b42..0000000000
--- a/public/docs/js/latest/api/annotations/ViewFactory-interface.jade
+++ /dev/null
@@ -1,49 +0,0 @@
-
-p.location-badge.
- exported from
angular2/annotations
- defined in
angular2/src/core/annotations/decorators.ts (line 181)
-
-:markdown
-
ViewAnnotation
factory for creating annotations, decorators or DSL.
-
- ## Example as TypeScript Decorator
-
- ```
- import {Component, View} from "angular2/angular2";
-
- @Component({...})
- @View({...})
- class MyComponent {
- constructor() {
- ...
- }
- }
- ```
-
- ## Example as ES5 DSL
-
- ```
- var MyComponent = ng
- .Component({...})
- .View({...})
- .Class({
- constructor: function() {
- ...
- }
- })
- ```
-
- ## Example as ES5 annotation
-
- ```
- var MyComponent = function() {
- ...
- };
-
- MyComponent.annotations = [
- new ng.Component({...})
- new ng.View({...})
- ]
- ```
-
-
diff --git a/public/docs/js/latest/api/annotations/ViewQuery-var.jade b/public/docs/js/latest/api/annotations/ViewQuery-var.jade
deleted file mode 100644
index 4fbff8c464..0000000000
--- a/public/docs/js/latest/api/annotations/ViewQuery-var.jade
+++ /dev/null
@@ -1,12 +0,0 @@
-
-.l-main-section
- h2 ViewQuery
variable
- p.location-badge.
- exported from
angular2/annotations
- 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
deleted file mode 100644
index f2dd03b8e4..0000000000
--- a/public/docs/js/latest/api/annotations/_data.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "index" : {
- "title" : "Annotations",
- "intro" : "Annotations provide the additional information that Angular requires in order to run yourapplication. This modulecontains
Component
,
Directive
, and
View
annotations, as well asthe
Host
annotation that is used by Angular to resolve dependencies."
- },
-
- "ComponentAnnotation-class" : {
- "title" : "ComponentAnnotation Class"
- },
-
- "DirectiveAnnotation-class" : {
- "title" : "DirectiveAnnotation Class"
- },
-
- "PipeAnnotation-class" : {
- "title" : "PipeAnnotation Class"
- },
-
- "LifecycleEvent-enum" : {
- "title" : "LifecycleEvent Enum"
- },
-
- "ViewAnnotation-class" : {
- "title" : "ViewAnnotation Class"
- },
-
- "ViewEncapsulation-enum" : {
- "title" : "ViewEncapsulation Enum"
- },
-
- "QueryAnnotation-class" : {
- "title" : "QueryAnnotation Class"
- },
-
- "AttributeAnnotation-class" : {
- "title" : "AttributeAnnotation Class"
- },
-
- "OnAllChangesDone-interface" : {
- "title" : "OnAllChangesDone Interface"
- },
-
- "OnChange-interface" : {
- "title" : "OnChange Interface"
- },
-
- "OnDestroy-interface" : {
- "title" : "OnDestroy Interface"
- },
-
- "OnInit-interface" : {
- "title" : "OnInit Interface"
- },
-
- "OnCheck-interface" : {
- "title" : "OnCheck Interface"
- },
-
- "Class-function" : {
- "title" : "Class Function"
- },
-
- "ClassDefinition-interface" : {
- "title" : "ClassDefinition Interface"
- },
-
- "TypeDecorator-interface" : {
- "title" : "TypeDecorator Interface"
- },
-
- "Attribute-var" : {
- "title" : "Attribute Var"
- },
-
- "AttributeFactory-interface" : {
- "title" : "AttributeFactory Interface"
- },
-
- "Component-var" : {
- "title" : "Component Var"
- },
-
- "ComponentDecorator-interface" : {
- "title" : "ComponentDecorator Interface"
- },
-
- "ComponentFactory-interface" : {
- "title" : "ComponentFactory Interface"
- },
-
- "Directive-var" : {
- "title" : "Directive Var"
- },
-
- "DirectiveDecorator-interface" : {
- "title" : "DirectiveDecorator Interface"
- },
-
- "DirectiveFactory-interface" : {
- "title" : "DirectiveFactory Interface"
- },
-
- "View-var" : {
- "title" : "View Var"
- },
-
- "ViewDecorator-interface" : {
- "title" : "ViewDecorator Interface"
- },
-
- "ViewFactory-interface" : {
- "title" : "ViewFactory Interface"
- },
-
- "Query-var" : {
- "title" : "Query Var"
- },
-
- "QueryFactory-interface" : {
- "title" : "QueryFactory Interface"
- },
-
- "ViewQuery-var" : {
- "title" : "ViewQuery Var"
- },
-
- "Pipe-var" : {
- "title" : "Pipe Var"
- },
-
- "PipeFactory-interface" : {
- "title" : "PipeFactory Interface"
- }
-}
\ No newline at end of file
diff --git a/public/docs/js/latest/api/change_detection/CHECKED-const.jade b/public/docs/js/latest/api/change_detection/CHECKED-const.jade
deleted file mode 100644
index 172e95ce1a..0000000000
--- a/public/docs/js/latest/api/change_detection/CHECKED-const.jade
+++ /dev/null
@@ -1,13 +0,0 @@
-
-.l-main-section
- h2 CHECKED
variable
- p.location-badge.
- exported from
angular2/change_detection
- defined in
angular2/src/change_detection/constants.ts (line 13)
-
- :markdown
- CHECKED means that the change detector should be skipped until its mode changes to
- CHECK_ONCE or CHECK_ALWAYS.
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/CHECK_ALWAYS-const.jade b/public/docs/js/latest/api/change_detection/CHECK_ALWAYS-const.jade
deleted file mode 100644
index 2a56865d3a..0000000000
--- a/public/docs/js/latest/api/change_detection/CHECK_ALWAYS-const.jade
+++ /dev/null
@@ -1,13 +0,0 @@
-
-.l-main-section
- h2 CHECK_ALWAYS
variable
- p.location-badge.
- exported from
angular2/change_detection
- defined in
angular2/src/change_detection/constants.ts (line 19)
-
- :markdown
- CHECK_ALWAYS means that after calling detectChanges the mode of the change detector
- will remain CHECK_ALWAYS.
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/CHECK_ONCE-const.jade b/public/docs/js/latest/api/change_detection/CHECK_ONCE-const.jade
deleted file mode 100644
index c15bbe777d..0000000000
--- a/public/docs/js/latest/api/change_detection/CHECK_ONCE-const.jade
+++ /dev/null
@@ -1,13 +0,0 @@
-
-.l-main-section
- h2 CHECK_ONCE
variable
- p.location-badge.
- exported from
angular2/change_detection
- defined in
angular2/src/change_detection/constants.ts (line 7)
-
- :markdown
- CHECK_ONCE means that after calling detectChanges the mode of the change detector
- will become CHECKED.
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/ChangeDetectionError-class.jade b/public/docs/js/latest/api/change_detection/ChangeDetectionError-class.jade
index 7ec6747d07..beabadd3ff 100644
--- a/public/docs/js/latest/api/change_detection/ChangeDetectionError-class.jade
+++ b/public/docs/js/latest/api/change_detection/ChangeDetectionError-class.jade
@@ -1,14 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/exceptions.ts (line 18)
+ defined in
angular2/src/core/change_detection/exceptions.ts (line 17)
:markdown
- Thrown when an expression evaluation raises an exception.
-
- This error wraps the original exception, this is done to attach expression location information.
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Members
.l-sub-section
@@ -17,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(proto: ProtoRecord, originalException: any, originalStack: any, context: any)
+ constructor(exp: string, originalException: any, originalStack: any, context: any)
:markdown
diff --git a/public/docs/js/latest/api/change_detection/ChangeDetectionStrategy-enum.jade b/public/docs/js/latest/api/change_detection/ChangeDetectionStrategy-enum.jade
new file mode 100644
index 0000000000..786d96c551
--- /dev/null
+++ b/public/docs/js/latest/api/change_detection/ChangeDetectionStrategy-enum.jade
@@ -0,0 +1,103 @@
+
+p.location-badge.
+ exported from
angular2/change_detection
+ defined in
angular2/src/core/change_detection/constants.ts (line 2)
+
+:markdown
+ Change detection enables data binding in Angular.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 CheckOnce
+
+
+ :markdown
+ `CheckedOnce` means that after calling detectChanges the mode of the change detector
+ will become `Checked`.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Checked
+
+
+ :markdown
+ `Checked` means that the change detector should be skipped until its mode changes to
+ `CheckOnce`.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 CheckAlways
+
+
+ :markdown
+ `CheckAlways` means that after calling detectChanges the mode of the change detector
+ will remain `CheckAlways`.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Detached
+
+
+ :markdown
+ `Detached` means that the change detector sub tree is not a part of the main tree and
+ should be skipped.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 OnPush
+
+
+ :markdown
+ `OnPush` means that the change detector's mode will be set to `CheckOnce` during hydration.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Default
+
+
+ :markdown
+ `Default` means that the change detector's mode will be set to `CheckAlways` during hydration.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 OnPushObserve
+
+
+ :markdown
+ This is an experimental feature. Works only in Dart.
+
+
+
+
+
+
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 93c97561bf..c05f0c13fd 100644
--- a/public/docs/js/latest/api/change_detection/ChangeDetector-interface.jade
+++ b/public/docs/js/latest/api/change_detection/ChangeDetector-interface.jade
@@ -1,11 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/interfaces.ts (line 49)
+ defined in
angular2/src/core/change_detection/interfaces.ts (line 55)
:markdown
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Members
.l-sub-section
@@ -172,6 +171,22 @@ p.location-badge.
+ .l-sub-section
+ h3 handleEvent
+
+
+ pre.prettyprint
+ code.
+ handleEvent(eventName: string, elIndex: number, locals: Locals)
+
+ :markdown
+
+
+
+
+
+
+
.l-sub-section
h3 detectChanges
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 aa6eb56143..165a868a00 100644
--- a/public/docs/js/latest/api/change_detection/ChangeDetectorRef-class.jade
+++ b/public/docs/js/latest/api/change_detection/ChangeDetectorRef-class.jade
@@ -1,15 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/change_detector_ref.ts (line 2)
+ defined in
angular2/src/core/change_detection/change_detector_ref.ts (line 2)
:markdown
- Controls change detection.
-
-
ChangeDetectorRef
allows requesting checks for detectors that rely on observables. It
- also allows detaching and attaching change detector subtrees.
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Members
.l-sub-section
@@ -27,15 +22,15 @@ p.location-badge.
.l-sub-section
- h3 requestCheck
+ h3 markForCheck
pre.prettyprint
code.
- requestCheck()
+ markForCheck()
:markdown
- Request to check all ON_PUSH ancestors.
+ Request to check all OnPush ancestors.
@@ -74,8 +69,7 @@ p.location-badge.
Reattach the change detector to the change detector tree.
This also requests a check of this change detector. This reattached change detector will be
- checked during the
- next change detection run.
+ checked during the next change detection run.
diff --git a/public/docs/js/latest/api/change_detection/DEFAULT-const.jade b/public/docs/js/latest/api/change_detection/DEFAULT-const.jade
deleted file mode 100644
index be2b995663..0000000000
--- a/public/docs/js/latest/api/change_detection/DEFAULT-const.jade
+++ /dev/null
@@ -1,12 +0,0 @@
-
-.l-main-section
- h2 DEFAULT
variable
- p.location-badge.
- exported from
angular2/change_detection
- defined in
angular2/src/change_detection/constants.ts (line 35)
-
- :markdown
- DEFAULT means that the change detector's mode will be set to CHECK_ALWAYS during hydration.
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/DETACHED-const.jade b/public/docs/js/latest/api/change_detection/DETACHED-const.jade
deleted file mode 100644
index d0a28ee42b..0000000000
--- a/public/docs/js/latest/api/change_detection/DETACHED-const.jade
+++ /dev/null
@@ -1,13 +0,0 @@
-
-.l-main-section
- h2 DETACHED
variable
- p.location-badge.
- exported from
angular2/change_detection
- defined in
angular2/src/change_detection/constants.ts (line 25)
-
- :markdown
- DETACHED means that the change detector sub tree is not a part of the main tree and
- should be skipped.
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/ExpressionChangedAfterItHasBeenCheckedException-class.jade b/public/docs/js/latest/api/change_detection/ExpressionChangedAfterItHasBeenCheckedException-class.jade
index b3ca5bd2ec..f1f1c75624 100644
--- a/public/docs/js/latest/api/change_detection/ExpressionChangedAfterItHasBeenCheckedException-class.jade
+++ b/public/docs/js/latest/api/change_detection/ExpressionChangedAfterItHasBeenCheckedException-class.jade
@@ -1,18 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/exceptions.ts (line 2)
+ defined in
angular2/src/core/change_detection/exceptions.ts (line 1)
:markdown
- An error thrown if application changes model breaking the top-down data flow.
-
- Angular expects that the data flows from top (root) component to child (leaf) components.
- This is known as directed acyclic graph. This allows Angular to only execute change detection
- once and prevents loops in change detection data flow.
-
- This exception is only thrown in dev mode.
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Members
.l-sub-section
@@ -21,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(proto: ProtoRecord, change: any, context: any)
+ constructor(exp: string, oldValue: any, currValue: any, context: any)
:markdown
diff --git a/public/docs/js/latest/api/change_detection/IterableDiffer-interface.jade b/public/docs/js/latest/api/change_detection/IterableDiffer-interface.jade
index 15d51edaaf..1ed68653f7 100644
--- a/public/docs/js/latest/api/change_detection/IterableDiffer-interface.jade
+++ b/public/docs/js/latest/api/change_detection/IterableDiffer-interface.jade
@@ -1,11 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/differs/iterable_differs.ts (line 4)
+ defined in
angular2/src/core/change_detection/differs/iterable_differs.ts (line 4)
:markdown
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/change_detection/IterableDifferFactory-interface.jade b/public/docs/js/latest/api/change_detection/IterableDifferFactory-interface.jade
index 2f2b3c7887..bd1bfdaca4 100644
--- a/public/docs/js/latest/api/change_detection/IterableDifferFactory-interface.jade
+++ b/public/docs/js/latest/api/change_detection/IterableDifferFactory-interface.jade
@@ -1,12 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/differs/iterable_differs.ts (line 9)
+ defined in
angular2/src/core/change_detection/differs/iterable_differs.ts (line 9)
:markdown
- Provides a factory for
IterableDiffer
.
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/change_detection/IterableDiffers-class.jade b/public/docs/js/latest/api/change_detection/IterableDiffers-class.jade
index eb75be9588..6c14f697fd 100644
--- a/public/docs/js/latest/api/change_detection/IterableDiffers-class.jade
+++ b/public/docs/js/latest/api/change_detection/IterableDiffers-class.jade
@@ -1,12 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/differs/iterable_differs.ts (line 17)
+ defined in
angular2/src/core/change_detection/differs/iterable_differs.ts (line 17)
:markdown
- A repository of different iterable diffing strategies used by NgFor, NgClass, and others.
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/change_detection/KeyValueDiffer-interface.jade b/public/docs/js/latest/api/change_detection/KeyValueDiffer-interface.jade
index 86b99fb515..c40d2d628f 100644
--- a/public/docs/js/latest/api/change_detection/KeyValueDiffer-interface.jade
+++ b/public/docs/js/latest/api/change_detection/KeyValueDiffer-interface.jade
@@ -1,11 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/differs/keyvalue_differs.ts (line 4)
+ defined in
angular2/src/core/change_detection/differs/keyvalue_differs.ts (line 4)
:markdown
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/change_detection/KeyValueDifferFactory-interface.jade b/public/docs/js/latest/api/change_detection/KeyValueDifferFactory-interface.jade
index b51f85680c..f86da884fc 100644
--- a/public/docs/js/latest/api/change_detection/KeyValueDifferFactory-interface.jade
+++ b/public/docs/js/latest/api/change_detection/KeyValueDifferFactory-interface.jade
@@ -1,12 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/differs/keyvalue_differs.ts (line 9)
+ defined in
angular2/src/core/change_detection/differs/keyvalue_differs.ts (line 9)
:markdown
- Provides a factory for
KeyValueDiffer
.
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/change_detection/KeyValueDiffers-class.jade b/public/docs/js/latest/api/change_detection/KeyValueDiffers-class.jade
index 6a02df401c..51ab481ed1 100644
--- a/public/docs/js/latest/api/change_detection/KeyValueDiffers-class.jade
+++ b/public/docs/js/latest/api/change_detection/KeyValueDiffers-class.jade
@@ -1,12 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/differs/keyvalue_differs.ts (line 17)
+ defined in
angular2/src/core/change_detection/differs/keyvalue_differs.ts (line 17)
:markdown
- A repository of different Map diffing strategies used by NgClass, NgStyle, and others.
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Annotations
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 d9c4e47771..b21a845047 100644
--- a/public/docs/js/latest/api/change_detection/Locals-class.jade
+++ b/public/docs/js/latest/api/change_detection/Locals-class.jade
@@ -1,11 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/parser/locals.ts (line 2)
+ defined in
angular2/src/core/change_detection/parser/locals.ts (line 2)
:markdown
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Members
.l-sub-section
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
deleted file mode 100644
index 28c4229300..0000000000
--- a/public/docs/js/latest/api/change_detection/ON_PUSH-const.jade
+++ /dev/null
@@ -1,12 +0,0 @@
-
-.l-main-section
- h2 ON_PUSH
variable
- p.location-badge.
- exported from
angular2/change_detection
- defined in
angular2/src/change_detection/constants.ts (line 30)
-
- :markdown
- ON_PUSH means that the change detector's mode will be set to CHECK_ONCE during hydration.
-
-
-
diff --git a/public/docs/js/latest/api/change_detection/PipeOnDestroy-interface.jade b/public/docs/js/latest/api/change_detection/PipeOnDestroy-interface.jade
index a27ac90abe..f95fb8ca19 100644
--- a/public/docs/js/latest/api/change_detection/PipeOnDestroy-interface.jade
+++ b/public/docs/js/latest/api/change_detection/PipeOnDestroy-interface.jade
@@ -1,30 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/pipe_transform.ts (line 16)
+ defined in
angular2/src/core/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;
- }
- }
- ```
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/change_detection/PipeTransform-interface.jade b/public/docs/js/latest/api/change_detection/PipeTransform-interface.jade
index a6c274d44a..95fd6bd5fb 100644
--- a/public/docs/js/latest/api/change_detection/PipeTransform-interface.jade
+++ b/public/docs/js/latest/api/change_detection/PipeTransform-interface.jade
@@ -1,22 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/pipe_transform.ts (line 1)
+ defined in
angular2/src/core/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}`;
- }
- }
- ```
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Members
.l-sub-section
@@ -25,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- transform(value: any, args: List<any>)
+ transform(value: any, args: any[])
:markdown
diff --git a/public/docs/js/latest/api/change_detection/WrappedValue-class.jade b/public/docs/js/latest/api/change_detection/WrappedValue-class.jade
index 6ec68e6889..904acdca25 100644
--- a/public/docs/js/latest/api/change_detection/WrappedValue-class.jade
+++ b/public/docs/js/latest/api/change_detection/WrappedValue-class.jade
@@ -1,26 +1,10 @@
p.location-badge.
exported from
angular2/change_detection
- defined in
angular2/src/change_detection/change_detection_util.ts (line 5)
+ defined in
angular2/src/core/change_detection/change_detection_util.ts (line 14)
: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.
-
- Example:
-
- ```
- if (this._latestValue === this._latestReturnedValue) {
- return this._latestReturnedValue;
- } else {
- this._latestReturnedValue = this._latestValue;
- return WrappedValue.wrap(this._latestValue); // this will force update
- }
- ```
-
-
+ Change detection enables data binding in Angular.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/change_detection/_data.json b/public/docs/js/latest/api/change_detection/_data.json
index d59e36df26..4603356eb3 100644
--- a/public/docs/js/latest/api/change_detection/_data.json
+++ b/public/docs/js/latest/api/change_detection/_data.json
@@ -4,83 +4,63 @@
"intro" : "Change detection enables data binding in Angular."
},
- "CHECK_ONCE-const" : {
- "title" : "CHECK_ONCE Const"
- },
-
- "CHECK_ALWAYS-const" : {
- "title" : "CHECK_ALWAYS Const"
- },
-
- "DETACHED-const" : {
- "title" : "DETACHED Const"
- },
-
- "CHECKED-const" : {
- "title" : "CHECKED Const"
- },
-
- "ON_PUSH-const" : {
- "title" : "ON_PUSH Const"
- },
-
- "DEFAULT-const" : {
- "title" : "DEFAULT Const"
+ "ChangeDetectionStrategy-enum" : {
+ "title" : "ChangeDetectionStrategy"
},
"ExpressionChangedAfterItHasBeenCheckedException-class" : {
- "title" : "ExpressionChangedAfterItHasBeenCheckedException Class"
+ "title" : "ExpressionChangedAfterItHasBeenCheckedException"
},
"ChangeDetectionError-class" : {
- "title" : "ChangeDetectionError Class"
+ "title" : "ChangeDetectionError"
},
"ChangeDetector-interface" : {
- "title" : "ChangeDetector Interface"
+ "title" : "ChangeDetector"
},
"Locals-class" : {
- "title" : "Locals Class"
+ "title" : "Locals"
},
"ChangeDetectorRef-class" : {
- "title" : "ChangeDetectorRef Class"
+ "title" : "ChangeDetectorRef"
},
"WrappedValue-class" : {
- "title" : "WrappedValue Class"
+ "title" : "WrappedValue"
},
"PipeTransform-interface" : {
- "title" : "PipeTransform Interface"
+ "title" : "PipeTransform"
},
"PipeOnDestroy-interface" : {
- "title" : "PipeOnDestroy Interface"
+ "title" : "PipeOnDestroy"
},
"IterableDiffers-class" : {
- "title" : "IterableDiffers Class"
+ "title" : "IterableDiffers"
},
"IterableDiffer-interface" : {
- "title" : "IterableDiffer Interface"
+ "title" : "IterableDiffer"
},
"IterableDifferFactory-interface" : {
- "title" : "IterableDifferFactory Interface"
+ "title" : "IterableDifferFactory"
},
"KeyValueDiffers-class" : {
- "title" : "KeyValueDiffers Class"
+ "title" : "KeyValueDiffers"
},
"KeyValueDiffer-interface" : {
- "title" : "KeyValueDiffer Interface"
+ "title" : "KeyValueDiffer"
},
"KeyValueDifferFactory-interface" : {
- "title" : "KeyValueDifferFactory Interface"
+ "title" : "KeyValueDifferFactory"
}
-}
\ No newline at end of file
+}
diff --git a/public/docs/js/latest/api/change_detection/index.jade b/public/docs/js/latest/api/change_detection/index.jade
index 5029aaeb06..bd0a50ae71 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/APP_COMPONENT-const.jade b/public/docs/js/latest/api/core/APP_COMPONENT-const.jade
index 17d1cc0992..94590e37c0 100644
--- a/public/docs/js/latest/api/core/APP_COMPONENT-const.jade
+++ b/public/docs/js/latest/api/core/APP_COMPONENT-const.jade
@@ -1,9 +1,8 @@
.l-main-section
- h2 APP_COMPONENT
variable
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/application_tokens.ts (line 25)
+ defined in
angular2/src/core/application_tokens.ts (line 25)
:markdown
An opaque token representing the application root type in the
Injector
.
diff --git a/public/docs/js/latest/api/core/AppRootUrl-class.jade b/public/docs/js/latest/api/core/AppRootUrl-class.jade
index f2b162e024..badac218c5 100644
--- a/public/docs/js/latest/api/core/AppRootUrl-class.jade
+++ b/public/docs/js/latest/api/core/AppRootUrl-class.jade
@@ -1,18 +1,10 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/services/app_root_url.ts (line 2)
+ defined in
angular2/src/core/services/app_root_url.ts (line 2)
:markdown
- Specifies app root url for the application.
-
- Used by the
Compiler
when resolving HTML and CSS template URLs.
-
- This interface can be overridden by the application developer to create custom behavior.
-
- See
Compiler
-
-
+ Define angular core API here.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/core/AppViewManager-class.jade b/public/docs/js/latest/api/core/AppViewManager-class.jade
index 52ec21831f..3e48791d4b 100644
--- a/public/docs/js/latest/api/core/AppViewManager-class.jade
+++ b/public/docs/js/latest/api/core/AppViewManager-class.jade
@@ -1,14 +1,10 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/view_manager.ts (line 18)
+ defined in
angular2/src/core/compiler/view_manager.ts (line 18)
:markdown
- Entry point for creating, moving views in the view hierarchy and destroying views.
- This manager contains all recursion and delegates to helper methods
- in AppViewManagerUtils and the Renderer, so unit tests get simpler.
-
-
+ Define angular core API here.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/core/ApplicationRef-class.jade b/public/docs/js/latest/api/core/ApplicationRef-class.jade
index 9c6d7c6372..cd1eef6bfb 100644
--- a/public/docs/js/latest/api/core/ApplicationRef-class.jade
+++ b/public/docs/js/latest/api/core/ApplicationRef-class.jade
@@ -1,16 +1,10 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/application_common.ts (line 338)
+ defined in
angular2/src/core/application_ref.ts (line 3)
:markdown
- Represents a Angular's representation of an Application.
-
- `ApplicationRef` represents a running application instance. Use it to retrieve the host
- component, injector,
- or dispose of an application.
-
-
+ Define angular core API here.
.l-main-section
h2 Members
.l-sub-section
@@ -32,7 +26,7 @@ p.location-badge.
:markdown
- Returns the current
Component
type.
+ Returns the current
ComponentMetadata
type.
@@ -45,7 +39,7 @@ p.location-badge.
:markdown
- Returns the current
Component
instance.
+ Returns the current
ComponentMetadata
instance.
diff --git a/public/docs/js/latest/api/core/Compiler-class.jade b/public/docs/js/latest/api/core/Compiler-class.jade
index 64639a945d..e3cc96d6b1 100644
--- a/public/docs/js/latest/api/core/Compiler-class.jade
+++ b/public/docs/js/latest/api/core/Compiler-class.jade
@@ -1,29 +1,10 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/compiler.ts (line 64)
+ defined in
angular2/src/core/compiler/compiler.ts (line 71)
:markdown
- ## URL Resolution
-
- ```
- var appRootUrl: AppRootUrl = ...;
- var componentUrlMapper: ComponentUrlMapper = ...;
- var urlResolver: UrlResolver = ...;
-
- var componentType: Type = ...;
- var componentAnnotation: ComponentAnnotation = ...;
- var viewAnnotation: ViewAnnotation = ...;
-
- // Resolving a URL
-
- var url = viewAnnotation.templateUrl;
- var componentUrl = componentUrlMapper.getUrl(componentType);
- var componentResolvedUrl = urlResolver.resolve(appRootUrl.value, componentUrl);
- var templateResolvedUrl = urlResolver.resolve(componetResolvedUrl, url);
- ```
-
-
+ Define angular core API here.
.l-main-section
h2 Annotations
@@ -42,7 +23,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(_directiveResolver: DirectiveResolver, _pipeResolver: PipeResolver, _defaultPipes: Type[], _compilerCache: 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/ComponentRef-class.jade b/public/docs/js/latest/api/core/ComponentRef-class.jade
index 94e95ca97d..7577e0bcdf 100644
--- a/public/docs/js/latest/api/core/ComponentRef-class.jade
+++ b/public/docs/js/latest/api/core/ComponentRef-class.jade
@@ -1,14 +1,10 @@
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
- Angular's reference to a component instance.
-
- `ComponentRef` represents a component instance lifecycle and meta information.
-
-
+ Define angular core API here.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/core/ComponentUrlMapper-class.jade b/public/docs/js/latest/api/core/ComponentUrlMapper-class.jade
index d482b1ceea..f5f41198ae 100644
--- a/public/docs/js/latest/api/core/ComponentUrlMapper-class.jade
+++ b/public/docs/js/latest/api/core/ComponentUrlMapper-class.jade
@@ -1,16 +1,10 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/component_url_mapper.ts (line 3)
+ defined in
angular2/src/core/compiler/component_url_mapper.ts (line 3)
:markdown
- Resolve a `Type` from a
Component
into a URL.
-
- This interface can be overridden by the application developer to create custom behavior.
-
- See
Compiler
-
-
+ Define angular core API here.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/core/DirectiveResolver-class.jade b/public/docs/js/latest/api/core/DirectiveResolver-class.jade
index 629b1f5df2..2faa655ce2 100644
--- a/public/docs/js/latest/api/core/DirectiveResolver-class.jade
+++ b/public/docs/js/latest/api/core/DirectiveResolver-class.jade
@@ -1,16 +1,10 @@
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
- Resolve a `Type` for
Directive
.
-
- This interface can be overridden by the application developer to create custom behavior.
-
- See
Compiler
-
-
+ Define angular core API here.
.l-main-section
h2 Annotations
@@ -32,7 +26,7 @@ p.location-badge.
resolve(type: Type)
:markdown
- Return
Directive
for a given `Type`.
+ Return
DirectiveMetadata
for a given `Type`.
diff --git a/public/docs/js/latest/api/core/DynamicComponentLoader-class.jade b/public/docs/js/latest/api/core/DynamicComponentLoader-class.jade
index 67c3dfc687..7481839f8b 100644
--- a/public/docs/js/latest/api/core/DynamicComponentLoader-class.jade
+++ b/public/docs/js/latest/api/core/DynamicComponentLoader-class.jade
@@ -1,13 +1,10 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/dynamic_component_loader.ts (line 42)
+ defined in
angular2/src/core/compiler/dynamic_component_loader.ts (line 42)
:markdown
- Service for dynamically loading a Component into an arbitrary position in the internal Angular
- application tree.
-
-
+ Define angular core API here.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/core/ElementRef-class.jade b/public/docs/js/latest/api/core/ElementRef-class.jade
index 63328a37a3..43523a0046 100644
--- a/public/docs/js/latest/api/core/ElementRef-class.jade
+++ b/public/docs/js/latest/api/core/ElementRef-class.jade
@@ -1,17 +1,10 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/element_ref.ts (line 3)
+ defined in
angular2/src/core/compiler/element_ref.ts (line 3)
:markdown
- Reference to the element.
-
- Represents an opaque reference to the underlying element. The element is a DOM ELement in
- a Browser, but may represent other types on other rendering platforms. In the browser the
- `ElementRef` can be sent to the web-worker. Web Workers can not have references to the
- DOM Elements.
-
-
+ Define angular core API here.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/core/EventEmitter-class.jade b/public/docs/js/latest/api/core/EventEmitter-class.jade
index e6ea989bf1..635f060385 100644
--- a/public/docs/js/latest/api/core/EventEmitter-class.jade
+++ b/public/docs/js/latest/api/core/EventEmitter-class.jade
@@ -1,15 +1,10 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/facade/async.ts (line 90)
+ defined in
angular2/src/core/facade/async.ts (line 91)
:markdown
- Use Rx.Observable but provides an adapter to make it work as specified here:
- https://github.com/jhusain/observable-spec
-
- Once a reference implementation of the spec is available, switch to it.
-
-
+ Define angular core API here.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/core/HostViewRef-interface.jade b/public/docs/js/latest/api/core/HostViewRef-interface.jade
index eca95d95de..3f0fa82a00 100644
--- a/public/docs/js/latest/api/core/HostViewRef-interface.jade
+++ b/public/docs/js/latest/api/core/HostViewRef-interface.jade
@@ -1,8 +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
-
-
+ Define angular core API here.
diff --git a/public/docs/js/latest/api/core/LifeCycle-class.jade b/public/docs/js/latest/api/core/LifeCycle-class.jade
index 5c64a92c2d..7c78b9226a 100644
--- a/public/docs/js/latest/api/core/LifeCycle-class.jade
+++ b/public/docs/js/latest/api/core/LifeCycle-class.jade
@@ -1,35 +1,10 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/life_cycle/life_cycle.ts (line 5)
+ defined in
angular2/src/core/life_cycle/life_cycle.ts (line 5)
: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();
- });
- ```
-
-
+ Define angular core API here.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/core/NgZone-class.jade b/public/docs/js/latest/api/core/NgZone-class.jade
index 343342d7b4..31590e7ab9 100644
--- a/public/docs/js/latest/api/core/NgZone-class.jade
+++ b/public/docs/js/latest/api/core/NgZone-class.jade
@@ -1,18 +1,10 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/zone/ng_zone.ts (line 6)
+ defined in
angular2/src/core/zone/ng_zone.ts (line 6)
:markdown
- A wrapper around zones that lets you schedule tasks after it has executed a task.
-
- The wrapper maintains an "inner" and an "mount" `Zone`. The application code will executes
- in the "inner" zone unless `runOutsideAngular` is explicitely called.
-
- A typical application will create a singleton `NgZone`. The outer `Zone` is a fork of the root
- `Zone`. The default `onTurnDone` runs the Angular change detection.
-
-
+ Define angular core API here.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/core/Observable-class.jade b/public/docs/js/latest/api/core/Observable-class.jade
index 7c7fc7d6eb..54c7c1d6fe 100644
--- a/public/docs/js/latest/api/core/Observable-class.jade
+++ b/public/docs/js/latest/api/core/Observable-class.jade
@@ -1,11 +1,10 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/facade/async.ts (line 85)
+ defined in
angular2/src/core/facade/async.ts (line 86)
:markdown
-
-
+ Define angular core API here.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/core/ProtoViewRef-class.jade b/public/docs/js/latest/api/core/ProtoViewRef-class.jade
index a0b989e0e4..18a6d8985f 100644
--- a/public/docs/js/latest/api/core/ProtoViewRef-class.jade
+++ b/public/docs/js/latest/api/core/ProtoViewRef-class.jade
@@ -1,45 +1,10 @@
p.location-badge.
exported from
angular2/core
- defined in
angular2/src/core/compiler/view_ref.ts (line 91)
+ defined in
angular2/src/core/compiler/view_ref.ts (line 91)
:markdown
- A reference to an Angular ProtoView.
-
- A ProtoView is a reference to a template for easy creation of views.
- (See
AppViewManager
and
AppViewManager
).
-
- A `ProtoView` is a foctary for creating `View`s.
-
- ## Example
-
- Given this template
-
- ```
- Count: {{items.length}}
-
- ```
-
- The above example we have two
ProtoViewRef
s:
-
- Outter
ProtoViewRef
:
- ```
- Count: {{items.length}}
-
- ```
-
- Inner
ProtoViewRef
:
- ```
-
{{item}}
- ```
-
- Notice that the original template is broken down into two separate
ProtoViewRef
s.
-
-
+ Define angular core API here.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/core/QueryList-class.jade b/public/docs/js/latest/api/core/QueryList-class.jade
index 6a04dc1a58..60386d5d9e 100644
--- a/public/docs/js/latest/api/core/QueryList-class.jade
+++ b/public/docs/js/latest/api/core/QueryList-class.jade
@@ -1,80 +1,10 @@
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 and observable live list of components in the DOM.
-
- A QueryList contains a live list of child directives in the 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.
-
- QueryList is updated as part of the change-detection cycle of a directive. Since change detection
- happens after construction of a directive, QueryList will always be empty when observed in the
- constructor.
-
-
- NOTE: In the future this class will implement an `Observable` interface. For now it uses a plain
- list of observable callbacks.
-
- # Example:
-
- Assume that `
` component would like to get a list its children which are ``
- components as shown in this example:
-
- ```html
-
- ...
- {{o.text}}
-
- ```
-
- In the above example the list of `` elements needs to get a list of `` elements so
- that it could render tabs with the correct titles and in the correct order.
-
- A possible solution would be for a `` to inject `` component and then register itself
- with `` component's on `hydrate` and deregister on `dehydrate` event. While a reasonable
- approach, this would only work partialy since `*ng-for` could rearrange the list of ``
- components which would not be reported to `` component and thus the list of ``
- components would be out of sync with respect to the list of `` elements.
-
- A preferred solution is to inject a `QueryList` which is a live list of directives in the
- component`s light DOM.
-
- ```javascript
- @Component({
- selector: 'tabs'
- })
- @View({
- template: `
-
-
- `
- })
- class Tabs {
- panes: QueryList
-
- constructor(@Query(Pane) panes:QueryList) {
- this.panes = panes;
- }
- }
-
- @Component({
- selector: 'pane',
- properties: ['title']
- })
- @View(...)
- class Pane {
- title:string;
- }
- ```
-
-
+ Define angular core API here.
.l-main-section
h2 Members
.l-sub-section
@@ -83,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- reset(newList: List<T>)
+ reset(newList: T[])
:markdown
@@ -157,6 +87,22 @@ p.location-badge.
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
.l-sub-section
h3 length
diff --git a/public/docs/js/latest/api/core/TemplateRef-class.jade b/public/docs/js/latest/api/core/TemplateRef-class.jade
index f88d5abc73..2d4bb2b6ac 100644
--- a/public/docs/js/latest/api/core/TemplateRef-class.jade
+++ b/public/docs/js/latest/api/core/TemplateRef-class.jade
@@ -1,15 +1,10 @@
p.location-badge.
exported from angular2/core
- defined in angular2/src/core/compiler/template_ref.ts (line 3)
+ defined in angular2/src/core/compiler/template_ref.ts (line 3)
:markdown
- Reference to a template within a component.
-
- Represents an opaque reference to the underlying template that can
- be instantiated using the ViewContainerRef
.
-
-
+ Define angular core API here.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/core/Type-interface.jade b/public/docs/js/latest/api/core/Type-interface.jade
index 3afdfbe948..de82d1ef44 100644
--- a/public/docs/js/latest/api/core/Type-interface.jade
+++ b/public/docs/js/latest/api/core/Type-interface.jade
@@ -1,11 +1,7 @@
p.location-badge.
exported from angular2/core
- defined in angular2/src/facade/lang.ts (line 5)
+ defined in angular2/src/core/facade/lang.ts (line 23)
:markdown
- Runtime representation of a type.
-
- In JavaScript a Type is a constructor function.
-
-
+ Define angular core API here.
diff --git a/public/docs/js/latest/api/core/UrlResolver-class.jade b/public/docs/js/latest/api/core/UrlResolver-class.jade
index e26ca061c2..7047044ae4 100644
--- a/public/docs/js/latest/api/core/UrlResolver-class.jade
+++ b/public/docs/js/latest/api/core/UrlResolver-class.jade
@@ -1,16 +1,10 @@
p.location-badge.
exported from angular2/core
- defined in angular2/src/services/url_resolver.ts (line 9)
+ defined in angular2/src/core/services/url_resolver.ts (line 9)
:markdown
- Used by the Compiler
when resolving HTML and CSS template URLs.
-
- This interface can be overridden by the application developer to create custom behavior.
-
- See Compiler
-
-
+ Define angular core API here.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/core/ViewContainerRef-class.jade b/public/docs/js/latest/api/core/ViewContainerRef-class.jade
index 6b5587745d..53d27a4212 100644
--- a/public/docs/js/latest/api/core/ViewContainerRef-class.jade
+++ b/public/docs/js/latest/api/core/ViewContainerRef-class.jade
@@ -1,16 +1,10 @@
p.location-badge.
exported from angular2/core
- defined in angular2/src/core/compiler/view_container_ref.ts (line 10)
+ defined in angular2/src/core/compiler/view_container_ref.ts (line 10)
:markdown
- A location where ViewRef
s can be attached.
-
- A `ViewContainerRef` represents a location in a ViewRef
where other child
- ViewRef
s can be inserted. Adding and removing views is the only way of structurally
- changing the rendered DOM of the application.
-
-
+ Define angular core API here.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/core/ViewRef-class.jade b/public/docs/js/latest/api/core/ViewRef-class.jade
index c630674058..04578f86a1 100644
--- a/public/docs/js/latest/api/core/ViewRef-class.jade
+++ b/public/docs/js/latest/api/core/ViewRef-class.jade
@@ -1,60 +1,10 @@
p.location-badge.
exported from angular2/core
- defined in angular2/src/core/compiler/view_ref.ts (line 15)
+ defined in angular2/src/core/compiler/view_ref.ts (line 15)
:markdown
- A reference to an Angular View.
-
- A View is a fundamental building block of Application UI. A View is the smallest set of
- elements which are created and destroyed together. A View can change properties on the elements
- within the view, but it can not change the structure of those elements.
-
- To change structure of the elements, the Views can contain zero or more ViewContainerRef
s
- which allow the views to be nested.
-
- ## Example
-
- Given this template
-
- ```
- Count: {{items.length}}
-
- ```
-
- The above example we have two ProtoViewRef
s:
-
- Outter ProtoViewRef
:
- ```
- Count: {{items.length}}
-
- ```
-
- Inner ProtoViewRef
:
- ```
- {{item}}
- ```
-
- Notice that the original template is broken down into two separate ProtoViewRef
s.
-
- The outter/inner ProtoViewRef
s are then assembled into views like so:
-
- ```
-
- Count: 2
-
-
- ```
-
-
+ Define angular core API here.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/core/_data.json b/public/docs/js/latest/api/core/_data.json
index 569c6e0d4a..8a65dc6fc4 100644
--- a/public/docs/js/latest/api/core/_data.json
+++ b/public/docs/js/latest/api/core/_data.json
@@ -5,90 +5,91 @@
},
"APP_COMPONENT-const" : {
- "title" : "APP_COMPONENT Const"
- },
-
- "ApplicationRef-class" : {
- "title" : "ApplicationRef Class"
+ "title" : "APP_COMPONENT",
+ "varType" : "OpaqueToken"
},
"Type-interface" : {
- "title" : "Type Interface"
+ "title" : "Type"
+ },
+
+ "ApplicationRef-class" : {
+ "title" : "ApplicationRef"
},
"AppRootUrl-class" : {
- "title" : "AppRootUrl Class"
+ "title" : "AppRootUrl"
},
"UrlResolver-class" : {
- "title" : "UrlResolver Class"
+ "title" : "UrlResolver"
},
"ComponentUrlMapper-class" : {
- "title" : "ComponentUrlMapper Class"
+ "title" : "ComponentUrlMapper"
},
"DirectiveResolver-class" : {
- "title" : "DirectiveResolver Class"
+ "title" : "DirectiveResolver"
},
"Compiler-class" : {
- "title" : "Compiler Class"
+ "title" : "Compiler"
},
"AppViewManager-class" : {
- "title" : "AppViewManager Class"
+ "title" : "AppViewManager"
},
"QueryList-class" : {
- "title" : "QueryList Class"
+ "title" : "QueryList"
},
"DynamicComponentLoader-class" : {
- "title" : "DynamicComponentLoader Class"
+ "title" : "DynamicComponentLoader"
},
"LifeCycle-class" : {
- "title" : "LifeCycle Class"
+ "title" : "LifeCycle"
},
"ElementRef-class" : {
- "title" : "ElementRef Class"
+ "title" : "ElementRef"
},
"TemplateRef-class" : {
- "title" : "TemplateRef Class"
+ "title" : "TemplateRef"
},
"ViewRef-class" : {
- "title" : "ViewRef Class"
+ "title" : "ViewRef"
},
"HostViewRef-interface" : {
- "title" : "HostViewRef Interface"
+ "title" : "HostViewRef"
},
"ProtoViewRef-class" : {
- "title" : "ProtoViewRef Class"
+ "title" : "ProtoViewRef"
},
"ViewContainerRef-class" : {
- "title" : "ViewContainerRef Class"
+ "title" : "ViewContainerRef"
},
"ComponentRef-class" : {
- "title" : "ComponentRef Class"
+ "title" : "ComponentRef"
},
"NgZone-class" : {
- "title" : "NgZone Class"
+ "title" : "NgZone"
},
"Observable-class" : {
- "title" : "Observable Class"
+ "title" : "Observable"
},
"EventEmitter-class" : {
- "title" : "EventEmitter Class"
+ "title" : "EventEmitter"
}
-}
\ No newline at end of file
+}
diff --git a/public/docs/js/latest/api/core/index.jade b/public/docs/js/latest/api/core/index.jade
index d4fc0a637e..fbdf9dcfa5 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 115b19743b..b653b1e3f8 100644
--- a/public/docs/js/latest/api/di/AbstractBindingError-class.jade
+++ b/public/docs/js/latest/api/di/AbstractBindingError-class.jade
@@ -1,12 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 27)
+ defined in angular2/src/core/di/exceptions.ts (line 27)
:markdown
- Base class for all errors arising from misconfigured bindings.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/di/Binding-class.jade b/public/docs/js/latest/api/di/Binding-class.jade
index 4890535811..e9deeb0611 100644
--- a/public/docs/js/latest/api/di/Binding-class.jade
+++ b/public/docs/js/latest/api/di/Binding-class.jade
@@ -1,24 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/binding.ts (line 36)
+ defined in angular2/src/core/di/binding.ts (line 36)
:markdown
- Describes how_ the Injector
should instantiate a given token.
-
- See bind
.
-
- ## Example
-
- ```javascript
- var injector = Injector.resolveAndCreate([
- new Binding(String, { toValue: 'Hello' })
- ]);
-
- expect(injector.get(String)).toEqual('Hello');
- ```
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Annotations
@@ -38,7 +24,7 @@ p.location-badge.
pre.prettyprint
code.
constructor(token: any, {toClass, toValue, toAlias, toFactory, deps}:
- {toClass?: Type, toValue?: any, toAlias?: any, toFactory?: Function, deps?: List<any>})
+ {toClass?: Type, toValue?: any, toAlias?: any, toFactory?: Function, deps?: any[]})
:markdown
diff --git a/public/docs/js/latest/api/di/BindingBuilder-class.jade b/public/docs/js/latest/api/di/BindingBuilder-class.jade
index 34ce84477d..9bcf3f0983 100644
--- a/public/docs/js/latest/api/di/BindingBuilder-class.jade
+++ b/public/docs/js/latest/api/di/BindingBuilder-class.jade
@@ -1,12 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/binding.ts (line 258)
+ defined in angular2/src/core/di/binding.ts (line 258)
:markdown
- Helper class for the bind
function.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
@@ -160,7 +158,7 @@ p.location-badge.
pre.prettyprint
code.
- toFactory(factoryFunction: Function, dependencies?: List<any>)
+ toFactory(factoryFunction: Function, dependencies?: any[])
:markdown
Binds a key to a function which computes the value.
diff --git a/public/docs/js/latest/api/di/BindingWithVisibility-class.jade b/public/docs/js/latest/api/di/BindingWithVisibility-class.jade
index a64c72abf8..19e7eef5a0 100644
--- a/public/docs/js/latest/api/di/BindingWithVisibility-class.jade
+++ b/public/docs/js/latest/api/di/BindingWithVisibility-class.jade
@@ -1,11 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/injector.ts (line 360)
+ defined in angular2/src/core/di/injector.ts (line 360)
:markdown
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/di/CyclicDependencyError-class.jade b/public/docs/js/latest/api/di/CyclicDependencyError-class.jade
index 3f57a75cb7..2b4fa1d71e 100644
--- a/public/docs/js/latest/api/di/CyclicDependencyError-class.jade
+++ b/public/docs/js/latest/api/di/CyclicDependencyError-class.jade
@@ -1,25 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 71)
+ defined in angular2/src/core/di/exceptions.ts (line 71)
:markdown
- Thrown when dependencies form a cycle.
-
- ## Example:
-
- ```javascript
- class A {
- constructor(b:B) {}
- }
- class B {
- constructor(a:A) {}
- }
- ```
-
- Retrieving `A` or `B` throws a `CyclicDependencyError` as the graph above cannot be constructed.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/di/Dependency-class.jade b/public/docs/js/latest/api/di/Dependency-class.jade
index bb5416a6c9..b998772c38 100644
--- a/public/docs/js/latest/api/di/Dependency-class.jade
+++ b/public/docs/js/latest/api/di/Dependency-class.jade
@@ -1,10 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/binding.ts (line 24)
+ defined in angular2/src/core/di/binding.ts (line 24)
:markdown
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
@@ -13,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(key: Key, optional: boolean, lowerBoundVisibility: any, upperBoundVisibility: any, properties: List<any>)
+ constructor(key: Key, optional: boolean, lowerBoundVisibility: any, upperBoundVisibility: any, properties: any[])
:markdown
diff --git a/public/docs/js/latest/api/di/DependencyMetadata-class.jade b/public/docs/js/latest/api/di/DependencyMetadata-class.jade
index 7e402716c9..aaaf9b3738 100644
--- a/public/docs/js/latest/api/di/DependencyMetadata-class.jade
+++ b/public/docs/js/latest/api/di/DependencyMetadata-class.jade
@@ -1,35 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/metadata.ts (line 34)
+ defined in angular2/src/core/di/metadata.ts (line 34)
:markdown
- `DependencyMetadata is used by the framework to extend DI.
-
- Only metadata implementing `DependencyMetadata` are added to the list of dependency
- properties.
-
- For example:
-
- ```
- class Exclude extends DependencyMetadata {}
- class NotDependencyProperty {}
-
- class AComponent {
- constructor(@Exclude @NotDependencyProperty aService:AService) {}
- }
- ```
-
- will create the following dependency:
-
- ```
- new Dependency(Key.get(AService), [new Exclude()])
- ```
-
- The framework can use `new Exclude()` to handle the `aService` dependency
- in a specific way.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/di/DependencyProvider-interface.jade b/public/docs/js/latest/api/di/DependencyProvider-interface.jade
index 68e3953440..c6b49e7abc 100644
--- a/public/docs/js/latest/api/di/DependencyProvider-interface.jade
+++ b/public/docs/js/latest/api/di/DependencyProvider-interface.jade
@@ -1,12 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/injector.ts (line 366)
+ defined in angular2/src/core/di/injector.ts (line 366)
:markdown
- Used to provide dependencies that cannot be easily expressed as bindings.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/di/ForwardRefFn-interface.jade b/public/docs/js/latest/api/di/ForwardRefFn-interface.jade
index 9e7fa96ae6..7cbf495819 100644
--- a/public/docs/js/latest/api/di/ForwardRefFn-interface.jade
+++ b/public/docs/js/latest/api/di/ForwardRefFn-interface.jade
@@ -1,8 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/forward_ref.ts (line 1)
+ defined in angular2/src/core/di/forward_ref.ts (line 1)
:markdown
-
-
+ The `di` module provides dependency injection container services.
diff --git a/public/docs/js/latest/api/di/Host-var.jade b/public/docs/js/latest/api/di/Host-var.jade
index fadba3e2fc..993ebf8401 100644
--- a/public/docs/js/latest/api/di/Host-var.jade
+++ b/public/docs/js/latest/api/di/Host-var.jade
@@ -1,9 +1,8 @@
.l-main-section
- h2 Host variable
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/decorators.ts (line 82)
+ defined in angular2/src/core/di/decorators.ts (line 82)
:markdown
Factory for creating HostMetadata
.
diff --git a/public/docs/js/latest/api/di/HostFactory-interface.jade b/public/docs/js/latest/api/di/HostFactory-interface.jade
index 88e9a51039..3f4c84fe5a 100644
--- a/public/docs/js/latest/api/di/HostFactory-interface.jade
+++ b/public/docs/js/latest/api/di/HostFactory-interface.jade
@@ -1,9 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/decorators.ts (line 41)
+ defined in angular2/src/core/di/decorators.ts (line 41)
:markdown
- Factory for creating HostMetadata
.
-
-
+ The `di` module provides dependency injection container services.
diff --git a/public/docs/js/latest/api/di/HostMetadata-class.jade b/public/docs/js/latest/api/di/HostMetadata-class.jade
index 1343b84726..832305c57e 100644
--- a/public/docs/js/latest/api/di/HostMetadata-class.jade
+++ b/public/docs/js/latest/api/di/HostMetadata-class.jade
@@ -1,32 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/metadata.ts (line 138)
+ defined in angular2/src/core/di/metadata.ts (line 138)
:markdown
- Specifies that an injector should retrieve a dependency from any injector until reaching the
- closest host.
-
- ## Example
-
- ```
- class Dependency {
- }
-
- class NeedsDependency {
- constructor(public @Host() dependency:Dependency) {}
- }
-
- var parent = Injector.resolveAndCreate([
- bind(Dependency).toClass(HostDependency)
- ]);
- var child = parent.resolveAndCreateChild([]);
- var grandChild = child.resolveAndCreateChild([NeedsDependency, Depedency]);
- var nd = grandChild.get(NeedsDependency);
- expect(nd.dependency).toBeAnInstanceOf(HostDependency);
- ```
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/di/Inject-var.jade b/public/docs/js/latest/api/di/Inject-var.jade
index 0af210400c..6645c6158f 100644
--- a/public/docs/js/latest/api/di/Inject-var.jade
+++ b/public/docs/js/latest/api/di/Inject-var.jade
@@ -1,9 +1,8 @@
.l-main-section
- h2 Inject variable
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/decorators.ts (line 62)
+ defined in angular2/src/core/di/decorators.ts (line 62)
:markdown
Factory for creating InjectMetadata
.
diff --git a/public/docs/js/latest/api/di/InjectFactory-interface.jade b/public/docs/js/latest/api/di/InjectFactory-interface.jade
index 0f5c2ab031..3d14c9ee9e 100644
--- a/public/docs/js/latest/api/di/InjectFactory-interface.jade
+++ b/public/docs/js/latest/api/di/InjectFactory-interface.jade
@@ -1,9 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/decorators.ts (line 9)
+ defined in angular2/src/core/di/decorators.ts (line 9)
:markdown
- Factory for creating InjectMetadata
.
-
-
+ The `di` module provides dependency injection container services.
diff --git a/public/docs/js/latest/api/di/InjectMetadata-class.jade b/public/docs/js/latest/api/di/InjectMetadata-class.jade
index 7f5dd07841..017542f4e4 100644
--- a/public/docs/js/latest/api/di/InjectMetadata-class.jade
+++ b/public/docs/js/latest/api/di/InjectMetadata-class.jade
@@ -1,18 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/metadata.ts (line 1)
+ defined in angular2/src/core/di/metadata.ts (line 1)
:markdown
- A parameter metadata that specifies a dependency.
-
- ```
- class AComponent {
- constructor(@Inject(MyService) aService:MyService) {}
- }
- ```
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/di/Injectable-var.jade b/public/docs/js/latest/api/di/Injectable-var.jade
index 550e3b77db..35184c99fd 100644
--- a/public/docs/js/latest/api/di/Injectable-var.jade
+++ b/public/docs/js/latest/api/di/Injectable-var.jade
@@ -1,9 +1,8 @@
.l-main-section
- h2 Injectable variable
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/decorators.ts (line 72)
+ defined in angular2/src/core/di/decorators.ts (line 72)
:markdown
Factory for creating InjectableMetadata
.
diff --git a/public/docs/js/latest/api/di/InjectableFactory-interface.jade b/public/docs/js/latest/api/di/InjectableFactory-interface.jade
index 8e3a81ba20..05fac69c29 100644
--- a/public/docs/js/latest/api/di/InjectableFactory-interface.jade
+++ b/public/docs/js/latest/api/di/InjectableFactory-interface.jade
@@ -1,9 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/decorators.ts (line 25)
+ defined in angular2/src/core/di/decorators.ts (line 25)
:markdown
- Factory for creating InjectableMetadata
.
-
-
+ The `di` module provides dependency injection container services.
diff --git a/public/docs/js/latest/api/di/InjectableMetadata-class.jade b/public/docs/js/latest/api/di/InjectableMetadata-class.jade
index 8fb97a7b84..b5b85c6ee9 100644
--- a/public/docs/js/latest/api/di/InjectableMetadata-class.jade
+++ b/public/docs/js/latest/api/di/InjectableMetadata-class.jade
@@ -1,22 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/metadata.ts (line 65)
+ defined in angular2/src/core/di/metadata.ts (line 65)
:markdown
- A marker metadata that marks a class as available to `Injector` for creation. Used by tooling
- for generating constructor stubs.
-
- ```
- class NeedsService {
- constructor(svc:UsefulService) {}
- }
-
- @Injectable
- class UsefulService {}
- ```
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/di/Injector-class.jade b/public/docs/js/latest/api/di/Injector-class.jade
index e8af092d74..572216364b 100644
--- a/public/docs/js/latest/api/di/Injector-class.jade
+++ b/public/docs/js/latest/api/di/Injector-class.jade
@@ -1,47 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/injector.ts (line 373)
+ defined in angular2/src/core/di/injector.ts (line 373)
:markdown
- A dependency injection container used for resolving dependencies.
-
- An `Injector` is a replacement for a `new` operator, which can automatically resolve the
- constructor dependencies.
- In typical use, application code asks for the dependencies in the constructor and they are
- resolved by the `Injector`.
-
- ## Example:
-
- Suppose that we want to inject an `Engine` into class `Car`, we would define it like this:
-
- ```javascript
- class Engine {
- }
-
- class Car {
- constructor(@Inject(Engine) engine) {
- }
- }
-
- ```
-
- Next we need to write the code that creates and instantiates the `Injector`. We then ask for the
- `root` object, `Car`, so that the `Injector` can recursively build all of that object's
- dependencies.
-
- ```javascript
- main() {
- var injector = Injector.resolveAndCreate([Car, Engine]);
-
- // Get a reference to the `root` object, which will recursively instantiate the tree.
- var car = injector.get(Car);
- }
- ```
- Notice that we don't use the `new` operator because we explicitly want to have the `Injector`
- resolve all of the object's dependencies automatically.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
@@ -160,7 +123,7 @@ p.location-badge.
pre.prettyprint
code.
- resolveAndCreateChild(bindings: List<Type | Binding | List<any>>, depProvider?: DependencyProvider)
+ resolveAndCreateChild(bindings: Array<Type | Binding | any[]>, depProvider?: DependencyProvider)
:markdown
Creates a child injector and loads a new set of bindings into it.
@@ -180,7 +143,7 @@ p.location-badge.
pre.prettyprint
code.
- createChildFromResolved(bindings: List<ResolvedBinding>, depProvider?: DependencyProvider)
+ createChildFromResolved(bindings: ResolvedBinding[], depProvider?: DependencyProvider)
: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 79913d84a5..fef91ce781 100644
--- a/public/docs/js/latest/api/di/InstantiationError-class.jade
+++ b/public/docs/js/latest/api/di/InstantiationError-class.jade
@@ -1,15 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 95)
+ defined in angular2/src/core/di/exceptions.ts (line 95)
:markdown
- Thrown when a constructing type returns with an Error.
-
- The `InstantiationError` class contains the original error plus the dependency graph which caused
- this object to be instantiated.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/di/InvalidBindingError-class.jade b/public/docs/js/latest/api/di/InvalidBindingError-class.jade
index c4d8183a99..c7d184d375 100644
--- a/public/docs/js/latest/api/di/InvalidBindingError-class.jade
+++ b/public/docs/js/latest/api/di/InvalidBindingError-class.jade
@@ -1,13 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 113)
+ defined in angular2/src/core/di/exceptions.ts (line 113)
:markdown
- Thrown when an object other then Binding
(or `Type`) is passed to Injector
- creation.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/di/Key-class.jade b/public/docs/js/latest/api/di/Key-class.jade
index 63fc71103a..7b8261066c 100644
--- a/public/docs/js/latest/api/di/Key-class.jade
+++ b/public/docs/js/latest/api/di/Key-class.jade
@@ -1,19 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/key.ts (line 6)
+ defined in angular2/src/core/di/key.ts (line 6)
:markdown
- A unique object used for retrieving items from the Injector
.
-
- Keys have:
- - a system-wide unique `id`.
- - a `token`, usually the `Type` of the instance.
-
- Keys are used internally by the Injector
because their system-wide unique `id`s allow the
- injector to index in arrays rather than looking up items in maps.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
@@ -26,6 +17,7 @@ p.location-badge.
:markdown
+
diff --git a/public/docs/js/latest/api/di/KeyRegistry-class.jade b/public/docs/js/latest/api/di/KeyRegistry-class.jade
index c01ce53725..44f98a51af 100644
--- a/public/docs/js/latest/api/di/KeyRegistry-class.jade
+++ b/public/docs/js/latest/api/di/KeyRegistry-class.jade
@@ -1,10 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/key.ts (line 39)
+ defined in angular2/src/core/di/key.ts (line 36)
:markdown
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/di/NoAnnotationError-class.jade b/public/docs/js/latest/api/di/NoAnnotationError-class.jade
index 0046f10035..1151ad21de 100644
--- a/public/docs/js/latest/api/di/NoAnnotationError-class.jade
+++ b/public/docs/js/latest/api/di/NoAnnotationError-class.jade
@@ -1,15 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 128)
+ defined in angular2/src/core/di/exceptions.ts (line 128)
:markdown
- Thrown when the class has no annotation information.
-
- Lack of annotation information prevents the Injector
from determining which dependencies
- need to be injected into the constructor.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
@@ -18,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(typeOrFunc: any, params: List<List<any>>)
+ constructor(typeOrFunc: any, params: any[][])
:markdown
diff --git a/public/docs/js/latest/api/di/NoBindingError-class.jade b/public/docs/js/latest/api/di/NoBindingError-class.jade
index adee08492e..93f93f11da 100644
--- a/public/docs/js/latest/api/di/NoBindingError-class.jade
+++ b/public/docs/js/latest/api/di/NoBindingError-class.jade
@@ -1,13 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 58)
+ defined in angular2/src/core/di/exceptions.ts (line 58)
:markdown
- Thrown when trying to retrieve a dependency by `Key` from Injector
, but the
- Injector
does not have a Binding
for Key
.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/di/OpaqueToken-class.jade b/public/docs/js/latest/api/di/OpaqueToken-class.jade
index 50f81380f8..b4b20cecbe 100644
--- a/public/docs/js/latest/api/di/OpaqueToken-class.jade
+++ b/public/docs/js/latest/api/di/OpaqueToken-class.jade
@@ -1,11 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/opaque_token.ts (line 1)
+ defined in angular2/src/core/di/opaque_token.ts (line 1)
:markdown
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/di/Optional-var.jade b/public/docs/js/latest/api/di/Optional-var.jade
index cb4344f376..8fa5e561a1 100644
--- a/public/docs/js/latest/api/di/Optional-var.jade
+++ b/public/docs/js/latest/api/di/Optional-var.jade
@@ -1,9 +1,8 @@
.l-main-section
- h2 Optional variable
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/decorators.ts (line 67)
+ defined in angular2/src/core/di/decorators.ts (line 67)
:markdown
Factory for creating OptionalMetadata
.
diff --git a/public/docs/js/latest/api/di/OptionalFactory-interface.jade b/public/docs/js/latest/api/di/OptionalFactory-interface.jade
index edec71feda..20d5d91aa5 100644
--- a/public/docs/js/latest/api/di/OptionalFactory-interface.jade
+++ b/public/docs/js/latest/api/di/OptionalFactory-interface.jade
@@ -1,9 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/decorators.ts (line 17)
+ defined in angular2/src/core/di/decorators.ts (line 17)
:markdown
- Factory for creating OptionalMetadata
.
-
-
+ The `di` module provides dependency injection container services.
diff --git a/public/docs/js/latest/api/di/OptionalMetadata-class.jade b/public/docs/js/latest/api/di/OptionalMetadata-class.jade
index 4c36a3f3cd..80a399f72e 100644
--- a/public/docs/js/latest/api/di/OptionalMetadata-class.jade
+++ b/public/docs/js/latest/api/di/OptionalMetadata-class.jade
@@ -1,21 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/metadata.ts (line 17)
+ defined in angular2/src/core/di/metadata.ts (line 17)
:markdown
- A parameter metadata that marks a dependency as optional. Injector
provides `null` if
- the dependency is not found.
-
- ```
- class AComponent {
- constructor(@Optional() aService:MyService) {
- this.aService = aService;
- }
- }
- ```
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/di/OutOfBoundsError-class.jade b/public/docs/js/latest/api/di/OutOfBoundsError-class.jade
index 523011992b..779088ee2d 100644
--- a/public/docs/js/latest/api/di/OutOfBoundsError-class.jade
+++ b/public/docs/js/latest/api/di/OutOfBoundsError-class.jade
@@ -1,12 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/exceptions.ts (line 156)
+ defined in angular2/src/core/di/exceptions.ts (line 156)
:markdown
- Thrown when getting an object by index.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/di/ProtoInjector-class.jade b/public/docs/js/latest/api/di/ProtoInjector-class.jade
index bf1590c124..a9c05c1bb6 100644
--- a/public/docs/js/latest/api/di/ProtoInjector-class.jade
+++ b/public/docs/js/latest/api/di/ProtoInjector-class.jade
@@ -1,11 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/injector.ts (line 175)
+ defined in angular2/src/core/di/injector.ts (line 175)
:markdown
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/di/ResolvedBinding-class.jade b/public/docs/js/latest/api/di/ResolvedBinding-class.jade
index fef0816a77..a735cc212a 100644
--- a/public/docs/js/latest/api/di/ResolvedBinding-class.jade
+++ b/public/docs/js/latest/api/di/ResolvedBinding-class.jade
@@ -1,16 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/binding.ts (line 217)
+ defined in angular2/src/core/di/binding.ts (line 217)
:markdown
- An internal resolved representation of a Binding
used by the Injector
.
-
- A Binding
is resolved when it has a factory function. Binding to a class, alias, or
- value, are just convenience methods, as Injector
only operates on calling factory
- functions.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
@@ -19,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(key: Key, factory: Function, dependencies: List<Dependency>)
+ constructor(key: Key, factory: Function, dependencies: Dependency[])
:markdown
diff --git a/public/docs/js/latest/api/di/Self-var.jade b/public/docs/js/latest/api/di/Self-var.jade
index 1fdd653a1a..3a720c2d25 100644
--- a/public/docs/js/latest/api/di/Self-var.jade
+++ b/public/docs/js/latest/api/di/Self-var.jade
@@ -1,9 +1,8 @@
.l-main-section
- h2 Self variable
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/decorators.ts (line 77)
+ defined in angular2/src/core/di/decorators.ts (line 77)
:markdown
Factory for creating SelfMetadata
.
diff --git a/public/docs/js/latest/api/di/SelfFactory-interface.jade b/public/docs/js/latest/api/di/SelfFactory-interface.jade
index 1fe19f650c..609ae4354c 100644
--- a/public/docs/js/latest/api/di/SelfFactory-interface.jade
+++ b/public/docs/js/latest/api/di/SelfFactory-interface.jade
@@ -1,9 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/decorators.ts (line 33)
+ defined in angular2/src/core/di/decorators.ts (line 33)
:markdown
- Factory for creating SelfMetadata
.
-
-
+ The `di` module provides dependency injection container services.
diff --git a/public/docs/js/latest/api/di/SelfMetadata-class.jade b/public/docs/js/latest/api/di/SelfMetadata-class.jade
index 9d311ba020..7617987c6b 100644
--- a/public/docs/js/latest/api/di/SelfMetadata-class.jade
+++ b/public/docs/js/latest/api/di/SelfMetadata-class.jade
@@ -1,27 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/metadata.ts (line 83)
+ defined in angular2/src/core/di/metadata.ts (line 83)
:markdown
- Specifies that an injector should retrieve a dependency from itself.
-
- ## Example
-
- ```
- class Dependency {
- }
-
- class NeedsDependency {
- constructor(public @Self() dependency:Dependency) {}
- }
-
- var inj = Injector.resolveAndCreate([Dependency, NeedsDependency]);
- var nd = inj.get(NeedsDependency);
- expect(nd.dependency).toBeAnInstanceOf(Dependency);
- ```
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/di/SkipSelf-var.jade b/public/docs/js/latest/api/di/SkipSelf-var.jade
index 2c4c753c87..7ebef249fb 100644
--- a/public/docs/js/latest/api/di/SkipSelf-var.jade
+++ b/public/docs/js/latest/api/di/SkipSelf-var.jade
@@ -1,9 +1,8 @@
.l-main-section
- h2 SkipSelf variable
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/decorators.ts (line 87)
+ defined in angular2/src/core/di/decorators.ts (line 87)
:markdown
Factory for creating SkipSelfMetadata
.
diff --git a/public/docs/js/latest/api/di/SkipSelfFactory-interface.jade b/public/docs/js/latest/api/di/SkipSelfFactory-interface.jade
index edc172c6c5..e6f6c1674f 100644
--- a/public/docs/js/latest/api/di/SkipSelfFactory-interface.jade
+++ b/public/docs/js/latest/api/di/SkipSelfFactory-interface.jade
@@ -1,9 +1,7 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/decorators.ts (line 49)
+ defined in angular2/src/core/di/decorators.ts (line 49)
:markdown
- Factory for creating SkipSelfMetadata
.
-
-
+ The `di` module provides dependency injection container services.
diff --git a/public/docs/js/latest/api/di/SkipSelfMetadata-class.jade b/public/docs/js/latest/api/di/SkipSelfMetadata-class.jade
index 65ed6be967..e849d31775 100644
--- a/public/docs/js/latest/api/di/SkipSelfMetadata-class.jade
+++ b/public/docs/js/latest/api/di/SkipSelfMetadata-class.jade
@@ -1,36 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/metadata.ts (line 106)
+ defined in angular2/src/core/di/metadata.ts (line 106)
:markdown
- Specifies that the dependency resolution should start from the parent injector.
-
- ## Example
-
-
- ```
- class Service {}
-
- class ParentService implements Service {
- }
-
- class ChildService implements Service {
- constructor(public @SkipSelf() parentService:Service) {}
- }
-
- var parent = Injector.resolveAndCreate([
- bind(Service).toClass(ParentService)
- ]);
- var child = parent.resolveAndCreateChild([
- bind(Service).toClass(ChildSerice)
- ]);
- var s = child.get(Service);
- expect(s).toBeAnInstanceOf(ChildService);
- expect(s.parentService).toBeAnInstanceOf(ParentService);
- ```
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/di/TypeLiteral-class.jade b/public/docs/js/latest/api/di/TypeLiteral-class.jade
index 1d63ab30a3..5d134b9f12 100644
--- a/public/docs/js/latest/api/di/TypeLiteral-class.jade
+++ b/public/docs/js/latest/api/di/TypeLiteral-class.jade
@@ -1,13 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/type_literal.ts (line 1)
+ defined in angular2/src/core/di/type_literal.ts (line 1)
:markdown
- Type literals is a Dart-only feature. This is here only so we can x-compile
- to multiple languages.
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/di/UNDEFINED-const.jade b/public/docs/js/latest/api/di/UNDEFINED-const.jade
index 147c48547e..88352dad21 100644
--- a/public/docs/js/latest/api/di/UNDEFINED-const.jade
+++ b/public/docs/js/latest/api/di/UNDEFINED-const.jade
@@ -1,9 +1,8 @@
.l-main-section
- h2 UNDEFINED variable
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/injector.ts (line 19)
+ defined in angular2/src/core/di/injector.ts (line 19)
:markdown
diff --git a/public/docs/js/latest/api/di/Visibility-enum.jade b/public/docs/js/latest/api/di/Visibility-enum.jade
index 6ebefe1f54..a68dc16433 100644
--- a/public/docs/js/latest/api/di/Visibility-enum.jade
+++ b/public/docs/js/latest/api/di/Visibility-enum.jade
@@ -1,11 +1,10 @@
p.location-badge.
exported from angular2/di
- defined in angular2/src/di/injector.ts (line 19)
+ defined in angular2/src/core/di/injector.ts (line 19)
:markdown
-
-
+ The `di` module provides dependency injection container services.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/di/_data.json b/public/docs/js/latest/api/di/_data.json
index eb9956557e..8b879e0558 100644
--- a/public/docs/js/latest/api/di/_data.json
+++ b/public/docs/js/latest/api/di/_data.json
@@ -5,178 +5,185 @@
},
"InjectMetadata-class" : {
- "title" : "InjectMetadata Class"
+ "title" : "InjectMetadata"
},
"OptionalMetadata-class" : {
- "title" : "OptionalMetadata Class"
+ "title" : "OptionalMetadata"
},
"InjectableMetadata-class" : {
- "title" : "InjectableMetadata Class"
+ "title" : "InjectableMetadata"
},
"SelfMetadata-class" : {
- "title" : "SelfMetadata Class"
+ "title" : "SelfMetadata"
},
"HostMetadata-class" : {
- "title" : "HostMetadata Class"
+ "title" : "HostMetadata"
},
"SkipSelfMetadata-class" : {
- "title" : "SkipSelfMetadata Class"
+ "title" : "SkipSelfMetadata"
},
"DependencyMetadata-class" : {
- "title" : "DependencyMetadata Class"
+ "title" : "DependencyMetadata"
},
"forwardRef-function" : {
- "title" : "forwardRef Function"
+ "title" : "forwardRef"
},
"resolveForwardRef-function" : {
- "title" : "resolveForwardRef Function"
+ "title" : "resolveForwardRef"
},
"ForwardRefFn-interface" : {
- "title" : "ForwardRefFn Interface"
+ "title" : "ForwardRefFn"
},
"Injector-class" : {
- "title" : "Injector Class"
+ "title" : "Injector"
},
"ProtoInjector-class" : {
- "title" : "ProtoInjector Class"
+ "title" : "ProtoInjector"
},
"BindingWithVisibility-class" : {
- "title" : "BindingWithVisibility Class"
+ "title" : "BindingWithVisibility"
},
"DependencyProvider-interface" : {
- "title" : "DependencyProvider Interface"
+ "title" : "DependencyProvider"
},
"Visibility-enum" : {
- "title" : "Visibility Enum"
+ "title" : "Visibility"
},
"UNDEFINED-const" : {
- "title" : "UNDEFINED Const"
+ "title" : "UNDEFINED",
+ "varType" : "Object"
},
"Binding-class" : {
- "title" : "Binding Class"
+ "title" : "Binding"
},
"BindingBuilder-class" : {
- "title" : "BindingBuilder Class"
+ "title" : "BindingBuilder"
},
"ResolvedBinding-class" : {
- "title" : "ResolvedBinding Class"
+ "title" : "ResolvedBinding"
},
"Dependency-class" : {
- "title" : "Dependency Class"
+ "title" : "Dependency"
},
"bind-function" : {
- "title" : "bind Function"
+ "title" : "bind"
},
"Key-class" : {
- "title" : "Key Class"
+ "title" : "Key"
},
"KeyRegistry-class" : {
- "title" : "KeyRegistry Class"
+ "title" : "KeyRegistry"
},
"TypeLiteral-class" : {
- "title" : "TypeLiteral Class"
+ "title" : "TypeLiteral"
},
"NoBindingError-class" : {
- "title" : "NoBindingError Class"
+ "title" : "NoBindingError"
},
"AbstractBindingError-class" : {
- "title" : "AbstractBindingError Class"
+ "title" : "AbstractBindingError"
},
"CyclicDependencyError-class" : {
- "title" : "CyclicDependencyError Class"
+ "title" : "CyclicDependencyError"
},
"InstantiationError-class" : {
- "title" : "InstantiationError Class"
+ "title" : "InstantiationError"
},
"InvalidBindingError-class" : {
- "title" : "InvalidBindingError Class"
+ "title" : "InvalidBindingError"
},
"NoAnnotationError-class" : {
- "title" : "NoAnnotationError Class"
+ "title" : "NoAnnotationError"
},
"OutOfBoundsError-class" : {
- "title" : "OutOfBoundsError Class"
+ "title" : "OutOfBoundsError"
},
"OpaqueToken-class" : {
- "title" : "OpaqueToken Class"
+ "title" : "OpaqueToken"
},
"InjectFactory-interface" : {
- "title" : "InjectFactory Interface"
+ "title" : "InjectFactory"
},
"OptionalFactory-interface" : {
- "title" : "OptionalFactory Interface"
+ "title" : "OptionalFactory"
},
"InjectableFactory-interface" : {
- "title" : "InjectableFactory Interface"
+ "title" : "InjectableFactory"
},
"SelfFactory-interface" : {
- "title" : "SelfFactory Interface"
+ "title" : "SelfFactory"
},
"HostFactory-interface" : {
- "title" : "HostFactory Interface"
+ "title" : "HostFactory"
},
"SkipSelfFactory-interface" : {
- "title" : "SkipSelfFactory Interface"
+ "title" : "SkipSelfFactory"
},
"Inject-var" : {
- "title" : "Inject Var"
+ "title" : "Inject",
+ "varType" : "InjectFactory"
},
"Optional-var" : {
- "title" : "Optional Var"
+ "title" : "Optional",
+ "varType" : "OptionalFactory"
},
"Injectable-var" : {
- "title" : "Injectable Var"
+ "title" : "Injectable",
+ "varType" : "InjectableFactory"
},
"Self-var" : {
- "title" : "Self Var"
+ "title" : "Self",
+ "varType" : "SelfFactory"
},
"Host-var" : {
- "title" : "Host Var"
+ "title" : "Host",
+ "varType" : "HostFactory"
},
"SkipSelf-var" : {
- "title" : "SkipSelf Var"
+ "title" : "SkipSelf",
+ "varType" : "SkipSelfFactory"
}
-}
\ No newline at end of file
+}
diff --git a/public/docs/js/latest/api/di/bind-function.jade b/public/docs/js/latest/api/di/bind-function.jade
index f8c2721069..6521640624 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 242)
+ defined in angular2/src/core/di/binding.ts (line 242)
: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 77c90c482a..683da90689 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/core/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 121d8e3528..d84d192266 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/resolveForwardRef-function.jade b/public/docs/js/latest/api/di/resolveForwardRef-function.jade
index 7e89fcb032..d60fad6725 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 33)
+ defined in angular2/src/core/di/forward_ref.ts (line 33)
:markdown
Lazily retrieve the reference value.
diff --git a/public/docs/js/latest/api/directives/CORE_DIRECTIVES-const.jade b/public/docs/js/latest/api/directives/CORE_DIRECTIVES-const.jade
index 10f54d8b7c..99c1e16def 100644
--- a/public/docs/js/latest/api/directives/CORE_DIRECTIVES-const.jade
+++ b/public/docs/js/latest/api/directives/CORE_DIRECTIVES-const.jade
@@ -1,9 +1,8 @@
.l-main-section
- h2 CORE_DIRECTIVES variable
p.location-badge.
exported from angular2/directives
- defined in angular2/directives.ts (line 63)
+ 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
@@ -14,7 +13,7 @@
instead of writing:
```
- import {If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/angular2';
+ import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/angular2';
import {OtherDirective} from 'myDirectives';
@Component({
@@ -22,16 +21,16 @@
})
@View({
templateUrl: 'myComponent.html',
- directives: [If, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective]
+ directives: [NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective]
})
export class MyComponent {
...
}
```
- one could enumerate all the core directives at once:
+ one could import all the core directives at once:
```
- import {coreDirectives} from 'angular2/angular2';
+ import {CORE_DIRECTIVES} from 'angular2/angular2';
import {OtherDirective} from 'myDirectives';
@Component({
@@ -39,7 +38,7 @@
})
@View({
templateUrl: 'myComponent.html',
- directives: [coreDirectives, OtherDirective]
+ directives: [CORE_DIRECTIVES, OtherDirective]
})
export class MyComponent {
...
diff --git a/public/docs/js/latest/api/directives/NgClass-class.jade b/public/docs/js/latest/api/directives/NgClass-class.jade
index 0df1a10df2..284ebc5b77 100644
--- a/public/docs/js/latest/api/directives/NgClass-class.jade
+++ b/public/docs/js/latest/api/directives/NgClass-class.jade
@@ -1,29 +1,10 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_class.ts (line 11)
+ defined in angular2/src/core/directives/ng_class.ts (line 15)
:markdown
- Adds and removes CSS classes based on an {expression} value.
-
- The result of expression is used to add and remove CSS classes using the following logic,
- based on expression's value type:
- - {string} - all the CSS classes (space - separated) are added
- - {Array} - all the CSS classes (Array elements) are added
- - {Object} - each key corresponds to a CSS class name while values
- are interpreted as {boolean} expression. If a given expression
- evaluates to {true} a corresponding CSS class is added - otherwise
- it is removed.
-
- # Example:
-
- ```
- 0}">
- Please check errors.
-
- ```
-
-
+ Common directives shipped with Angular.
.l-main-section
h2 Annotations
@@ -33,7 +14,7 @@ p.location-badge.
code.
@Directive({
selector: '[ng-class]',
- lifecycle: [LifecycleEvent.onCheck, LifecycleEvent.onDestroy],
+ lifecycle: [LifecycleEvent.DoCheck, LifecycleEvent.OnDestroy],
properties: ['rawClass: ng-class', 'initialClasses: class']
})
@@ -80,12 +61,12 @@ p.location-badge.
.l-sub-section
- h3 onCheck
+ h3 doCheck
pre.prettyprint
code.
- onCheck()
+ doCheck()
:markdown
diff --git a/public/docs/js/latest/api/directives/NgFor-class.jade b/public/docs/js/latest/api/directives/NgFor-class.jade
index 874dffc9f0..ed46f75eea 100644
--- a/public/docs/js/latest/api/directives/NgFor-class.jade
+++ b/public/docs/js/latest/api/directives/NgFor-class.jade
@@ -1,39 +1,10 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_for.ts (line 4)
+ defined in angular2/src/core/directives/ng_for.ts (line 4)
:markdown
- The `NgFor` directive instantiates a template once per item from an iterable. The context for
- each instantiated template inherits from the outer context with the given loop variable set
- to the current item from the iterable.
-
- It is possible to alias the `index` to a local variable that will be set to the current loop
- iteration in the template context.
-
- When the contents of the iterator changes, `NgFor` makes the corresponding changes to the DOM:
-
- * When an item is added, a new instance of the template is added to the DOM.
- * When an item is removed, its template instance is removed from the DOM.
- * When items are reordered, their respective templates are reordered in the DOM.
-
- # Example
-
- ```
-
-
- Error {{i}} of {{errors.length}}: {{error.message}}
-
-
- ```
-
- # Syntax
-
- - `... `
- - `... `
- - `... `
-
-
+ Common directives shipped with Angular.
.l-main-section
h2 Annotations
@@ -41,7 +12,7 @@ p.location-badge.
h3.annotation Directive
pre.prettyprint
code.
- @Directive({selector: '[ng-for][ng-for-of]', properties: ['ngForOf'], lifecycle: [LifecycleEvent.onCheck]})
+ @Directive({selector: '[ng-for][ng-for-of]', properties: ['ngForOf'], lifecycle: [LifecycleEvent.DoCheck]})
.l-main-section
@@ -122,12 +93,12 @@ p.location-badge.
.l-sub-section
- h3 onCheck
+ h3 doCheck
pre.prettyprint
code.
- onCheck()
+ doCheck()
:markdown
diff --git a/public/docs/js/latest/api/directives/NgIf-class.jade b/public/docs/js/latest/api/directives/NgIf-class.jade
index e411c8058d..e2f49f7200 100644
--- a/public/docs/js/latest/api/directives/NgIf-class.jade
+++ b/public/docs/js/latest/api/directives/NgIf-class.jade
@@ -1,31 +1,10 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_if.ts (line 3)
+ defined in angular2/src/core/directives/ng_if.ts (line 3)
:markdown
- Removes or recreates a portion of the DOM tree based on an {expression}.
-
- If the expression assigned to `ng-if` evaluates to a false value then the element
- is removed from the DOM, otherwise a clone of the element is reinserted into the DOM.
-
- # Example:
-
- ```
- 0" class="error">
-
- {{errorCount}} errors detected
-
- ```
-
- # Syntax
-
- - `...
`
- - `...
`
- - `...
`
-
-
+ Common directives shipped with Angular.
.l-main-section
h2 Annotations
@@ -44,7 +23,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef)
+ constructor(_viewContainer: ViewContainerRef, _templateRef: TemplateRef)
:markdown
@@ -53,42 +32,6 @@ p.location-badge.
- .l-sub-section
- h3 viewContainer
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 templateRef
-
-
- :markdown
-
-
-
-
-
-
-
- .l-sub-section
- h3 prevCondition
-
-
- :markdown
-
-
-
-
-
-
-
.l-sub-section
h3 ngIf
diff --git a/public/docs/js/latest/api/directives/NgNonBindable-class.jade b/public/docs/js/latest/api/directives/NgNonBindable-class.jade
index bf3177cde9..fadf1e6831 100644
--- a/public/docs/js/latest/api/directives/NgNonBindable-class.jade
+++ b/public/docs/js/latest/api/directives/NgNonBindable-class.jade
@@ -1,22 +1,10 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_non_bindable.ts (line 1)
+ defined in angular2/src/core/directives/ng_non_bindable.ts (line 1)
:markdown
- The `NgNonBindable` directive tells Angular not to compile or bind the contents of the current
- DOM element. This is useful if the element contains what appears to be Angular directives and
- bindings but which should be ignored by Angular. This could be the case if you have a site that
- displays snippets of code, for instance.
-
- Example:
-
- ```
- Normal: {{1 + 2}}
// output "Normal: 3"
- Ignored: {{1 + 2}}
// output "Ignored: {{1 + 2}}"
- ```
-
-
+ Common directives shipped with Angular.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/directives/NgStyle-class.jade b/public/docs/js/latest/api/directives/NgStyle-class.jade
index d7f09d22d1..c886efd01a 100644
--- a/public/docs/js/latest/api/directives/NgStyle-class.jade
+++ b/public/docs/js/latest/api/directives/NgStyle-class.jade
@@ -1,30 +1,10 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_style.ts (line 5)
+ defined in angular2/src/core/directives/ng_style.ts (line 5)
:markdown
- Adds or removes styles based on an {expression}.
-
- When the expression assigned to `ng-style` evaluates to an object, the corresponding element
- styles are updated. Style names to update are taken from the object keys and values - from the
- corresponding object values.
-
- # Example:
-
- ```
-
- ```
-
- In the above example the `text-align` style will be updated based on the `alignEpr` value
- changes.
-
- # Syntax
-
- - `
`
- - `
`
-
-
+ Common directives shipped with Angular.
.l-main-section
h2 Annotations
@@ -34,7 +14,7 @@ p.location-badge.
code.
@Directive({
selector: '[ng-style]',
- lifecycle: [LifecycleEvent.onCheck],
+ lifecycle: [LifecycleEvent.DoCheck],
properties: ['rawStyle: ng-style']
})
@@ -69,12 +49,12 @@ p.location-badge.
.l-sub-section
- h3 onCheck
+ h3 doCheck
pre.prettyprint
code.
- onCheck()
+ doCheck()
:markdown
diff --git a/public/docs/js/latest/api/directives/NgSwitch-class.jade b/public/docs/js/latest/api/directives/NgSwitch-class.jade
index 004d25488d..5ddaaff4b8 100644
--- a/public/docs/js/latest/api/directives/NgSwitch-class.jade
+++ b/public/docs/js/latest/api/directives/NgSwitch-class.jade
@@ -1,34 +1,10 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_switch.ts (line 19)
+ defined in angular2/src/core/directives/ng_switch.ts (line 15)
:markdown
- The `NgSwitch` directive is used to conditionally swap DOM structure on your template based on a
- scope expression.
- Elements within `NgSwitch` but without `NgSwitchWhen` or `NgSwitchDefault` directives will be
- preserved at the location as specified in the template.
-
- `NgSwitch` simply chooses nested elements and makes them visible based on which element matches
- the value obtained from the evaluated expression. In other words, you define a container element
- (where you place the directive), place an expression on the **`[ng-switch]="..."` attribute**),
- define any inner elements inside of the directive and place a `[ng-switch-when]` attribute per
- element.
- The when attribute is used to inform NgSwitch which element to display when the expression is
- evaluated. If a matching expression is not found via a when attribute then an element with the
- default attribute is displayed.
-
- # Example:
-
- ```
-
- ...
- ...
- ...
-
- ```
-
-
+ Common directives shipped with Angular.
.l-main-section
h2 Annotations
@@ -41,21 +17,6 @@ p.location-badge.
.l-main-section
h2 Members
- .l-sub-section
- h3 constructor
-
-
- pre.prettyprint
- code.
- constructor()
-
- :markdown
-
-
-
-
-
-
.l-sub-section
h3 ngSwitch
diff --git a/public/docs/js/latest/api/directives/NgSwitchDefault-class.jade b/public/docs/js/latest/api/directives/NgSwitchDefault-class.jade
index 245a41cf4b..0b829baeea 100644
--- a/public/docs/js/latest/api/directives/NgSwitchDefault-class.jade
+++ b/public/docs/js/latest/api/directives/NgSwitchDefault-class.jade
@@ -1,20 +1,10 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_switch.ts (line 173)
+ defined in angular2/src/core/directives/ng_switch.ts (line 157)
:markdown
- Defines a default case statement.
-
- Default case statements are displayed when no `NgSwitchWhen` match the `ng-switch` value.
-
- Example:
-
- ```
- ...
- ```
-
-
+ Common directives shipped with Angular.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/directives/NgSwitchWhen-class.jade b/public/docs/js/latest/api/directives/NgSwitchWhen-class.jade
index 70f5286983..4a09658ecf 100644
--- a/public/docs/js/latest/api/directives/NgSwitchWhen-class.jade
+++ b/public/docs/js/latest/api/directives/NgSwitchWhen-class.jade
@@ -1,24 +1,10 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_switch.ts (line 135)
+ defined in angular2/src/core/directives/ng_switch.ts (line 125)
:markdown
- Defines a case statement as an expression.
-
- If multiple `NgSwitchWhen` match the `NgSwitch` value, all of them are displayed.
-
- Example:
-
- ```
- // match against a context variable
- ...
-
- // match against a constant string
- ...
- ```
-
-
+ Common directives shipped with Angular.
.l-main-section
h2 Annotations
@@ -37,7 +23,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef, sswitch: NgSwitch)
+ constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef, _switch: NgSwitch)
:markdown
@@ -46,22 +32,6 @@ p.location-badge.
- .l-sub-section
- h3 onDestroy
-
-
- pre.prettyprint
- code.
- onDestroy()
-
- :markdown
-
-
-
-
-
-
-
.l-sub-section
h3 ngSwitchWhen
diff --git a/public/docs/js/latest/api/directives/RecordViewTuple-class.jade b/public/docs/js/latest/api/directives/RecordViewTuple-class.jade
index 634591054e..80489bae7d 100644
--- a/public/docs/js/latest/api/directives/RecordViewTuple-class.jade
+++ b/public/docs/js/latest/api/directives/RecordViewTuple-class.jade
@@ -1,11 +1,10 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_for.ts (line 116)
+ defined in angular2/src/core/directives/ng_for.ts (line 115)
:markdown
-
-
+ Common directives shipped with Angular.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/directives/SwitchView-class.jade b/public/docs/js/latest/api/directives/SwitchView-class.jade
index 4735c51d65..c0cfe34ce2 100644
--- a/public/docs/js/latest/api/directives/SwitchView-class.jade
+++ b/public/docs/js/latest/api/directives/SwitchView-class.jade
@@ -1,11 +1,10 @@
p.location-badge.
exported from angular2/directives
- defined in angular2/src/directives/ng_switch.ts (line 5)
+ defined in angular2/src/core/directives/ng_switch.ts (line 7)
:markdown
-
-
+ Common directives shipped with Angular.
.l-main-section
h2 Members
.l-sub-section
@@ -14,7 +13,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(viewContainerRef: ViewContainerRef, templateRef: TemplateRef)
+ constructor(_viewContainerRef: ViewContainerRef, _templateRef: TemplateRef)
:markdown
diff --git a/public/docs/js/latest/api/directives/_data.json b/public/docs/js/latest/api/directives/_data.json
index 7baf03e6d7..796f9c89ac 100644
--- a/public/docs/js/latest/api/directives/_data.json
+++ b/public/docs/js/latest/api/directives/_data.json
@@ -5,46 +5,46 @@
},
"CORE_DIRECTIVES-const" : {
- "title" : "CORE_DIRECTIVES Const"
+ "title" : "CORE_DIRECTIVES"
},
"NgClass-class" : {
- "title" : "NgClass Class"
+ "title" : "NgClass"
},
"NgFor-class" : {
- "title" : "NgFor Class"
+ "title" : "NgFor"
},
"RecordViewTuple-class" : {
- "title" : "RecordViewTuple Class"
+ "title" : "RecordViewTuple"
},
"NgIf-class" : {
- "title" : "NgIf Class"
+ "title" : "NgIf"
},
"NgNonBindable-class" : {
- "title" : "NgNonBindable Class"
+ "title" : "NgNonBindable"
},
"NgStyle-class" : {
- "title" : "NgStyle Class"
+ "title" : "NgStyle"
},
"SwitchView-class" : {
- "title" : "SwitchView Class"
+ "title" : "SwitchView"
},
"NgSwitch-class" : {
- "title" : "NgSwitch Class"
+ "title" : "NgSwitch"
},
"NgSwitchWhen-class" : {
- "title" : "NgSwitchWhen Class"
+ "title" : "NgSwitchWhen"
},
"NgSwitchDefault-class" : {
- "title" : "NgSwitchDefault Class"
+ "title" : "NgSwitchDefault"
}
-}
\ No newline at end of file
+}
diff --git a/public/docs/js/latest/api/directives/index.jade b/public/docs/js/latest/api/directives/index.jade
index f18ef0ec3c..bcb8ad90d5 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 60d017015f..30edbc9c18 100644
--- a/public/docs/js/latest/api/forms/AbstractControl-class.jade
+++ b/public/docs/js/latest/api/forms/AbstractControl-class.jade
@@ -1,12 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/model.ts (line 37)
+ defined in angular2/src/forms/model.ts (line 37)
:markdown
- Omitting from external API doc as this is really an abstract internal concept.
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Members
.l-sub-section
@@ -230,7 +235,7 @@ p.location-badge.
pre.prettyprint
code.
- find(path: List<string | number>| string)
+ find(path: Array<string | number>| string)
:markdown
@@ -246,7 +251,7 @@ p.location-badge.
pre.prettyprint
code.
- getError(errorCode: string, path?: List<string>)
+ getError(errorCode: string, path?: string[])
:markdown
@@ -262,7 +267,7 @@ p.location-badge.
pre.prettyprint
code.
- hasError(errorCode: string, path?: List<string>)
+ hasError(errorCode: string, path?: string[])
:markdown
diff --git a/public/docs/js/latest/api/forms/AbstractControlDirective-class.jade b/public/docs/js/latest/api/forms/AbstractControlDirective-class.jade
index 4bd7ed8a5e..d17683155b 100644
--- a/public/docs/js/latest/api/forms/AbstractControlDirective-class.jade
+++ b/public/docs/js/latest/api/forms/AbstractControlDirective-class.jade
@@ -1,11 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/abstract_control_directive.ts (line 1)
+ defined in angular2/src/forms/directives/abstract_control_directive.ts (line 1)
:markdown
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
-
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade b/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade
index ebaa18e9c1..85a8083544 100644
--- a/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade
+++ b/public/docs/js/latest/api/forms/CheckboxControlValueAccessor-class.jade
@@ -1,17 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/checkbox_value_accessor.ts (line 9)
+ defined in angular2/src/forms/directives/checkbox_value_accessor.ts (line 9)
:markdown
- The accessor for writing a value and listening to changes on a checkbox input element.
-
- # Example
- ```
-
- ```
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/forms/Control-class.jade b/public/docs/js/latest/api/forms/Control-class.jade
index 1d1d49ea6a..559c3f33f7 100644
--- a/public/docs/js/latest/api/forms/Control-class.jade
+++ b/public/docs/js/latest/api/forms/Control-class.jade
@@ -1,16 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/model.ts (line 135)
+ defined in angular2/src/forms/model.ts (line 135)
:markdown
- Defines a part of a form that cannot be divided into other controls.
-
- `Control` is one of the three fundamental building blocks used to define forms in Angular, along
- with
- ControlGroup
and ControlArray
.
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/forms/ControlArray-class.jade b/public/docs/js/latest/api/forms/ControlArray-class.jade
index c65ec6b19b..8eb07aa547 100644
--- a/public/docs/js/latest/api/forms/ControlArray-class.jade
+++ b/public/docs/js/latest/api/forms/ControlArray-class.jade
@@ -1,22 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/model.ts (line 249)
+ defined in angular2/src/forms/model.ts (line 249)
:markdown
- Defines a part of a form, of variable length, that can contain other controls.
-
- A `ControlArray` aggregates the values and errors of each Control
in the group. Thus, if
- one of the controls
- in a group is invalid, the entire group is invalid. Similarly, if a control changes its value,
- the entire group
- changes as well.
-
- `ControlArray` is one of the three fundamental building blocks used to define forms in Angular,
- along with Control
and ControlGroup
. ControlGroup
can also contain
- other controls, but is of fixed length.
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Members
.l-sub-section
@@ -25,7 +20,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(controls: List<AbstractControl>, validator?: Function)
+ constructor(controls: AbstractControl[], validator?: Function)
:markdown
diff --git a/public/docs/js/latest/api/forms/ControlContainer-class.jade b/public/docs/js/latest/api/forms/ControlContainer-class.jade
index db6d13c527..d8ee3435e2 100644
--- a/public/docs/js/latest/api/forms/ControlContainer-class.jade
+++ b/public/docs/js/latest/api/forms/ControlContainer-class.jade
@@ -1,14 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/control_container.ts (line 3)
+ defined in angular2/src/forms/directives/control_container.ts (line 2)
:markdown
- A directive that contains a group of [NgControl].
-
- Only used by the forms module.
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/forms/ControlGroup-class.jade b/public/docs/js/latest/api/forms/ControlGroup-class.jade
index d7afbd0c30..e988f0ace3 100644
--- a/public/docs/js/latest/api/forms/ControlGroup-class.jade
+++ b/public/docs/js/latest/api/forms/ControlGroup-class.jade
@@ -1,24 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/model.ts (line 165)
+ defined in angular2/src/forms/model.ts (line 165)
:markdown
- Defines a part of a form, of fixed length, that can contain other controls.
-
- A ControlGroup aggregates the values and errors of each Control
in the group. Thus, if
- one of the controls
- in a group is invalid, the entire group is invalid. Similarly, if a control changes its value,
- the entire group
- changes as well.
-
- `ControlGroup` is one of the three fundamental building blocks used to define forms in Angular,
- along with
- Control
and ControlArray
. ControlArray
can also contain other controls,
- but is of variable
- length.
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Members
.l-sub-section
@@ -27,7 +20,7 @@ p.location-badge.
pre.prettyprint
code.
- constructor(controls: StringMap<String, AbstractControl>, optionals?: StringMap<String, boolean>, validator?: Function)
+ constructor(controls: StringMap<string, AbstractControl>, optionals?: StringMap<string, boolean>, validator?: Function)
:markdown
diff --git a/public/docs/js/latest/api/forms/ControlValueAccessor-interface.jade b/public/docs/js/latest/api/forms/ControlValueAccessor-interface.jade
index 99deb8c136..0f77b15319 100644
--- a/public/docs/js/latest/api/forms/ControlValueAccessor-interface.jade
+++ b/public/docs/js/latest/api/forms/ControlValueAccessor-interface.jade
@@ -1,14 +1,17 @@
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.
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade b/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade
index 3055a3aceb..2208a4dca6 100644
--- a/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade
+++ b/public/docs/js/latest/api/forms/DefaultValueAccessor-class.jade
@@ -1,18 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/default_value_accessor.ts (line 8)
+ defined in angular2/src/forms/directives/default_value_accessor.ts (line 8)
:markdown
- The default accessor for writing a value and listening to changes that is used by the
- NgModel
, NgFormControl
, and NgControlName
directives.
-
- # Example
- ```
-
- ```
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/forms/FORM_BINDINGS-const.jade b/public/docs/js/latest/api/forms/FORM_BINDINGS-const.jade
index f19b0d27e9..77cc42e3a1 100644
--- a/public/docs/js/latest/api/forms/FORM_BINDINGS-const.jade
+++ b/public/docs/js/latest/api/forms/FORM_BINDINGS-const.jade
@@ -1,9 +1,8 @@
.l-main-section
- h2 FORM_BINDINGS variable
p.location-badge.
exported from angular2/forms
- defined in angular2/forms.ts (line 42)
+ defined in angular2/forms.ts (line 42)
:markdown
diff --git a/public/docs/js/latest/api/forms/FORM_DIRECTIVES-const.jade b/public/docs/js/latest/api/forms/FORM_DIRECTIVES-const.jade
index 93cf337a6e..b009ef0dd0 100644
--- a/public/docs/js/latest/api/forms/FORM_DIRECTIVES-const.jade
+++ b/public/docs/js/latest/api/forms/FORM_DIRECTIVES-const.jade
@@ -1,9 +1,8 @@
.l-main-section
- h2 FORM_DIRECTIVES variable
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives.ts (line 38)
+ defined in angular2/src/forms/directives.ts (line 38)
:markdown
A list of all the form directives used as part of a `@View` annotation.
diff --git a/public/docs/js/latest/api/forms/Form-interface.jade b/public/docs/js/latest/api/forms/Form-interface.jade
index ed01961b84..18651db92e 100644
--- a/public/docs/js/latest/api/forms/Form-interface.jade
+++ b/public/docs/js/latest/api/forms/Form-interface.jade
@@ -1,14 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/form_interface.ts (line 3)
+ defined in angular2/src/forms/directives/form_interface.ts (line 3)
:markdown
- An interface that NgFormModel
and NgForm
implement.
-
- Only used by the forms module.
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/forms/FormBuilder-class.jade b/public/docs/js/latest/api/forms/FormBuilder-class.jade
index 009c059e79..bb4b6985fb 100644
--- a/public/docs/js/latest/api/forms/FormBuilder-class.jade
+++ b/public/docs/js/latest/api/forms/FormBuilder-class.jade
@@ -1,73 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/form_builder.ts (line 4)
+ defined in angular2/src/forms/form_builder.ts (line 4)
:markdown
- Creates a form object from a user-specified configuration.
-
- # Example
-
- ```
- import {Component, View, bootstrap} from 'angular2/angular2';
- import {FormBuilder, Validators, FORM_DIRECTIVES, ControlGroup} from 'angular2/forms';
-
- @Component({
- selector: 'login-comp',
- viewBindings: [
- FormBuilder
- ]
- })
- @View({
- template: `
-
- `,
- directives: [
- FORM_DIRECTIVES
- ]
- })
- class LoginComp {
- loginForm: ControlGroup;
-
- constructor(builder: FormBuilder) {
- this.loginForm = builder.group({
- login: ["", Validators.required],
-
- passwordRetry: builder.group({
- password: ["", Validators.required],
- passwordConfirmation: ["", Validators.required]
- })
- });
- }
- }
-
- bootstrap(LoginComp)
- ```
-
- This example creates a ControlGroup
that consists of a `login` Control
, and a
- nested
- ControlGroup
that defines a `password` and a `passwordConfirmation` Control
:
-
- ```
- var loginForm = builder.group({
- login: ["", Validators.required],
-
- passwordRetry: builder.group({
- password: ["", Validators.required],
- passwordConfirmation: ["", Validators.required]
- })
- });
-
- ```
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Annotations
@@ -118,7 +62,7 @@ p.location-badge.
pre.prettyprint
code.
- array(controlsConfig: List<any>, validator?: Function)
+ array(controlsConfig: any[], validator?: Function)
:markdown
diff --git a/public/docs/js/latest/api/forms/NgControl-class.jade b/public/docs/js/latest/api/forms/NgControl-class.jade
index b6d04030d0..70bf0d45bb 100644
--- a/public/docs/js/latest/api/forms/NgControl-class.jade
+++ b/public/docs/js/latest/api/forms/NgControl-class.jade
@@ -1,14 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/ng_control.ts (line 2)
+ defined in angular2/src/forms/directives/ng_control.ts (line 2)
:markdown
- An abstract class that all control directive extend.
-
- It binds a Control
object to a DOM element.
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/forms/NgControlGroup-class.jade b/public/docs/js/latest/api/forms/NgControlGroup-class.jade
index 3a36761b36..45ea4a60e0 100644
--- a/public/docs/js/latest/api/forms/NgControlGroup-class.jade
+++ b/public/docs/js/latest/api/forms/NgControlGroup-class.jade
@@ -1,46 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/ng_control_group.ts (line 12)
+ defined in angular2/src/forms/directives/ng_control_group.ts (line 12)
:markdown
- Creates and binds a control group to a DOM element.
-
- This directive can only be used as a child of NgForm
or NgFormModel
.
-
- # Example
-
- In this example, we create the credentials and personal control groups.
- We can work with each group separately: check its validity, get its value, listen to its changes.
-
- ```
- @Component({selector: "signup-comp"})
- @View({
- directives: [FORM_DIRECTIVES],
- template: `
-
- `})
- class SignupComp {
- onSignUp(value) {
- // value === {personal: {name: 'some name'},
- // credentials: {login: 'some login', password: 'some password'}}
- }
- }
-
- ```
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Annotations
@@ -52,7 +23,7 @@ p.location-badge.
selector: '[ng-control-group]',
bindings: [controlGroupBinding],
properties: ['name: ng-control-group'],
- lifecycle: [LifecycleEvent.onInit, LifecycleEvent.onDestroy],
+ lifecycle: [LifecycleEvent.OnInit, LifecycleEvent.OnDestroy],
exportAs: 'form'
})
diff --git a/public/docs/js/latest/api/forms/NgControlName-class.jade b/public/docs/js/latest/api/forms/NgControlName-class.jade
index 068f74aaeb..0be258b164 100644
--- a/public/docs/js/latest/api/forms/NgControlName-class.jade
+++ b/public/docs/js/latest/api/forms/NgControlName-class.jade
@@ -1,65 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/ng_control_name.ts (line 16)
+ defined in angular2/src/forms/directives/ng_control_name.ts (line 16)
:markdown
- Creates and binds a control with a specified name to a DOM element.
-
- This directive can only be used as a child of NgForm
or NgFormModel
.
-
- # Example
-
- In this example, we create the login and password controls.
- We can work with each control separately: check its validity, get its value, listen to its
- changes.
-
- ```
- @Component({selector: "login-comp"})
- @View({
- directives: [FORM_DIRECTIVES],
- 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: [FORM_DIRECTIVES],
- template: `
-
- `})
- class LoginComp {
- credentials: {login:string, password:string};
-
- onLogIn() {
- // this.credentials.login === "some login"
- // this.credentials.password === "some password"
- }
- }
- ```
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Annotations
@@ -72,7 +24,7 @@ p.location-badge.
bindings: [controlNameBinding],
properties: ['name: ngControl', 'model: ngModel'],
events: ['update: ngModel'],
- lifecycle: [LifecycleEvent.onDestroy, LifecycleEvent.onChange],
+ lifecycle: [LifecycleEvent.OnDestroy, LifecycleEvent.OnChanges],
exportAs: 'form'
})
@@ -143,12 +95,12 @@ p.location-badge.
.l-sub-section
- h3 onChange
+ h3 onChanges
pre.prettyprint
code.
- onChange(c: StringMap<string, any>)
+ onChanges(c: StringMap<string, any>)
:markdown
diff --git a/public/docs/js/latest/api/forms/NgForm-class.jade b/public/docs/js/latest/api/forms/NgForm-class.jade
index 9920e3f33b..b4218e2263 100644
--- a/public/docs/js/latest/api/forms/NgForm-class.jade
+++ b/public/docs/js/latest/api/forms/NgForm-class.jade
@@ -1,41 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/ng_form.ts (line 19)
+ defined in angular2/src/forms/directives/ng_form.ts (line 19)
:markdown
- Creates and binds a form object to a DOM element.
-
- # Example
-
- ```
- @Component({selector: "signup-comp"})
- @View({
- directives: [FORM_DIRECTIVES],
- template: `
-
- `})
- class SignupComp {
- onSignUp(value) {
- // value === {personal: {name: 'some name'},
- // credentials: {login: 'some login', password: 'some password'}}
- }
- }
-
- ```
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/forms/NgFormControl-class.jade b/public/docs/js/latest/api/forms/NgFormControl-class.jade
index c91f41f1a2..a711396c78 100644
--- a/public/docs/js/latest/api/forms/NgFormControl-class.jade
+++ b/public/docs/js/latest/api/forms/NgFormControl-class.jade
@@ -1,54 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/ng_form_control.ts (line 14)
+ defined in angular2/src/forms/directives/ng_form_control.ts (line 14)
:markdown
- Binds an existing control to a DOM element.
-
- # Example
-
- In this example, we bind the control to an input element. When the value of the input element
- changes, the value of
- the control will reflect that change. Likewise, if the value of the control changes, the input
- element reflects that
- change.
-
- ```
- @Component({selector: "login-comp"})
- @View({
- directives: [FORM_DIRECTIVES],
- 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: [FORM_DIRECTIVES],
- template: " "
- })
- class LoginComp {
- loginControl:Control;
- login:string;
-
- constructor() {
- this.loginControl = new Control('');
- }
- }
- ```
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Annotations
@@ -61,7 +24,7 @@ p.location-badge.
bindings: [formControlBinding],
properties: ['form: ngFormControl', 'model: ngModel'],
events: ['update: ngModel'],
- lifecycle: [LifecycleEvent.onChange],
+ lifecycle: [LifecycleEvent.OnChanges],
exportAs: 'form'
})
@@ -144,12 +107,12 @@ p.location-badge.
.l-sub-section
- h3 onChange
+ h3 onChanges
pre.prettyprint
code.
- onChange(c: StringMap<string, any>)
+ onChanges(c: StringMap<string, any>)
:markdown
diff --git a/public/docs/js/latest/api/forms/NgFormModel-class.jade b/public/docs/js/latest/api/forms/NgFormModel-class.jade
index a951104a76..19caa95d48 100644
--- a/public/docs/js/latest/api/forms/NgFormModel-class.jade
+++ b/public/docs/js/latest/api/forms/NgFormModel-class.jade
@@ -1,75 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/ng_form_model.ts (line 15)
+ 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: [FORM_DIRECTIVES],
- 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: [FORM_DIRECTIVES],
- 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'
- }
- }
- ```
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Annotations
@@ -81,7 +23,7 @@ p.location-badge.
selector: '[ng-form-model]',
bindings: [formDirectiveBinding],
properties: ['form: ng-form-model'],
- lifecycle: [LifecycleEvent.onChange],
+ lifecycle: [LifecycleEvent.OnChanges],
host: {
'(submit)': 'onSubmit()',
},
@@ -129,12 +71,12 @@ p.location-badge.
.l-sub-section
- h3 onChange
+ h3 onChanges
pre.prettyprint
code.
- onChange(_: any)
+ onChanges(_: any)
:markdown
diff --git a/public/docs/js/latest/api/forms/NgModel-class.jade b/public/docs/js/latest/api/forms/NgModel-class.jade
index cd425f22d5..f7643e4fe2 100644
--- a/public/docs/js/latest/api/forms/NgModel-class.jade
+++ b/public/docs/js/latest/api/forms/NgModel-class.jade
@@ -1,25 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/ng_model.ts (line 13)
+ defined in angular2/src/forms/directives/ng_model.ts (line 13)
:markdown
- Binds a domain model to the form.
-
- # Example
- ```
- @Component({selector: "search-comp"})
- @View({
- directives: [FORM_DIRECTIVES],
- template: `
-
- `})
- class SearchComp {
- searchQuery: string;
- }
- ```
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Annotations
@@ -32,7 +24,7 @@ p.location-badge.
bindings: [formControlBinding],
properties: ['model: ngModel'],
events: ['update: ngModel'],
- lifecycle: [LifecycleEvent.onChange],
+ lifecycle: [LifecycleEvent.OnChanges],
exportAs: 'form'
})
@@ -103,12 +95,12 @@ p.location-badge.
.l-sub-section
- h3 onChange
+ h3 onChanges
pre.prettyprint
code.
- onChange(c: StringMap<string, any>)
+ onChanges(c: StringMap<string, any>)
:markdown
diff --git a/public/docs/js/latest/api/forms/NgRequiredValidator-class.jade b/public/docs/js/latest/api/forms/NgRequiredValidator-class.jade
index f968d1845c..5c74e5fdfb 100644
--- a/public/docs/js/latest/api/forms/NgRequiredValidator-class.jade
+++ b/public/docs/js/latest/api/forms/NgRequiredValidator-class.jade
@@ -1,11 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/validators.ts (line 11)
+ defined in angular2/src/forms/directives/validators.ts (line 11)
:markdown
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
-
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/forms/NgSelectOption-class.jade b/public/docs/js/latest/api/forms/NgSelectOption-class.jade
index d832e504b1..b092993fdd 100644
--- a/public/docs/js/latest/api/forms/NgSelectOption-class.jade
+++ b/public/docs/js/latest/api/forms/NgSelectOption-class.jade
@@ -1,20 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/select_control_value_accessor.ts (line 9)
+ defined in angular2/src/forms/directives/select_control_value_accessor.ts (line 9)
:markdown
- Marks as dynamic, so Angular can be notified when options change.
-
- #Example:
-
- ```
-
-
-
- ```
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/forms/NgValidator-class.jade b/public/docs/js/latest/api/forms/NgValidator-class.jade
index 61c40ad76b..8c0abeba51 100644
--- a/public/docs/js/latest/api/forms/NgValidator-class.jade
+++ b/public/docs/js/latest/api/forms/NgValidator-class.jade
@@ -1,11 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/validators.ts (line 4)
+ defined in angular2/src/forms/directives/validators.ts (line 4)
:markdown
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
-
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/forms/SelectControlValueAccessor-class.jade b/public/docs/js/latest/api/forms/SelectControlValueAccessor-class.jade
index 1fd5484040..eaf104b3b5 100644
--- a/public/docs/js/latest/api/forms/SelectControlValueAccessor-class.jade
+++ b/public/docs/js/latest/api/forms/SelectControlValueAccessor-class.jade
@@ -1,12 +1,17 @@
p.location-badge.
exported from angular2/forms
- defined in angular2/src/forms/directives/select_control_value_accessor.ts (line 24)
+ defined in angular2/src/forms/directives/select_control_value_accessor.ts (line 24)
:markdown
- The accessor for writing a value and listening to changes on a select element.
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
.l-main-section
h2 Annotations
diff --git a/public/docs/js/latest/api/forms/Validators-class.jade b/public/docs/js/latest/api/forms/Validators-class.jade
index 49893f7588..75846daba6 100644
--- a/public/docs/js/latest/api/forms/Validators-class.jade
+++ b/public/docs/js/latest/api/forms/Validators-class.jade
@@ -1,15 +1,14 @@
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.
-
- # Example
-
- ```
- var loginControl = new Control("", Validators.required)
- ```
-
+ This module is used for handling user input, by defining and building a ControlGroup
that
+ consists of
+ Control
objects, and mapping them onto the DOM. Control
objects can then be used
+ to read information
+ from the form DOM elements.
+ This module is not included in the `angular2` module; you must import the forms module
+ explicitly.
diff --git a/public/docs/js/latest/api/forms/_data.json b/public/docs/js/latest/api/forms/_data.json
index 6cce8b6977..2bbc42934b 100644
--- a/public/docs/js/latest/api/forms/_data.json
+++ b/public/docs/js/latest/api/forms/_data.json
@@ -5,102 +5,102 @@
},
"AbstractControl-class" : {
- "title" : "AbstractControl Class"
+ "title" : "AbstractControl"
},
"Control-class" : {
- "title" : "Control Class"
+ "title" : "Control"
},
"ControlGroup-class" : {
- "title" : "ControlGroup Class"
+ "title" : "ControlGroup"
},
"ControlArray-class" : {
- "title" : "ControlArray Class"
+ "title" : "ControlArray"
},
"AbstractControlDirective-class" : {
- "title" : "AbstractControlDirective Class"
+ "title" : "AbstractControlDirective"
},
"Form-interface" : {
- "title" : "Form Interface"
+ "title" : "Form"
},
"ControlContainer-class" : {
- "title" : "ControlContainer Class"
+ "title" : "ControlContainer"
},
"NgControlName-class" : {
- "title" : "NgControlName Class"
+ "title" : "NgControlName"
},
"NgFormControl-class" : {
- "title" : "NgFormControl Class"
+ "title" : "NgFormControl"
},
"NgModel-class" : {
- "title" : "NgModel Class"
+ "title" : "NgModel"
},
"NgControl-class" : {
- "title" : "NgControl Class"
+ "title" : "NgControl"
},
"NgControlGroup-class" : {
- "title" : "NgControlGroup Class"
+ "title" : "NgControlGroup"
},
"NgFormModel-class" : {
- "title" : "NgFormModel Class"
+ "title" : "NgFormModel"
},
"NgForm-class" : {
- "title" : "NgForm Class"
+ "title" : "NgForm"
},
"ControlValueAccessor-interface" : {
- "title" : "ControlValueAccessor Interface"
+ "title" : "ControlValueAccessor"
},
"DefaultValueAccessor-class" : {
- "title" : "DefaultValueAccessor Class"
+ "title" : "DefaultValueAccessor"
},
"CheckboxControlValueAccessor-class" : {
- "title" : "CheckboxControlValueAccessor Class"
+ "title" : "CheckboxControlValueAccessor"
},
"NgSelectOption-class" : {
- "title" : "NgSelectOption Class"
+ "title" : "NgSelectOption"
},
"SelectControlValueAccessor-class" : {
- "title" : "SelectControlValueAccessor Class"
+ "title" : "SelectControlValueAccessor"
},
"FORM_DIRECTIVES-const" : {
- "title" : "FORM_DIRECTIVES Const"
+ "title" : "FORM_DIRECTIVES"
},
"Validators-class" : {
- "title" : "Validators Class"
+ "title" : "Validators"
},
"NgValidator-class" : {
- "title" : "NgValidator Class"
+ "title" : "NgValidator"
},
"NgRequiredValidator-class" : {
- "title" : "NgRequiredValidator Class"
+ "title" : "NgRequiredValidator"
},
"FormBuilder-class" : {
- "title" : "FormBuilder Class"
+ "title" : "FormBuilder"
},
"FORM_BINDINGS-const" : {
- "title" : "FORM_BINDINGS Const"
+ "title" : "FORM_BINDINGS"
}
-}
\ No newline at end of file
+}
diff --git a/public/docs/js/latest/api/forms/index.jade b/public/docs/js/latest/api/forms/index.jade
index 0cde3c2a8c..ae3c184657 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/http/BaseRequestOptions-class.jade b/public/docs/js/latest/api/http/BaseRequestOptions-class.jade
new file mode 100644
index 0000000000..6199f07b04
--- /dev/null
+++ b/public/docs/js/latest/api/http/BaseRequestOptions-class.jade
@@ -0,0 +1,34 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/base_request_options.ts (line 72)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+
+.l-main-section
+ h2 Annotations
+ .l-sub-section
+ h3.annotation Injectable
+ pre.prettyprint
+ code.
+ @Injectable()
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/BaseResponseOptions-class.jade b/public/docs/js/latest/api/http/BaseResponseOptions-class.jade
new file mode 100644
index 0000000000..1d8d5d1d3e
--- /dev/null
+++ b/public/docs/js/latest/api/http/BaseResponseOptions-class.jade
@@ -0,0 +1,106 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/base_response_options.ts (line 44)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+
+.l-main-section
+ h2 Annotations
+ .l-sub-section
+ h3.annotation Injectable
+ pre.prettyprint
+ code.
+ @Injectable()
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 body
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 status
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 statusText
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 type
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 url
+
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/BrowserXhr-class.jade b/public/docs/js/latest/api/http/BrowserXhr-class.jade
new file mode 100644
index 0000000000..8f9a59f13f
--- /dev/null
+++ b/public/docs/js/latest/api/http/BrowserXhr-class.jade
@@ -0,0 +1,50 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/browser_xhr.ts (line 1)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+
+.l-main-section
+ h2 Annotations
+ .l-sub-section
+ h3.annotation Injectable
+ pre.prettyprint
+ code.
+ @Injectable()
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 build
+
+
+ pre.prettyprint
+ code.
+ build()
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/Connection-class.jade b/public/docs/js/latest/api/http/Connection-class.jade
new file mode 100644
index 0000000000..6f8fb99eb8
--- /dev/null
+++ b/public/docs/js/latest/api/http/Connection-class.jade
@@ -0,0 +1,61 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/interfaces.ts (line 29)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 readyState
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 response
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dispose
+
+
+ pre.prettyprint
+ code.
+ dispose()
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/ConnectionBackend-class.jade b/public/docs/js/latest/api/http/ConnectionBackend-class.jade
new file mode 100644
index 0000000000..c547cba988
--- /dev/null
+++ b/public/docs/js/latest/api/http/ConnectionBackend-class.jade
@@ -0,0 +1,40 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/interfaces.ts (line 18)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 createConnection
+
+
+ pre.prettyprint
+ code.
+ createConnection(request: any)
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/HTTP_BINDINGS-const.jade b/public/docs/js/latest/api/http/HTTP_BINDINGS-const.jade
new file mode 100644
index 0000000000..7673d9f2b4
--- /dev/null
+++ b/public/docs/js/latest/api/http/HTTP_BINDINGS-const.jade
@@ -0,0 +1,24 @@
+
+.l-main-section
+ p.location-badge.
+ exported from angular2/http
+ defined in angular2/http.ts (line 64)
+
+ :markdown
+ Provides a basic set of injectables to use the Http
service in any application.
+
+ #Example
+
+ ```
+ import {HTTP_BINDINGS, Http} from 'http/http';
+ @Component({selector: 'http-app', viewBindings: [HTTP_BINDINGS]})
+ @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/Headers-class.jade b/public/docs/js/latest/api/http/Headers-class.jade
new file mode 100644
index 0000000000..5be90fcfc1
--- /dev/null
+++ b/public/docs/js/latest/api/http/Headers-class.jade
@@ -0,0 +1,193 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/headers.ts (line 15)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(headers?: Headers | StringMap<string, any>)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 append
+
+
+ pre.prettyprint
+ code.
+ append(name: string, value: string)
+
+ :markdown
+ Appends a header to existing list of header values for a given header name.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 delete
+
+
+ pre.prettyprint
+ code.
+ delete(name: string)
+
+ :markdown
+ Deletes all header values for the given name.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 forEach
+
+
+ pre.prettyprint
+ code.
+ forEach(fn: Function)
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 get
+
+
+ pre.prettyprint
+ code.
+ get(header: string)
+
+ :markdown
+ Returns first header that matches given name.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 has
+
+
+ pre.prettyprint
+ code.
+ has(header: string)
+
+ :markdown
+ Check for existence of header by given name.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 keys
+
+
+ pre.prettyprint
+ code.
+ keys()
+
+ :markdown
+ Provides names of set headers
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 set
+
+
+ pre.prettyprint
+ code.
+ set(header: string, value: string | string[])
+
+ :markdown
+ Sets or overrides header value for given name.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 values
+
+
+ pre.prettyprint
+ code.
+ values()
+
+ :markdown
+ Returns values of all headers.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getAll
+
+
+ pre.prettyprint
+ code.
+ getAll(header: string)
+
+ :markdown
+ Returns list of header values for a given name.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 entries
+
+
+ pre.prettyprint
+ code.
+ entries()
+
+ :markdown
+ This method is not implemented.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/Http-class.jade b/public/docs/js/latest/api/http/Http-class.jade
new file mode 100644
index 0000000000..8e2b21cbb4
--- /dev/null
+++ b/public/docs/js/latest/api/http/Http-class.jade
@@ -0,0 +1,156 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/http.ts (line 33)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+
+.l-main-section
+ h2 Annotations
+ .l-sub-section
+ h3.annotation Injectable
+ pre.prettyprint
+ code.
+ @Injectable()
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_backend: ConnectionBackend, _defaultOptions: RequestOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ pre.prettyprint
+ code.
+ request(url: string | Request, options?: RequestOptionsArgs)
+
+ :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?: RequestOptionsArgs)
+
+ :markdown
+ Performs a request with `get` http method.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 post
+
+
+ pre.prettyprint
+ code.
+ post(url: string, body: string, options?: RequestOptionsArgs)
+
+ :markdown
+ Performs a request with `post` http method.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 put
+
+
+ pre.prettyprint
+ code.
+ put(url: string, body: string, options?: RequestOptionsArgs)
+
+ :markdown
+ Performs a request with `put` http method.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 delete
+
+
+ pre.prettyprint
+ code.
+ delete(url: string, options?: RequestOptionsArgs)
+
+ :markdown
+ Performs a request with `delete` http method.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 patch
+
+
+ pre.prettyprint
+ code.
+ patch(url: string, body: string, options?: RequestOptionsArgs)
+
+ :markdown
+ Performs a request with `patch` http method.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 head
+
+
+ pre.prettyprint
+ code.
+ head(url: string, options?: RequestOptionsArgs)
+
+ :markdown
+ Performs a request with `head` http method.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/JSONPBackend-class.jade b/public/docs/js/latest/api/http/JSONPBackend-class.jade
new file mode 100644
index 0000000000..0008a6e05c
--- /dev/null
+++ b/public/docs/js/latest/api/http/JSONPBackend-class.jade
@@ -0,0 +1,50 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/jsonp_backend.ts (line 89)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+
+.l-main-section
+ h2 Annotations
+ .l-sub-section
+ h3.annotation Injectable
+ pre.prettyprint
+ code.
+ @Injectable()
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_browserJSONP: BrowserJsonp, _baseResponseOptions: ResponseOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 createConnection
+
+
+ pre.prettyprint
+ code.
+ createConnection(request: Request)
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/JSONPConnection-class.jade b/public/docs/js/latest/api/http/JSONPConnection-class.jade
new file mode 100644
index 0000000000..eb7c5c8afe
--- /dev/null
+++ b/public/docs/js/latest/api/http/JSONPConnection-class.jade
@@ -0,0 +1,104 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/jsonp_backend.ts (line 9)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(req: Request, _dom: BrowserJsonp, baseResponseOptions?: ResponseOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 readyState
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 response
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 baseResponseOptions
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 finished
+
+
+ pre.prettyprint
+ code.
+ finished(data?: any)
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dispose
+
+
+ pre.prettyprint
+ code.
+ dispose()
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/JSONP_BINDINGS-const.jade b/public/docs/js/latest/api/http/JSONP_BINDINGS-const.jade
new file mode 100644
index 0000000000..6944d0ca11
--- /dev/null
+++ b/public/docs/js/latest/api/http/JSONP_BINDINGS-const.jade
@@ -0,0 +1,10 @@
+
+.l-main-section
+ p.location-badge.
+ exported from angular2/http
+ defined in angular2/http.ts (line 76)
+
+ :markdown
+
+
+
diff --git a/public/docs/js/latest/api/http/Jsonp-class.jade b/public/docs/js/latest/api/http/Jsonp-class.jade
new file mode 100644
index 0000000000..328a596ef3
--- /dev/null
+++ b/public/docs/js/latest/api/http/Jsonp-class.jade
@@ -0,0 +1,54 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/http.ts (line 179)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+
+.l-main-section
+ h2 Annotations
+ .l-sub-section
+ h3.annotation Injectable
+ pre.prettyprint
+ code.
+ @Injectable()
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(backend: ConnectionBackend, defaultOptions: RequestOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ pre.prettyprint
+ code.
+ request(url: string | Request, options?: RequestOptionsArgs)
+
+ :markdown
+ Performs any type of http request. First argument is required, and can either be a url or
+ a Request
instance. If the first argument is a url, an optional RequestOptions
+ object can be provided as the 2nd argument. The options object will be merged with the values
+ of BaseRequestOptions
before performing the request.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/MockBackend-class.jade b/public/docs/js/latest/api/http/MockBackend-class.jade
new file mode 100644
index 0000000000..525e7547e1
--- /dev/null
+++ b/public/docs/js/latest/api/http/MockBackend-class.jade
@@ -0,0 +1,169 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/mock_backend.ts (line 98)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+
+.l-main-section
+ h2 Annotations
+ .l-sub-section
+ h3.annotation Injectable
+ pre.prettyprint
+ code.
+ @Injectable()
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor()
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 connections
+
+
+ :markdown
+ EventEmitter
+ of MockConnection
instances that have been created by this backend. Can be subscribed
+ to in order to respond to connections.
+
+ #Example
+
+ ```
+ import {MockBackend, Http, BaseRequestOptions} from 'angular2/http';
+ import {Injector} from 'angular2/di';
+
+ it('should get a response', () => {
+ var connection; //this will be set when a new connection is emitted from the backend.
+ var text; //this will be set from mock response
+ var injector = Injector.resolveAndCreate([
+ MockBackend,
+ bind(Http).toFactory(backend, options) {
+ return new Http(backend, options);
+ }, [MockBackend, BaseRequestOptions]]);
+ var backend = injector.get(MockBackend);
+ var http = injector.get(Http);
+ backend.connections.subscribe(c => connection = c);
+ http.request('something.json').subscribe(res => {
+ text = res.text();
+ });
+ connection.mockRespond(new Response({body: 'Something'}));
+ expect(text).toBe('Something');
+ });
+ ```
+
+ This property only exists in the mock implementation, not in real Backends.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 connectionsArray
+
+
+ :markdown
+ An array representation of `connections`. This array will be updated with each connection that
+ is created by this backend.
+
+ This property only exists in the mock implementation, not in real Backends.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 pendingConnections
+
+
+ :markdown
+ EventEmitter
of MockConnection
instances that haven't yet been resolved (i.e.
+ with a `readyState`
+ less than 4). Used internally to verify that no connections are pending via the
+ `verifyNoPendingRequests` method.
+
+ This property only exists in the mock implementation, not in real Backends.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 verifyNoPendingRequests
+
+
+ pre.prettyprint
+ code.
+ verifyNoPendingRequests()
+
+ :markdown
+ Checks all connections, and raises an exception if any connection has not received a response.
+
+ This method only exists in the mock implementation, not in real Backends.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 resolveAllConnections
+
+
+ pre.prettyprint
+ code.
+ resolveAllConnections()
+
+ :markdown
+ Can be used in conjunction with `verifyNoPendingRequests` to resolve any not-yet-resolve
+ connections, if it's expected that there are connections that have not yet received a response.
+
+ This method only exists in the mock implementation, not in real Backends.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 createConnection
+
+
+ pre.prettyprint
+ code.
+ createConnection(req: Request)
+
+ :markdown
+ Creates a new MockConnection
. This is equivalent to calling `new
+ MockConnection()`, except that it also will emit the new `Connection` to the `connections`
+ emitter of this `MockBackend` instance. This method will usually only be used by tests
+ against the framework itself, not by end-users.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/MockConnection-class.jade b/public/docs/js/latest/api/http/MockConnection-class.jade
new file mode 100644
index 0000000000..cc598355ae
--- /dev/null
+++ b/public/docs/js/latest/api/http/MockConnection-class.jade
@@ -0,0 +1,148 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/mock_backend.ts (line 8)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(req: Request)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 readyState
+
+
+ :markdown
+ Describes the state of the connection, based on `XMLHttpRequest.readyState`, but with
+ additional states. For example, state 5 indicates an aborted connection.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ :markdown
+ Request
instance used to create the connection.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 response
+
+
+ :markdown
+ EventEmitter
of Response
. Can be subscribed to in order to be notified when a
+ response is available.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dispose
+
+
+ pre.prettyprint
+ code.
+ dispose()
+
+ :markdown
+ Changes the `readyState` of the connection to a custom state of 5 (cancelled).
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mockRespond
+
+
+ pre.prettyprint
+ code.
+ mockRespond(res: Response)
+
+ :markdown
+ Sends a mock response to the connection. This response is the value that is emitted to the
+ EventEmitter
returned by Http
.
+
+ #Example
+
+ ```
+ var connection;
+ backend.connections.subscribe(c => connection = c);
+ http.request('data.json').subscribe(res => console.log(res.text()));
+ connection.mockRespond(new Response('fake response')); //logs 'fake response'
+ ```
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mockDownload
+
+
+ pre.prettyprint
+ code.
+ mockDownload(res: Response)
+
+ :markdown
+ Not yet implemented!
+
+ Sends the provided Response
to the `downloadObserver` of the `Request`
+ associated with this connection.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mockError
+
+
+ pre.prettyprint
+ code.
+ mockError(err?: Error)
+
+ :markdown
+ Emits the provided error object as an error to the Response
EventEmitter
+ returned
+ from Http
.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/ReadyStates-enum.jade b/public/docs/js/latest/api/http/ReadyStates-enum.jade
new file mode 100644
index 0000000000..71067f4eb1
--- /dev/null
+++ b/public/docs/js/latest/api/http/ReadyStates-enum.jade
@@ -0,0 +1,81 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/enums.ts (line 47)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 Unsent
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Open
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 HeadersReceived
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Loading
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Done
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Cancelled
+
+
+ :markdown
+
+
+
+
+
+
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..0542d14f7b
--- /dev/null
+++ b/public/docs/js/latest/api/http/Request-class.jade
@@ -0,0 +1,121 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/static_request.ts (line 11)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(requestOptions: RequestOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 method
+
+
+ :markdown
+ Http method with which to perform the request.
+
+ Defaults to GET.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mode
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 credentials
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers
+
+
+ :markdown
+ Headers object based on the `Headers` class in the [Fetch
+ Spec](https://fetch.spec.whatwg.org/#headers-class). Headers
class reference.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 url
+
+
+ :markdown
+ Url of the remote resource
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 cache
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 text
+
+
+ pre.prettyprint
+ code.
+ text()
+
+ :markdown
+ Returns the request's body as string, assuming that body exists. If body is undefined, return
+ empty
+ string.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/RequestCacheOpts-enum.jade b/public/docs/js/latest/api/http/RequestCacheOpts-enum.jade
new file mode 100644
index 0000000000..71bfc5d6ac
--- /dev/null
+++ b/public/docs/js/latest/api/http/RequestCacheOpts-enum.jade
@@ -0,0 +1,81 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/enums.ts (line 11)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 Default
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 NoStore
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Reload
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 NoCache
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ForceCache
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 OnlyIfCached
+
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/RequestCredentialsOpts-enum.jade b/public/docs/js/latest/api/http/RequestCredentialsOpts-enum.jade
new file mode 100644
index 0000000000..01d4562679
--- /dev/null
+++ b/public/docs/js/latest/api/http/RequestCredentialsOpts-enum.jade
@@ -0,0 +1,45 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/enums.ts (line 24)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 Omit
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 SameOrigin
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Include
+
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/RequestMethods-enum.jade b/public/docs/js/latest/api/http/RequestMethods-enum.jade
new file mode 100644
index 0000000000..97a54fbfc3
--- /dev/null
+++ b/public/docs/js/latest/api/http/RequestMethods-enum.jade
@@ -0,0 +1,93 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/enums.ts (line 34)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 Get
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Post
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Put
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Delete
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Options
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Head
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Patch
+
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/RequestModesOpts-enum.jade b/public/docs/js/latest/api/http/RequestModesOpts-enum.jade
new file mode 100644
index 0000000000..c096e66856
--- /dev/null
+++ b/public/docs/js/latest/api/http/RequestModesOpts-enum.jade
@@ -0,0 +1,45 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/enums.ts (line 1)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 Cors
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 NoCors
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 SameOrigin
+
+
+ :markdown
+
+
+
+
+
+
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..1772329407
--- /dev/null
+++ b/public/docs/js/latest/api/http/RequestOptions-class.jade
@@ -0,0 +1,145 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/base_request_options.ts (line 6)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({method, headers, body, mode, credentials, cache, url, search}?:
+ RequestOptionsArgs)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 method
+
+
+ :markdown
+ Http method with which to execute the request.
+
+ Defaults to "GET".
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers
+
+
+ :markdown
+ Headers object based on the `Headers` class in the [Fetch
+ Spec](https://fetch.spec.whatwg.org/#headers-class).
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 body
+
+
+ :markdown
+ Body to be used when creating the request.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mode
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 credentials
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 cache
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 url
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 search
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 merge
+
+
+ pre.prettyprint
+ code.
+ merge(options?: RequestOptionsArgs)
+
+ :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/RequestOptionsArgs-interface.jade b/public/docs/js/latest/api/http/RequestOptionsArgs-interface.jade
new file mode 100644
index 0000000000..e34f956877
--- /dev/null
+++ b/public/docs/js/latest/api/http/RequestOptionsArgs-interface.jade
@@ -0,0 +1,105 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/interfaces.ts (line 39)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 url?
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 method?
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 search?
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers?
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 body?
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 mode?
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 credentials?
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 cache?
+
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/Response-class.jade b/public/docs/js/latest/api/http/Response-class.jade
new file mode 100644
index 0000000000..54ab904b39
--- /dev/null
+++ b/public/docs/js/latest/api/http/Response-class.jade
@@ -0,0 +1,211 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/static_response.ts (line 5)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(responseOptions: ResponseOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 type
+
+
+ :markdown
+ One of "basic", "cors", "default", "error, or "opaque".
+
+ Defaults to "default".
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 ok
+
+
+ :markdown
+ True if the response's status is within 200-299
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 url
+
+
+ :markdown
+ URL of response.
+
+ Defaults to empty string.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 status
+
+
+ :markdown
+ Status code returned by server.
+
+ Defaults to 200.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 statusText
+
+
+ :markdown
+ Text representing the corresponding reason phrase to the `status`, as defined in [ietf rfc 2616
+ section 6.1.1](https://tools.ietf.org/html/rfc2616#section-6.1.1)
+
+ Defaults to "OK"
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 bytesLoaded
+
+
+ :markdown
+ Non-standard property
+
+ Denotes how many of the response body's bytes have been loaded, for example if the response is
+ the result of a progress event.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 totalBytes
+
+
+ :markdown
+ Non-standard property
+
+ Denotes how many bytes are expected in the final response body.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers
+
+
+ :markdown
+ Headers object based on the `Headers` class in the [Fetch
+ Spec](https://fetch.spec.whatwg.org/#headers-class).
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 blob
+
+
+ pre.prettyprint
+ code.
+ blob()
+
+ :markdown
+ Not yet implemented
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 json
+
+
+ pre.prettyprint
+ code.
+ json()
+
+ :markdown
+ Attempts to return body as parsed `JSON` object, or raises an exception.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 text
+
+
+ pre.prettyprint
+ code.
+ text()
+
+ :markdown
+ Returns the body as a string, presuming `toString()` can be called on the response body.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 arrayBuffer
+
+
+ pre.prettyprint
+ code.
+ arrayBuffer()
+
+ :markdown
+ Not yet implemented
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/ResponseOptions-class.jade b/public/docs/js/latest/api/http/ResponseOptions-class.jade
new file mode 100644
index 0000000000..d0ee637cd7
--- /dev/null
+++ b/public/docs/js/latest/api/http/ResponseOptions-class.jade
@@ -0,0 +1,112 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/base_response_options.ts (line 5)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor({body, status, headers, statusText, type, url}?: ResponseOptionsArgs)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 body
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 status
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 statusText
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 type
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 url
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 merge
+
+
+ pre.prettyprint
+ code.
+ merge(options?: ResponseOptionsArgs)
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/ResponseOptionsArgs-interface.jade b/public/docs/js/latest/api/http/ResponseOptionsArgs-interface.jade
new file mode 100644
index 0000000000..948370a9c4
--- /dev/null
+++ b/public/docs/js/latest/api/http/ResponseOptionsArgs-interface.jade
@@ -0,0 +1,81 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/interfaces.ts (line 57)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 body?
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 status?
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 statusText?
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 headers?
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 type?
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 url?
+
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/ResponseTypes-enum.jade b/public/docs/js/latest/api/http/ResponseTypes-enum.jade
new file mode 100644
index 0000000000..6338a67b65
--- /dev/null
+++ b/public/docs/js/latest/api/http/ResponseTypes-enum.jade
@@ -0,0 +1,69 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/enums.ts (line 61)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 Basic
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Cors
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Default
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Error
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 Opaque
+
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/URLSearchParams-class.jade b/public/docs/js/latest/api/http/URLSearchParams-class.jade
new file mode 100644
index 0000000000..b179688d20
--- /dev/null
+++ b/public/docs/js/latest/api/http/URLSearchParams-class.jade
@@ -0,0 +1,224 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/url_search_params.ts (line 26)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(rawParams?: string)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 paramsMap
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 rawParams
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 clone
+
+
+ pre.prettyprint
+ code.
+ clone()
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 has
+
+
+ pre.prettyprint
+ code.
+ has(param: string)
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 get
+
+
+ pre.prettyprint
+ code.
+ get(param: string)
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 getAll
+
+
+ pre.prettyprint
+ code.
+ getAll(param: string)
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 set
+
+
+ pre.prettyprint
+ code.
+ set(param: string, val: string)
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 setAll
+
+
+ pre.prettyprint
+ code.
+ setAll(searchParams: URLSearchParams)
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 append
+
+
+ pre.prettyprint
+ code.
+ append(param: string, val: string)
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 appendAll
+
+
+ pre.prettyprint
+ code.
+ appendAll(searchParams: URLSearchParams)
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 replaceAll
+
+
+ pre.prettyprint
+ code.
+ replaceAll(searchParams: URLSearchParams)
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 delete
+
+
+ pre.prettyprint
+ code.
+ delete(param: string)
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/XHRBackend-class.jade b/public/docs/js/latest/api/http/XHRBackend-class.jade
new file mode 100644
index 0000000000..cb88bca574
--- /dev/null
+++ b/public/docs/js/latest/api/http/XHRBackend-class.jade
@@ -0,0 +1,50 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/xhr_backend.ts (line 80)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+
+.l-main-section
+ h2 Annotations
+ .l-sub-section
+ h3.annotation Injectable
+ pre.prettyprint
+ code.
+ @Injectable()
+
+
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(_browserXHR: BrowserXhr, _baseResponseOptions: ResponseOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 createConnection
+
+
+ pre.prettyprint
+ code.
+ createConnection(request: Request)
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/XHRConnection-class.jade b/public/docs/js/latest/api/http/XHRConnection-class.jade
new file mode 100644
index 0000000000..dab4c273ec
--- /dev/null
+++ b/public/docs/js/latest/api/http/XHRConnection-class.jade
@@ -0,0 +1,79 @@
+
+p.location-badge.
+ exported from angular2/http
+ defined in angular2/src/http/backends/xhr_backend.ts (line 9)
+
+:markdown
+ The http module provides services to perform http requests. To get started, see the Http
+ class.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 constructor
+
+
+ pre.prettyprint
+ code.
+ constructor(req: Request, browserXHR: BrowserXhr, baseResponseOptions?: ResponseOptions)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 request
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 response
+
+
+ :markdown
+ Response EventEmitter
which emits a single Response
value on load event of
+ `XMLHttpRequest`.
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 readyState
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 dispose
+
+
+ pre.prettyprint
+ code.
+ dispose()
+
+ :markdown
+ Calls abort on the underlying XMLHttpRequest.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/http/_data.json b/public/docs/js/latest/api/http/_data.json
new file mode 100644
index 0000000000..c28bd68171
--- /dev/null
+++ b/public/docs/js/latest/api/http/_data.json
@@ -0,0 +1,122 @@
+{
+ "index" : {
+ "title" : "Http",
+ "intro" : "The http module provides services to perform http requests. To get started, see the Http
class."
+ },
+
+ "MockConnection-class" : {
+ "title" : "MockConnection"
+ },
+
+ "MockBackend-class" : {
+ "title" : "MockBackend"
+ },
+
+ "Request-class" : {
+ "title" : "Request"
+ },
+
+ "Response-class" : {
+ "title" : "Response"
+ },
+
+ "RequestOptionsArgs-interface" : {
+ "title" : "RequestOptionsArgs"
+ },
+
+ "ResponseOptionsArgs-interface" : {
+ "title" : "ResponseOptionsArgs"
+ },
+
+ "Connection-class" : {
+ "title" : "Connection"
+ },
+
+ "ConnectionBackend-class" : {
+ "title" : "ConnectionBackend"
+ },
+
+ "BrowserXhr-class" : {
+ "title" : "BrowserXhr"
+ },
+
+ "BaseRequestOptions-class" : {
+ "title" : "BaseRequestOptions"
+ },
+
+ "RequestOptions-class" : {
+ "title" : "RequestOptions"
+ },
+
+ "BaseResponseOptions-class" : {
+ "title" : "BaseResponseOptions"
+ },
+
+ "ResponseOptions-class" : {
+ "title" : "ResponseOptions"
+ },
+
+ "XHRBackend-class" : {
+ "title" : "XHRBackend"
+ },
+
+ "XHRConnection-class" : {
+ "title" : "XHRConnection"
+ },
+
+ "JSONPBackend-class" : {
+ "title" : "JSONPBackend"
+ },
+
+ "JSONPConnection-class" : {
+ "title" : "JSONPConnection"
+ },
+
+ "Http-class" : {
+ "title" : "Http"
+ },
+
+ "Jsonp-class" : {
+ "title" : "Jsonp"
+ },
+
+ "Headers-class" : {
+ "title" : "Headers"
+ },
+
+ "ResponseTypes-enum" : {
+ "title" : "ResponseTypes"
+ },
+
+ "ReadyStates-enum" : {
+ "title" : "ReadyStates"
+ },
+
+ "RequestMethods-enum" : {
+ "title" : "RequestMethods"
+ },
+
+ "RequestCredentialsOpts-enum" : {
+ "title" : "RequestCredentialsOpts"
+ },
+
+ "RequestCacheOpts-enum" : {
+ "title" : "RequestCacheOpts"
+ },
+
+ "RequestModesOpts-enum" : {
+ "title" : "RequestModesOpts"
+ },
+
+ "URLSearchParams-class" : {
+ "title" : "URLSearchParams"
+ },
+
+ "HTTP_BINDINGS-const" : {
+ "title" : "HTTP_BINDINGS"
+ },
+
+ "JSONP_BINDINGS-const" : {
+ "title" : "JSONP_BINDINGS"
+ }
+}
diff --git a/public/docs/js/latest/api/annotations/index.jade b/public/docs/js/latest/api/http/index.jade
similarity index 83%
rename from public/docs/js/latest/api/annotations/index.jade
rename to public/docs/js/latest/api/http/index.jade
index ea0da3f744..104ccc1066 100644
--- a/public/docs/js/latest/api/annotations/index.jade
+++ b/public/docs/js/latest/api/http/index.jade
@@ -1,5 +1,5 @@
p.location-badge.
- defined in angular2/annotations.ts (line 1)
+ 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
diff --git a/public/docs/js/latest/api/metadata/AfterContentChecked-interface.jade b/public/docs/js/latest/api/metadata/AfterContentChecked-interface.jade
new file mode 100644
index 0000000000..aa241c8cf9
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/AfterContentChecked-interface.jade
@@ -0,0 +1,28 @@
+
+p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/compiler/interfaces.ts (line 37)
+
+:markdown
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 afterContentChecked
+
+
+ pre.prettyprint
+ code.
+ afterContentChecked()
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/metadata/AfterContentInit-interface.jade b/public/docs/js/latest/api/metadata/AfterContentInit-interface.jade
new file mode 100644
index 0000000000..6f19f0120c
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/AfterContentInit-interface.jade
@@ -0,0 +1,28 @@
+
+p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/compiler/interfaces.ts (line 30)
+
+:markdown
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 afterContentInit
+
+
+ pre.prettyprint
+ code.
+ afterContentInit()
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/metadata/AfterViewChecked-interface.jade b/public/docs/js/latest/api/metadata/AfterViewChecked-interface.jade
new file mode 100644
index 0000000000..054569cb4a
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/AfterViewChecked-interface.jade
@@ -0,0 +1,28 @@
+
+p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/compiler/interfaces.ts (line 51)
+
+:markdown
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 afterViewChecked
+
+
+ pre.prettyprint
+ code.
+ afterViewChecked()
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/metadata/AfterViewInit-interface.jade b/public/docs/js/latest/api/metadata/AfterViewInit-interface.jade
new file mode 100644
index 0000000000..e6971c5f03
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/AfterViewInit-interface.jade
@@ -0,0 +1,28 @@
+
+p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/compiler/interfaces.ts (line 44)
+
+:markdown
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 afterViewInit
+
+
+ pre.prettyprint
+ code.
+ afterViewInit()
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/metadata/Attribute-var.jade b/public/docs/js/latest/api/metadata/Attribute-var.jade
new file mode 100644
index 0000000000..cb91bd579e
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/Attribute-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/metadata.ts (line 419)
+
+ :markdown
+ AttributeMetadata
factory function.
+
+
+
diff --git a/public/docs/js/latest/api/metadata/AttributeFactory-interface.jade b/public/docs/js/latest/api/metadata/AttributeFactory-interface.jade
new file mode 100644
index 0000000000..646e2e001a
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/AttributeFactory-interface.jade
@@ -0,0 +1,11 @@
+
+p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/metadata.ts (line 271)
+
+:markdown
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
diff --git a/public/docs/js/latest/api/metadata/AttributeMetadata-class.jade b/public/docs/js/latest/api/metadata/AttributeMetadata-class.jade
new file mode 100644
index 0000000000..9ec63dcc8d
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/AttributeMetadata-class.jade
@@ -0,0 +1,77 @@
+
+p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/metadata/di.ts (line 10)
+
+:markdown
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
+
+.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(attributeName: string)
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 attributeName
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 token
+
+
+ :markdown
+
+
+
+
+
+
+
+ .l-sub-section
+ h3 toString
+
+
+ pre.prettyprint
+ code.
+ toString()
+
+ :markdown
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/annotations/Class-function.jade b/public/docs/js/latest/api/metadata/Class-function.jade
similarity index 90%
rename from public/docs/js/latest/api/annotations/Class-function.jade
rename to public/docs/js/latest/api/metadata/Class-function.jade
index 217169c55b..96295052f7 100644
--- a/public/docs/js/latest/api/annotations/Class-function.jade
+++ b/public/docs/js/latest/api/metadata/Class-function.jade
@@ -9,8 +9,8 @@
p.location-badge.
- exported from angular2/annotations
- defined in angular2/src/util/decorators.ts (line 119)
+ exported from angular2/metadata
+ defined in angular2/src/core/util/decorators.ts (line 119)
:markdown
Provides a way for expressing ES6 classes with parameter annotations in ES5.
diff --git a/public/docs/js/latest/api/annotations/ClassDefinition-interface.jade b/public/docs/js/latest/api/metadata/ClassDefinition-interface.jade
similarity index 50%
rename from public/docs/js/latest/api/annotations/ClassDefinition-interface.jade
rename to public/docs/js/latest/api/metadata/ClassDefinition-interface.jade
index 6e3776568b..1f48e6ba68 100644
--- a/public/docs/js/latest/api/annotations/ClassDefinition-interface.jade
+++ b/public/docs/js/latest/api/metadata/ClassDefinition-interface.jade
@@ -1,12 +1,14 @@
p.location-badge.
- exported from angular2/annotations
- defined in angular2/src/util/decorators.ts (line 1)
+ exported from angular2/metadata
+ defined in angular2/src/core/util/decorators.ts (line 1)
:markdown
- Declares the interface to be used with Class
.
-
-
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
.l-main-section
h2 Members
.l-sub-section
diff --git a/public/docs/js/latest/api/metadata/Component-var.jade b/public/docs/js/latest/api/metadata/Component-var.jade
new file mode 100644
index 0000000000..d9da931b52
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/Component-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/metadata.ts (line 403)
+
+ :markdown
+ ComponentMetadata
factory function.
+
+
+
diff --git a/public/docs/js/latest/api/metadata/ComponentDecorator-interface.jade b/public/docs/js/latest/api/metadata/ComponentDecorator-interface.jade
new file mode 100644
index 0000000000..363b57c386
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/ComponentDecorator-interface.jade
@@ -0,0 +1,37 @@
+
+p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/metadata.ts (line 46)
+
+:markdown
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
+.l-main-section
+ h2 Members
+ .l-sub-section
+ h3 View
+
+
+ pre.prettyprint
+ code.
+ View(obj: {
+ templateUrl?: string,
+ template?: string,
+ directives?: Array<Type | any | any[]>,
+ pipes?: Array<Type | any | any[]>,
+ renderer?: string,
+ styles?: string[],
+ styleUrls?: string[],
+ })
+
+ :markdown
+ Chain ViewMetadata
annotation.
+
+
+
+
+
+
diff --git a/public/docs/js/latest/api/metadata/ComponentFactory-interface.jade b/public/docs/js/latest/api/metadata/ComponentFactory-interface.jade
new file mode 100644
index 0000000000..cc794d10da
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/ComponentFactory-interface.jade
@@ -0,0 +1,11 @@
+
+p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/metadata.ts (line 139)
+
+:markdown
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
diff --git a/public/docs/js/latest/api/annotations/ComponentAnnotation-class.jade b/public/docs/js/latest/api/metadata/ComponentMetadata-class.jade
similarity index 53%
rename from public/docs/js/latest/api/annotations/ComponentAnnotation-class.jade
rename to public/docs/js/latest/api/metadata/ComponentMetadata-class.jade
index 9737b7075b..781ec8762d 100644
--- a/public/docs/js/latest/api/annotations/ComponentAnnotation-class.jade
+++ b/public/docs/js/latest/api/metadata/ComponentMetadata-class.jade
@@ -1,44 +1,14 @@
p.location-badge.
- exported from angular2/annotations
- defined in angular2/src/core/annotations_impl/annotations.ts (line 754)
+ exported from angular2/metadata
+ defined in angular2/src/core/metadata/directives.ts (line 728)
:markdown
- Declare reusable UI building blocks for an application.
-
- Each Angular component requires a single `@Component` and at least one `@View` annotation. The
- `@Component`
- annotation specifies when a component is instantiated, and which properties and hostListeners it
- binds to.
-
- When a component is instantiated, Angular
- - creates a shadow DOM for the component.
- - loads the selected template into the shadow DOM.
- - creates all the injectable objects configured with `bindings` and `viewBindings`.
-
- All template expressions and statements are then evaluated against the component instance.
-
- For details on the `@View` annotation, see View
.
-
- ## Example
-
- ```
- @Component({
- selector: 'greet'
- })
- @View({
- template: 'Hello {{name}}!'
- })
- class Greet {
- name: string;
-
- constructor() {
- this.name = 'World';
- }
- }
- ```
-
-
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
.l-main-section
h2 Annotations
@@ -58,17 +28,17 @@ p.location-badge.
pre.prettyprint
code.
constructor({selector, properties, events, host, exportAs, lifecycle, bindings, viewBindings,
- changeDetection = DEFAULT, compileChildren = true}?: {
+ changeDetection = ChangeDetectionStrategy.Default, compileChildren = true}?: {
selector?: string,
- properties?: List<string>,
- events?: List<string>,
+ properties?: string[],
+ events?: string[],
host?: StringMap<string, string>,
- lifecycle?: List<LifecycleEvent>,
- bindings?: List<any>,
+ lifecycle?: LifecycleEvent[],
+ bindings?: any[],
exportAs?: string,
compileChildren?: boolean,
- viewBindings?: List<any>,
- changeDetection?: string,
+ viewBindings?: any[],
+ changeDetection?: ChangeDetectionStrategy,
})
:markdown
@@ -86,12 +56,10 @@ p.location-badge.
Defines the used change detection strategy.
When a component is instantiated, Angular creates a change detector, which is responsible for
- propagating
- the component's bindings.
+ propagating the component's bindings.
The `changeDetection` property defines, whether the change detection will be checked every time
- or only when the component
- tells it to do so.
+ or only when the component tells it to do so.
diff --git a/public/docs/js/latest/api/metadata/Directive-var.jade b/public/docs/js/latest/api/metadata/Directive-var.jade
new file mode 100644
index 0000000000..41ec79901b
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/Directive-var.jade
@@ -0,0 +1,11 @@
+
+.l-main-section
+ p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/metadata.ts (line 408)
+
+ :markdown
+ DirectiveMetadata
factory function.
+
+
+
diff --git a/public/docs/js/latest/api/metadata/DirectiveDecorator-interface.jade b/public/docs/js/latest/api/metadata/DirectiveDecorator-interface.jade
new file mode 100644
index 0000000000..0a5d03833c
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/DirectiveDecorator-interface.jade
@@ -0,0 +1,11 @@
+
+p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/metadata.ts (line 39)
+
+:markdown
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
diff --git a/public/docs/js/latest/api/metadata/DirectiveFactory-interface.jade b/public/docs/js/latest/api/metadata/DirectiveFactory-interface.jade
new file mode 100644
index 0000000000..401cbd63a6
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/DirectiveFactory-interface.jade
@@ -0,0 +1,11 @@
+
+p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/metadata.ts (line 86)
+
+:markdown
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
diff --git a/public/docs/js/latest/api/metadata/DirectiveMetadata-class.jade b/public/docs/js/latest/api/metadata/DirectiveMetadata-class.jade
new file mode 100644
index 0000000000..0c28e61b7b
--- /dev/null
+++ b/public/docs/js/latest/api/metadata/DirectiveMetadata-class.jade
@@ -0,0 +1,432 @@
+
+p.location-badge.
+ exported from angular2/metadata
+ defined in angular2/src/core/metadata/directives.ts (line 3)
+
+:markdown
+ Annotations provide the additional information that Angular requires in order to run your
+ application. This module
+ contains ComponentMetadata
, DirectiveMetadata
, and ViewMetadata
+ annotations, as well as
+ the Host
annotation that is used by Angular to resolve dependencies.
+
+.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({
+ selector, properties, events, host, lifecycle, bindings, exportAs,
+ compileChildren = true,
+ }?: {
+ selector?: string,
+ properties?: string[],
+ events?: string[],
+ host?: StringMap<string, string>,
+ lifecycle?: LifecycleEvent[],
+ bindings?: any[],
+ exportAs?: string,
+ compileChildren?: boolean,
+ })
+
+ :markdown
+
+
+
+
+
+
+ .l-sub-section
+ h3 selector
+
+
+ :markdown
+ The CSS selector that triggers the instantiation of a directive.
+
+ Angular only allows directives to trigger on CSS selectors that do not cross element
+ boundaries.
+
+ `selector` may be declared as one of the following:
+
+ - `element-name`: select by element name.
+ - `.class`: select by class name.
+ - `[attribute]`: select by attribute name.
+ - `[attribute=value]`: select by attribute name and value.
+ - `:not(sub_selector)`: select only if the element does not match the `sub_selector`.
+ - `selector1, selector2`: select if either `selector1` or `selector2` matches.
+
+
+
+
+ Suppose we have a directive with an `input[type=text]` selector.
+
+ And the following HTML:
+
+ ```html
+