diff --git a/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade b/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade index 47089f5fb5..9f45ac1786 100644 --- a/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade +++ b/public/docs/js/latest/api/annotations/LifecycleEvent-enum.jade @@ -1,166 +1,13 @@ -p.location-badge. - exported from angular2/annotations - defined in angular2/src/core/annotations_impl/annotations.ts (line 900) - -: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() { - } - - } - ``` - - - +

angular2/annotations/LifecycleEvent

+

(enum)

+
+

Lifecycle events are guaranteed to be called in the following order:

+ +
diff --git a/public/docs/js/latest/api/annotations/OnAllChangesDone-interface.jade b/public/docs/js/latest/api/annotations/OnAllChangesDone-interface.jade index 4fc307391a..07bdcfa9cf 100644 --- a/public/docs/js/latest/api/annotations/OnAllChangesDone-interface.jade +++ b/public/docs/js/latest/api/annotations/OnAllChangesDone-interface.jade @@ -1,11 +1,12 @@ p.location-badge. exported from angular2/annotations - defined in angular2/src/core/compiler/interfaces.ts (line 27) + defined in angular2/src/core/compiler/interfaces.ts (line 30) :markdown - Defines lifecycle method [onAllChangesDone ] called when the bindings of all its children have - been changed. + Defines lifecycle method + `LifeCycleEvent.onAllChangesDone` + called when the bindings of all its children have been changed. .l-main-section diff --git a/public/docs/js/latest/api/annotations/OnChange-interface.jade b/public/docs/js/latest/api/annotations/OnChange-interface.jade index 9aaf945898..22a286fb56 100644 --- a/public/docs/js/latest/api/annotations/OnChange-interface.jade +++ b/public/docs/js/latest/api/annotations/OnChange-interface.jade @@ -4,8 +4,8 @@ p.location-badge. defined in angular2/src/core/compiler/interfaces.ts (line 7) :markdown - Defines lifecycle method [onChange] called after all of component's bound - properties are updated. + Defines lifecycle method `LifeCycleEvent.onChange` + called after all of component's bound properties are updated. .l-main-section diff --git a/public/docs/js/latest/api/annotations/OnCheck-interface.jade b/public/docs/js/latest/api/annotations/OnCheck-interface.jade index 4abf179dfa..566b94de43 100644 --- a/public/docs/js/latest/api/annotations/OnCheck-interface.jade +++ b/public/docs/js/latest/api/annotations/OnCheck-interface.jade @@ -1,10 +1,11 @@ p.location-badge. exported from angular2/annotations - defined in angular2/src/core/compiler/interfaces.ts (line 17) + defined in angular2/src/core/compiler/interfaces.ts (line 18) :markdown - Defines lifecycle method [onCheck] called when a directive is being checked. + Defines lifecycle method `LifeCycleEvent.onCheck` + called when a directive is being checked. .l-main-section diff --git a/public/docs/js/latest/api/annotations/OnDestroy-interface.jade b/public/docs/js/latest/api/annotations/OnDestroy-interface.jade index 86fe7e1fe2..c677b24e34 100644 --- a/public/docs/js/latest/api/annotations/OnDestroy-interface.jade +++ b/public/docs/js/latest/api/annotations/OnDestroy-interface.jade @@ -1,10 +1,11 @@ p.location-badge. exported from angular2/annotations - defined in angular2/src/core/compiler/interfaces.ts (line 12) + defined in angular2/src/core/compiler/interfaces.ts (line 12) :markdown - Defines lifecycle method [onDestroy] called when a directive is being destroyed. + Defines lifecycle method `LifeCycleEvent.onDestroy` + called when a directive is being destroyed. .l-main-section diff --git a/public/docs/js/latest/api/annotations/OnInit-interface.jade b/public/docs/js/latest/api/annotations/OnInit-interface.jade index aab4c1725e..a5d19557d5 100644 --- a/public/docs/js/latest/api/annotations/OnInit-interface.jade +++ b/public/docs/js/latest/api/annotations/OnInit-interface.jade @@ -1,10 +1,11 @@ p.location-badge. exported from angular2/annotations - defined in angular2/src/core/compiler/interfaces.ts (line 22) + defined in angular2/src/core/compiler/interfaces.ts (line 24) :markdown - Defines lifecycle method [onInit] called when a directive is being checked the first time. + Defines lifecycle method `LifeCycleEvent.onInit` + called when a directive is being checked the first time. .l-main-section diff --git a/public/docs/js/latest/api/annotations/ViewAnnotation-class.jade b/public/docs/js/latest/api/annotations/ViewAnnotation-class.jade index f539753b18..cebf069d17 100644 --- a/public/docs/js/latest/api/annotations/ViewAnnotation-class.jade +++ b/public/docs/js/latest/api/annotations/ViewAnnotation-class.jade @@ -74,7 +74,7 @@ p.location-badge. :markdown - Specifies an inline template for an angular component. + Specifies a template URL for an angular component. NOTE: either `templateUrl` or `template` should be used, but not both. @@ -89,7 +89,7 @@ p.location-badge. :markdown - Specifies a template URL for an angular component. + Specifies an inline template for an angular component. NOTE: either `templateUrl` or `template` should be used, but not both. diff --git a/public/docs/js/latest/api/annotations/ViewEncapsulation-enum.jade b/public/docs/js/latest/api/annotations/ViewEncapsulation-enum.jade index 0560bacd61..ccc46905d8 100644 --- a/public/docs/js/latest/api/annotations/ViewEncapsulation-enum.jade +++ b/public/docs/js/latest/api/annotations/ViewEncapsulation-enum.jade @@ -1,50 +1,7 @@ -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. - - - - - +

angular2/annotations/ViewEncapsulation

+

(enum)

+
+

How the template and styles of a view should be encapsulated.

+
diff --git a/public/docs/js/latest/api/http/ReadyStates-enum.jade b/public/docs/js/latest/api/http/ReadyStates-enum.jade index b397c043e6..4cd0c2f918 100644 --- a/public/docs/js/latest/api/http/ReadyStates-enum.jade +++ b/public/docs/js/latest/api/http/ReadyStates-enum.jade @@ -1,84 +1,9 @@ -p.location-badge. - exported from angular2/http - defined in angular2/src/http/enums.ts (line 55) - -:markdown - All possible states in which a connection can be, based on - [States](http://www.w3.org/TR/XMLHttpRequest/#states) from the `XMLHttpRequest` spec, but with an - additional "CANCELLED" state. - - -.l-main-section - h2 Members - .l-sub-section - h3 UNSENT - - - :markdown - - - - - - - - .l-sub-section - h3 OPEN - - - :markdown - - - - - - - - .l-sub-section - h3 HEADERS_RECEIVED - - - :markdown - - - - - - - - .l-sub-section - h3 LOADING - - - :markdown - - - - - - - - .l-sub-section - h3 DONE - - - :markdown - - - - - - - - .l-sub-section - h3 CANCELLED - - - :markdown - - - - - +

angular2/http/ReadyStates

+

(enum)

+
+

All possible states in which a connection can be, based on +States from the XMLHttpRequest spec, but with an +additional "CANCELLED" state.

+
diff --git a/public/docs/js/latest/api/http/RequestCacheOpts-enum.jade b/public/docs/js/latest/api/http/RequestCacheOpts-enum.jade index 148e1ddd5b..efe4ab76cd 100644 --- a/public/docs/js/latest/api/http/RequestCacheOpts-enum.jade +++ b/public/docs/js/latest/api/http/RequestCacheOpts-enum.jade @@ -1,83 +1,8 @@ -p.location-badge. - exported from angular2/http - defined in angular2/src/http/enums.ts (line 11) - -:markdown - Acceptable cache option to be associated with a Request, based on - [RequestCache](https://fetch.spec.whatwg.org/#requestcache) from the Fetch spec. - - -.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 - - - - - +

angular2/http/RequestCacheOpts

+

(enum)

+
+

Acceptable cache option to be associated with a Request, based on +RequestCache from the Fetch spec.

+
diff --git a/public/docs/js/latest/api/http/RequestCredentialsOpts-enum.jade b/public/docs/js/latest/api/http/RequestCredentialsOpts-enum.jade index 085be148a5..917740aa93 100644 --- a/public/docs/js/latest/api/http/RequestCredentialsOpts-enum.jade +++ b/public/docs/js/latest/api/http/RequestCredentialsOpts-enum.jade @@ -1,47 +1,8 @@ -p.location-badge. - exported from angular2/http - defined in angular2/src/http/enums.ts (line 24) - -:markdown - Acceptable credentials option to be associated with a Request, based on - [RequestCredentials](https://fetch.spec.whatwg.org/#requestcredentials) from the Fetch spec. - - -.l-main-section - h2 Members - .l-sub-section - h3 Omit - - - :markdown - - - - - - - - .l-sub-section - h3 SameOrigin - - - :markdown - - - - - - - - .l-sub-section - h3 Include - - - :markdown - - - - - +

angular2/http/RequestCredentialsOpts

+

(enum)

+
+

Acceptable credentials option to be associated with a Request, based on +RequestCredentials from the Fetch spec.

+
diff --git a/public/docs/js/latest/api/http/RequestMethods-enum.jade b/public/docs/js/latest/api/http/RequestMethods-enum.jade index 0292cde356..5a5507e088 100644 --- a/public/docs/js/latest/api/http/RequestMethods-enum.jade +++ b/public/docs/js/latest/api/http/RequestMethods-enum.jade @@ -1,94 +1,7 @@ -p.location-badge. - exported from angular2/http - defined in angular2/src/http/enums.ts (line 34) - -:markdown - Supported http methods. - - -.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 - - - - - +

angular2/http/RequestMethods

+

(enum)

+
+

Supported http methods.

+
diff --git a/public/docs/js/latest/api/http/RequestModesOpts-enum.jade b/public/docs/js/latest/api/http/RequestModesOpts-enum.jade index 33c2ab8c83..82575fce28 100644 --- a/public/docs/js/latest/api/http/RequestModesOpts-enum.jade +++ b/public/docs/js/latest/api/http/RequestModesOpts-enum.jade @@ -1,47 +1,8 @@ -p.location-badge. - exported from angular2/http - defined in angular2/src/http/enums.ts (line 1) - -:markdown - Acceptable origin modes to be associated with a Request, based on - [RequestMode](https://fetch.spec.whatwg.org/#requestmode) from the Fetch spec. - - -.l-main-section - h2 Members - .l-sub-section - h3 Cors - - - :markdown - - - - - - - - .l-sub-section - h3 NoCors - - - :markdown - - - - - - - - .l-sub-section - h3 SameOrigin - - - :markdown - - - - - +

angular2/http/RequestModesOpts

+

(enum)

+
+

Acceptable origin modes to be associated with a Request, based on +RequestMode from the Fetch spec.

+
diff --git a/public/docs/js/latest/api/http/ResponseTypes-enum.jade b/public/docs/js/latest/api/http/ResponseTypes-enum.jade index f399d1fa4e..2b5af6f3e1 100644 --- a/public/docs/js/latest/api/http/ResponseTypes-enum.jade +++ b/public/docs/js/latest/api/http/ResponseTypes-enum.jade @@ -1,71 +1,8 @@ -p.location-badge. - exported from angular2/http - defined in angular2/src/http/enums.ts (line 68) - -:markdown - Acceptable response types to be associated with a Response, based on - [ResponseType](https://fetch.spec.whatwg.org/#responsetype) from the Fetch spec. - - -.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 - - - - - +

angular2/http/ResponseTypes

+

(enum)

+
+

Acceptable response types to be associated with a Response, based on +ResponseType from the Fetch spec.

+