docs(api): more updates for harp 0.17.0

This commit is contained in:
Naomi Black 2015-07-28 13:28:47 -07:00
parent 9169409c21
commit 111cbe8bce
233 changed files with 1368 additions and 3457 deletions

View File

@ -30,6 +30,16 @@ p.location-badge.
```
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -52,7 +62,6 @@ p.location-badge.
:markdown
@ -65,7 +74,6 @@ p.location-badge.
:markdown
@ -82,7 +90,6 @@ p.location-badge.
toString()
:markdown

View File

@ -14,7 +14,6 @@ p.location-badge.
:markdown
Optional argument for specifying the superclass.
@ -28,7 +27,6 @@ p.location-badge.
:markdown
Required constructor function for a class.
The function may be optionally wrapped in an `Array`, in which case additional parameter

View File

@ -15,7 +15,8 @@ p.location-badge.
- creates a shadow DOM for the component.
- loads the selected template into the shadow DOM.
- creates all the injectable objects configured with `hostInjector` and `viewInjector`.
All template expressions and statements are then evaluated against the component instance.
For details on the `@View` annotation, see <a href='View-var.html'><code>View</code></a>.
@ -39,6 +40,16 @@ p.location-badge.
```
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -73,7 +84,6 @@ p.location-badge.
:markdown
Defines the used change detection strategy.
When a component is instantiated, Angular creates a change detector, which is responsible for
@ -95,7 +105,6 @@ p.location-badge.
:markdown
Defines the set of injectable objects that are visible to its view dom children.
## Simple Example

View File

@ -27,7 +27,6 @@ p.location-badge.
})
:markdown
Chain <a href='View-var.html'><code>View</code></a> annotation.

View File

@ -382,6 +382,16 @@ p.location-badge.
view occurs on the second `<li></li>` which is a sibling to the `<template>` element.
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -416,7 +426,6 @@ p.location-badge.
: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
@ -458,7 +467,6 @@ p.location-badge.
:markdown
Enumerates the set of properties that accept data binding for a directive.
The `properties` property defines a set of `directiveProperty` to `bindingProperty`
@ -561,7 +569,6 @@ p.location-badge.
:markdown
Enumerates the set of emitted events.
## Syntax
@ -614,7 +621,6 @@ p.location-badge.
:markdown
Specifiy the events, actions, properties and attributes related to the host element.
## Events
@ -750,7 +756,6 @@ p.location-badge.
:markdown
Specifies which lifecycle should be notified to the directive.
See <a href='LifecycleEvent-enum.html'><code>LifecycleEvent</code></a> for details.
@ -766,7 +771,6 @@ p.location-badge.
:markdown
If set to false the compiler does not compile the children of this directive.
@ -780,7 +784,6 @@ p.location-badge.
:markdown
Defines the set of injectable objects that are visible to a Directive and its light dom
children.
@ -821,7 +824,6 @@ p.location-badge.
:markdown
Defines the name that can be used in the template to assign this directive to a variable.
## Simple Example

View File

@ -19,7 +19,6 @@ p.location-badge.
onAllChangesDone()
:markdown

View File

@ -19,7 +19,6 @@ p.location-badge.
onChange(changes: StringMap&lt;string, any&gt;)
:markdown

View File

@ -18,7 +18,6 @@ p.location-badge.
onCheck()
:markdown

View File

@ -18,7 +18,6 @@ p.location-badge.
onDestroy()
:markdown

View File

@ -18,7 +18,6 @@ p.location-badge.
onInit()
:markdown

View File

@ -9,6 +9,16 @@ p.location-badge.
See <a href='../core/QueryList-class.html'><code>QueryList</code></a> for usage and example.
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -31,7 +41,6 @@ p.location-badge.
:markdown
@ -44,7 +53,6 @@ p.location-badge.
:markdown
@ -57,7 +65,6 @@ p.location-badge.
:markdown
@ -70,7 +77,6 @@ p.location-badge.
:markdown
@ -83,7 +89,6 @@ p.location-badge.
:markdown
@ -100,7 +105,6 @@ p.location-badge.
toString()
:markdown

View File

@ -33,7 +33,6 @@ p.location-badge.
:markdown
Storage for the accumulated annotations so far used by the DSL syntax.
Used by <a href='Class-function.html'><code>Class</code></a> to annotate the generated class.
@ -53,7 +52,6 @@ p.location-badge.
Class(obj: ClassDefinition)
:markdown
Generate a class from the definition and annotate it with <a href='TypeDecorator-interface.html#annotations'><code>TypeDecorator</code></a>.

View File

@ -35,6 +35,16 @@ p.location-badge.
```
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -64,7 +74,6 @@ p.location-badge.
:markdown
Specifies an inline template for an angular component.
NOTE: either `templateUrl` or `template` should be used, but not both.
@ -80,7 +89,6 @@ p.location-badge.
:markdown
Specifies a template URL for an angular component.
NOTE: either `templateUrl` or `template` should be used, but not both.
@ -96,7 +104,6 @@ p.location-badge.
:markdown
Specifies stylesheet URLs for an angular component.
@ -110,7 +117,6 @@ p.location-badge.
:markdown
Specifies an inline stylesheet for an angular component.
@ -124,7 +130,6 @@ p.location-badge.
:markdown
Specifies a list of directives that can be used within a template.
Directives must be listed explicitly to provide proper component encapsulation.
@ -157,7 +162,6 @@ p.location-badge.
:markdown
Specify a custom renderer for this View.
If this is set, neither `template`, `templateUrl`, `styles`, `styleUrls` nor `directives` are
used.

View File

@ -27,7 +27,6 @@ p.location-badge.
})
:markdown
Chain <a href='View-var.html'><code>View</code></a> annotation.

View File

@ -1,90 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/parser/ast.ts#L3-L15">angular2/src/change_detection/parser/ast.ts (line 3)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 eval
pre.prettyprint
code.
eval(context: any, locals: Locals)
:markdown
.l-sub-section
h3 isAssignable
:markdown
.l-sub-section
h3 assign
pre.prettyprint
code.
assign(context: any, locals: Locals, value: any)
:markdown
.l-sub-section
h3 visit
pre.prettyprint
code.
visit(visitor: AstVisitor)
:markdown
.l-sub-section
h3 toString
pre.prettyprint
code.
toString()
:markdown

View File

@ -1,144 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/parser/ast.ts#L310-L326">angular2/src/change_detection/parser/ast.ts (line 310)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(ast: AST, source: string, location: string)
:markdown
.l-sub-section
h3 ast
:markdown
.l-sub-section
h3 source
:markdown
.l-sub-section
h3 location
:markdown
.l-sub-section
h3 eval
pre.prettyprint
code.
eval(context: any, locals: Locals)
:markdown
.l-sub-section
h3 isAssignable
:markdown
.l-sub-section
h3 assign
pre.prettyprint
code.
assign(context: any, locals: Locals, value: any)
:markdown
.l-sub-section
h3 visit
pre.prettyprint
code.
visit(visitor: AstVisitor)
:markdown
.l-sub-section
h3 toString
pre.prettyprint
code.
toString()
:markdown

View File

@ -1,140 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/parser/ast.ts#L75-L107">angular2/src/change_detection/parser/ast.ts (line 75)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(receiver: AST, name: string, getter: Function, setter: Function)
:markdown
.l-sub-section
h3 receiver
:markdown
.l-sub-section
h3 name
:markdown
.l-sub-section
h3 getter
:markdown
.l-sub-section
h3 setter
:markdown
.l-sub-section
h3 eval
pre.prettyprint
code.
eval(context: any, locals: Locals)
:markdown
.l-sub-section
h3 isAssignable
:markdown
.l-sub-section
h3 assign
pre.prettyprint
code.
assign(context: any, locals: Locals, value: any)
:markdown
.l-sub-section
h3 visit
pre.prettyprint
code.
visit(visitor: AstVisitor)
:markdown

View File

@ -1,332 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/parser/ast.ts#L352-L430">angular2/src/change_detection/parser/ast.ts (line 352)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 visitImplicitReceiver
pre.prettyprint
code.
visitImplicitReceiver(ast: ImplicitReceiver)
:markdown
.l-sub-section
h3 visitInterpolation
pre.prettyprint
code.
visitInterpolation(ast: Interpolation)
:markdown
.l-sub-section
h3 visitLiteralPrimitive
pre.prettyprint
code.
visitLiteralPrimitive(ast: LiteralPrimitive)
:markdown
.l-sub-section
h3 visitAccessMember
pre.prettyprint
code.
visitAccessMember(ast: AccessMember)
:markdown
.l-sub-section
h3 visitSafeAccessMember
pre.prettyprint
code.
visitSafeAccessMember(ast: SafeAccessMember)
:markdown
.l-sub-section
h3 visitMethodCall
pre.prettyprint
code.
visitMethodCall(ast: MethodCall)
:markdown
.l-sub-section
h3 visitSafeMethodCall
pre.prettyprint
code.
visitSafeMethodCall(ast: SafeMethodCall)
:markdown
.l-sub-section
h3 visitFunctionCall
pre.prettyprint
code.
visitFunctionCall(ast: FunctionCall)
:markdown
.l-sub-section
h3 visitLiteralArray
pre.prettyprint
code.
visitLiteralArray(ast: LiteralArray)
:markdown
.l-sub-section
h3 visitLiteralMap
pre.prettyprint
code.
visitLiteralMap(ast: LiteralMap)
:markdown
.l-sub-section
h3 visitBinary
pre.prettyprint
code.
visitBinary(ast: Binary)
:markdown
.l-sub-section
h3 visitPrefixNot
pre.prettyprint
code.
visitPrefixNot(ast: PrefixNot)
:markdown
.l-sub-section
h3 visitConditional
pre.prettyprint
code.
visitConditional(ast: Conditional)
:markdown
.l-sub-section
h3 visitPipe
pre.prettyprint
code.
visitPipe(ast: BindingPipe)
:markdown
.l-sub-section
h3 visitKeyedAccess
pre.prettyprint
code.
visitKeyedAccess(ast: KeyedAccess)
:markdown
.l-sub-section
h3 visitAll
pre.prettyprint
code.
visitAll(asts: List&lt;any&gt;)
:markdown
.l-sub-section
h3 visitChain
pre.prettyprint
code.
visitChain(ast: Chain)
:markdown
.l-sub-section
h3 visitAssignment
pre.prettyprint
code.
visitAssignment(ast: Assignment)
:markdown
.l-sub-section
h3 visitIf
pre.prettyprint
code.
visitIf(ast: If)
:markdown

View File

@ -1,15 +1,15 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/pipes/pipe.ts#L55-L75">angular2/src/change_detection/pipes/pipe.ts (line 55)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/pipes/pipe.ts#L58-L78">angular2/src/change_detection/pipes/pipe.ts (line 58)</a>
:markdown
Provides default implementation of supports and onDestroy.
Provides default implementation of `supports` and `onDestroy` method.
#Example
```
class DoublePipe extends BasePipe {*
class DoublePipe extends BasePipe {
transform(value) {
return `${value}${value}`;
}
@ -17,6 +17,16 @@ p.location-badge.
```
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -28,7 +38,6 @@ p.location-badge.
supports(obj: any)
:markdown
@ -45,7 +54,6 @@ p.location-badge.
onDestroy()
:markdown
@ -62,7 +70,6 @@ p.location-badge.
transform(value: any, args: List&lt;any&gt;)
:markdown

View File

@ -1,294 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/binding_record.ts#L12-L113">angular2/src/change_detection/binding_record.ts (line 12)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(mode: string, implicitReceiver: any, ast: AST, elementIndex: number, propertyName: string, propertyUnit: string, setter: SetterFn, lifecycleEvent: string, directiveRecord: DirectiveRecord)
:markdown
.l-sub-section
h3 mode
:markdown
.l-sub-section
h3 implicitReceiver
:markdown
.l-sub-section
h3 ast
:markdown
.l-sub-section
h3 elementIndex
:markdown
.l-sub-section
h3 propertyName
:markdown
.l-sub-section
h3 propertyUnit
:markdown
.l-sub-section
h3 setter
:markdown
.l-sub-section
h3 lifecycleEvent
:markdown
.l-sub-section
h3 directiveRecord
:markdown
.l-sub-section
h3 callOnChange
pre.prettyprint
code.
callOnChange()
:markdown
.l-sub-section
h3 isOnPushChangeDetection
pre.prettyprint
code.
isOnPushChangeDetection()
:markdown
.l-sub-section
h3 isDirective
pre.prettyprint
code.
isDirective()
:markdown
.l-sub-section
h3 isDirectiveLifecycle
pre.prettyprint
code.
isDirectiveLifecycle()
:markdown
.l-sub-section
h3 isElementProperty
pre.prettyprint
code.
isElementProperty()
:markdown
.l-sub-section
h3 isElementAttribute
pre.prettyprint
code.
isElementAttribute()
:markdown
.l-sub-section
h3 isElementClass
pre.prettyprint
code.
isElementClass()
:markdown
.l-sub-section
h3 isElementStyle
pre.prettyprint
code.
isElementStyle()
:markdown
.l-sub-section
h3 isTextNode
pre.prettyprint
code.
isTextNode()
:markdown

View File

@ -1,49 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/interfaces.ts#L5-L37">angular2/src/change_detection/interfaces.ts (line 5)</a>
:markdown
Interface used by Angular to control the change detection strategy for an application.
Angular implements the following change detection strategies by default:
- <a href='DynamicChangeDetection-class.html'><code>DynamicChangeDetection</code></a>: slower, but does not require `eval()`.
- <a href='JitChangeDetection-class.html'><code>JitChangeDetection</code></a>: faster, but requires `eval()`.
In JavaScript, you should always use `JitChangeDetection`, unless you are in an environment that
has
[CSP](https://developer.mozilla.org/en-US/docs/Web/Security/CSP), such as a Chrome Extension.
In Dart, use `DynamicChangeDetection` during development. The Angular transformer generates an
analog to the
`JitChangeDetection` strategy at compile time.
See: <a href='DynamicChangeDetection-class.html'><code>DynamicChangeDetection</code></a>, <a href='JitChangeDetection-class.html'><code>JitChangeDetection</code></a>,
<a href='PreGeneratedChangeDetection-class.html'><code>PreGeneratedChangeDetection</code></a>
# Example
```javascript
bootstrap(MyApp, [bind(ChangeDetection).toClass(DynamicChangeDetection)]);
```
.l-main-section
h2 Members
.l-sub-section
h3 createProtoChangeDetector
pre.prettyprint
code.
createProtoChangeDetector(definition: ChangeDetectorDefinition)
:markdown

View File

@ -1,9 +1,12 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/exceptions.ts#L9-L19">angular2/src/change_detection/exceptions.ts (line 9)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/exceptions.ts#L18-L36">angular2/src/change_detection/exceptions.ts (line 18)</a>
:markdown
Thrown when an expression evaluation raises an exception.
This error wraps the original exception, this is done to attach expression location information.
.l-main-section
@ -14,7 +17,7 @@ p.location-badge.
pre.prettyprint
code.
constructor(proto: ProtoRecord, originalException: any, originalStack: any)
constructor(proto: ProtoRecord, originalException: any, originalStack: any, context: any)
:markdown
@ -28,7 +31,7 @@ p.location-badge.
:markdown
Location of the expression.

View File

@ -1,205 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/interfaces.ts#L42-L59">angular2/src/change_detection/interfaces.ts (line 42)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 parent
:markdown
.l-sub-section
h3 mode
:markdown
.l-sub-section
h3 addChild
pre.prettyprint
code.
addChild(cd: ChangeDetector)
:markdown
.l-sub-section
h3 addShadowDomChild
pre.prettyprint
code.
addShadowDomChild(cd: ChangeDetector)
:markdown
.l-sub-section
h3 removeChild
pre.prettyprint
code.
removeChild(cd: ChangeDetector)
:markdown
.l-sub-section
h3 removeShadowDomChild
pre.prettyprint
code.
removeShadowDomChild(cd: ChangeDetector)
:markdown
.l-sub-section
h3 remove
pre.prettyprint
code.
remove()
:markdown
.l-sub-section
h3 hydrate
pre.prettyprint
code.
hydrate(context: any, locals: Locals, directives: any, pipes: any)
:markdown
.l-sub-section
h3 dehydrate
pre.prettyprint
code.
dehydrate()
:markdown
.l-sub-section
h3 markPathToRootAsCheckOnce
pre.prettyprint
code.
markPathToRootAsCheckOnce()
:markdown
.l-sub-section
h3 detectChanges
pre.prettyprint
code.
detectChanges()
:markdown
.l-sub-section
h3 checkNoChanges
pre.prettyprint
code.
checkNoChanges()
:markdown

View File

@ -1,89 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/interfaces.ts#L61-L67">angular2/src/change_detection/interfaces.ts (line 61)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(id: string, strategy: string, variableNames: List&lt;string&gt;, bindingRecords: List&lt;BindingRecord&gt;, directiveRecords: List&lt;DirectiveRecord&gt;)
:markdown
.l-sub-section
h3 id
:markdown
.l-sub-section
h3 strategy
:markdown
.l-sub-section
h3 variableNames
:markdown
.l-sub-section
h3 bindingRecords
:markdown
.l-sub-section
h3 directiveRecords
:markdown

View File

@ -1,14 +1,13 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/change_detector_ref.ts#L2-L37">angular2/src/change_detection/change_detector_ref.ts (line 2)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/change_detector_ref.ts#L2-L39">angular2/src/change_detection/change_detector_ref.ts (line 2)</a>
:markdown
Controls change detection.
<a href='ChangeDetectorRef-class.html'><code>ChangeDetectorRef</code></a> allows requesting checks for detectors that rely on observables. It
also allows detaching and
attaching change detector subtrees.
also allows detaching and attaching change detector subtrees.
.l-main-section
@ -23,7 +22,6 @@ p.location-badge.
:markdown
@ -37,7 +35,6 @@ p.location-badge.
requestCheck()
:markdown
Request to check all ON_PUSH ancestors.
@ -55,7 +52,6 @@ p.location-badge.
detach()
:markdown
Detaches the change detector from the change detector tree.
The detached change detector will not be checked until it is reattached.
@ -75,7 +71,6 @@ p.location-badge.
reattach()
:markdown
Reattach the change detector to the change detector tree.
This also requests a check of this change detector. This reattached change detector will be

View File

@ -1,43 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/interfaces.ts#L37-L42">angular2/src/change_detection/interfaces.ts (line 37)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 notifyOnBinding
pre.prettyprint
code.
notifyOnBinding(bindingRecord: BindingRecord, value: any)
:markdown
.l-sub-section
h3 notifyOnAllChangesDone
pre.prettyprint
code.
notifyOnAllChangesDone()
:markdown

View File

@ -1,24 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/exceptions.ts#L19-L23">angular2/src/change_detection/exceptions.ts (line 19)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor()
:markdown

View File

@ -1,63 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/directive_record.ts#L2-L8">angular2/src/change_detection/directive_record.ts (line 2)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(elementIndex: number, directiveIndex: number)
:markdown
.l-sub-section
h3 elementIndex
:markdown
.l-sub-section
h3 directiveIndex
:markdown
.l-sub-section
h3 name
:markdown

View File

@ -1,127 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/directive_record.ts#L8-L36">angular2/src/change_detection/directive_record.ts (line 8)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor({directiveIndex, callOnAllChangesDone, callOnChange, callOnCheck, callOnInit,
changeDetection}?: {
directiveIndex?: DirectiveIndex,
callOnAllChangesDone?: boolean,
callOnChange?: boolean,
callOnCheck?: boolean,
callOnInit?: boolean,
changeDetection?: string
})
:markdown
.l-sub-section
h3 directiveIndex
:markdown
.l-sub-section
h3 callOnAllChangesDone
:markdown
.l-sub-section
h3 callOnChange
:markdown
.l-sub-section
h3 callOnCheck
:markdown
.l-sub-section
h3 callOnInit
:markdown
.l-sub-section
h3 changeDetection
:markdown
.l-sub-section
h3 isOnPushChangeDetection
pre.prettyprint
code.
isOnPushChangeDetection()
:markdown

View File

@ -1,29 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/change_detection.ts#L143-L156">angular2/src/change_detection/change_detection.ts (line 143)</a>
:markdown
Implements change detection that does not require `eval()`.
This is slower than <a href='JitChangeDetection-class.html'><code>JitChangeDetection</code></a>.
.l-main-section
h2 Members
.l-sub-section
h3 createProtoChangeDetector
pre.prettyprint
code.
createProtoChangeDetector(definition: ChangeDetectorDefinition)
:markdown

View File

@ -1,265 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/dynamic_change_detector.ts#L11-L320">angular2/src/change_detection/dynamic_change_detector.ts (line 11)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(id: string, changeControlStrategy: string, dispatcher: any, protos: List&lt;ProtoRecord&gt;, directiveRecords: List&lt;any&gt;)
:markdown
.l-sub-section
h3 locals
:markdown
.l-sub-section
h3 values
:markdown
.l-sub-section
h3 changes
:markdown
.l-sub-section
h3 localPipes
:markdown
.l-sub-section
h3 prevContexts
:markdown
.l-sub-section
h3 directives
:markdown
.l-sub-section
h3 alreadyChecked
:markdown
.l-sub-section
h3 pipes
:markdown
.l-sub-section
h3 changeControlStrategy
:markdown
.l-sub-section
h3 dispatcher
:markdown
.l-sub-section
h3 protos
:markdown
.l-sub-section
h3 directiveRecords
:markdown
.l-sub-section
h3 hydrate
pre.prettyprint
code.
hydrate(context: any, locals: Locals, directives: any, pipes: Pipes)
:markdown
.l-sub-section
h3 dehydrate
pre.prettyprint
code.
dehydrate()
:markdown
.l-sub-section
h3 hydrated
pre.prettyprint
code.
hydrated()
:markdown
.l-sub-section
h3 detectChangesInRecords
pre.prettyprint
code.
detectChangesInRecords(throwOnChange: boolean)
:markdown
.l-sub-section
h3 callOnAllChangesDone
pre.prettyprint
code.
callOnAllChangesDone()
:markdown

View File

@ -1,54 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/proto_change_detector.ts#L36-L56">angular2/src/change_detection/proto_change_detector.ts (line 36)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(definition: ChangeDetectorDefinition)
:markdown
.l-sub-section
h3 definition
:markdown
.l-sub-section
h3 instantiate
pre.prettyprint
code.
instantiate(dispatcher: any)
:markdown

View File

@ -1,24 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/exceptions.ts#L2-L9">angular2/src/change_detection/exceptions.ts (line 2)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(proto: ProtoRecord, change: any)
:markdown

View File

@ -0,0 +1,31 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/exceptions.ts#L2-L18">angular2/src/change_detection/exceptions.ts (line 2)</a>
: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.
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(proto: ProtoRecord, change: any, context: any)
:markdown

View File

@ -1,43 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/parser/ast.ts#L23-L29">angular2/src/change_detection/parser/ast.ts (line 23)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 eval
pre.prettyprint
code.
eval(context: any, locals: Locals)
:markdown
.l-sub-section
h3 visit
pre.prettyprint
code.
visit(visitor: AstVisitor)
:markdown

View File

@ -1,30 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/change_detection.ts#L156-L172">angular2/src/change_detection/change_detection.ts (line 156)</a>
:markdown
Implements faster change detection by generating source code.
This requires `eval()`. For change detection that does not require `eval()`, see
<a href='DynamicChangeDetection-class.html'><code>DynamicChangeDetection</code></a> and <a href='PreGeneratedChangeDetection-class.html'><code>PreGeneratedChangeDetection</code></a>.
.l-main-section
h2 Members
.l-sub-section
h3 createProtoChangeDetector
pre.prettyprint
code.
createProtoChangeDetector(definition: ChangeDetectorDefinition)
:markdown

View File

@ -1,26 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/parser/lexer.ts#L18-L32">angular2/src/change_detection/parser/lexer.ts (line 18)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 tokenize
pre.prettyprint
code.
tokenize(text: string)
:markdown

View File

@ -1,71 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/parser/ast.ts#L156-L166">angular2/src/change_detection/parser/ast.ts (line 156)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(expressions: List&lt;any&gt;)
:markdown
.l-sub-section
h3 expressions
:markdown
.l-sub-section
h3 eval
pre.prettyprint
code.
eval(context: any, locals: Locals)
:markdown
.l-sub-section
h3 visit
pre.prettyprint
code.
visit(visitor: AstVisitor)
:markdown

View File

@ -1,118 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/parser/locals.ts#L2-L44">angular2/src/change_detection/parser/locals.ts (line 2)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(parent: Locals, current: Map&lt;any, any&gt;)
:markdown
.l-sub-section
h3 parent
:markdown
.l-sub-section
h3 current
:markdown
.l-sub-section
h3 contains
pre.prettyprint
code.
contains(name: string)
:markdown
.l-sub-section
h3 get
pre.prettyprint
code.
get(name: string)
:markdown
.l-sub-section
h3 set
pre.prettyprint
code.
set(name: string, value: any)
:markdown
.l-sub-section
h3 clearValues
pre.prettyprint
code.
clearValues()
:markdown

View File

@ -13,7 +13,6 @@ p.location-badge.
:markdown
@ -30,7 +29,6 @@ p.location-badge.
supports(obj: any)
:markdown
@ -47,7 +45,6 @@ p.location-badge.
transform(value: any, args?: List&lt;any&gt;)
:markdown

View File

@ -6,6 +6,16 @@ p.location-badge.
:markdown
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -17,7 +27,6 @@ p.location-badge.
supports(obj: any)
:markdown
@ -34,7 +43,6 @@ p.location-badge.
create(cdRef: ChangeDetectorRef)
:markdown

View File

@ -1,126 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/parser/parser.ts#L49-L107">angular2/src/change_detection/parser/parser.ts (line 49)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(_lexer: Lexer, providedReflector?: Reflector)
:markdown
.l-sub-section
h3 parseAction
pre.prettyprint
code.
parseAction(input: string, location: any)
:markdown
.l-sub-section
h3 parseBinding
pre.prettyprint
code.
parseBinding(input: string, location: any)
:markdown
.l-sub-section
h3 parseSimpleBinding
pre.prettyprint
code.
parseSimpleBinding(input: string, location: string)
:markdown
.l-sub-section
h3 parseTemplateBindings
pre.prettyprint
code.
parseTemplateBindings(input: string, location: any)
:markdown
.l-sub-section
h3 parseInterpolation
pre.prettyprint
code.
parseInterpolation(input: string, location: any)
:markdown
.l-sub-section
h3 wrapLiteralPrimitive
pre.prettyprint
code.
wrapLiteralPrimitive(input: string, location: any)
:markdown

View File

@ -1,12 +1,10 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/pipes/pipe.ts#L28-L55">angular2/src/change_detection/pipes/pipe.ts (line 28)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/pipes/pipe.ts#L28-L58">angular2/src/change_detection/pipes/pipe.ts (line 28)</a>
:markdown
An interface for extending the list of pipes known to Angular.
If you are writing a custom <a href='Pipe-interface.html'><code>Pipe</code></a>, you must extend this interface.
An interface which all pipes must implement.
#Example
@ -36,7 +34,7 @@ p.location-badge.
supports(obj: any)
:markdown
Query if a pipe supports a particular object instance.
@ -53,7 +51,6 @@ p.location-badge.
onDestroy()
:markdown
@ -70,7 +67,6 @@ p.location-badge.
transform(value: any, args: List&lt;any&gt;)
:markdown

View File

@ -1,11 +1,12 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/pipes/pipe.ts#L75-L80">angular2/src/change_detection/pipes/pipe.ts (line 75)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/pipes/pipe.ts#L78-L86">angular2/src/change_detection/pipes/pipe.ts (line 78)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
@ -17,7 +18,6 @@ p.location-badge.
supports(obs: any)
:markdown
@ -34,7 +34,6 @@ p.location-badge.
create(cdRef: ChangeDetectorRef)
:markdown

View File

@ -1,11 +1,28 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/pipes/pipes.ts#L6-L115">angular2/src/change_detection/pipes/pipes.ts (line 6)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/pipes/pipes.ts#L6-L117">angular2/src/change_detection/pipes/pipes.ts (line 6)</a>
:markdown
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation Injectable
pre.prettyprint
code.
@Injectable()
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -28,7 +45,6 @@ p.location-badge.
:markdown
Map of <a href='Pipe-interface.html'><code>Pipe</code></a> names to <a href='PipeFactory-interface.html'><code>PipeFactory</code></a> lists used to configure the
<a href='Pipes-class.html'><code>Pipes</code></a> registry.
@ -60,7 +76,6 @@ p.location-badge.
get(type: string, obj: any, cdRef?: ChangeDetectorRef, existingPipe?: Pipe)
:markdown

View File

@ -1,43 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/change_detection.ts#L115-L143">angular2/src/change_detection/change_detection.ts (line 115)</a>
:markdown
Implements change detection using a map of pregenerated proto detectors.
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(protoChangeDetectorsForTest?:
StringMap&lt;string, Function&gt;)
:markdown
.l-sub-section
h3 createProtoChangeDetector
pre.prettyprint
code.
createProtoChangeDetector(definition: ChangeDetectorDefinition)
:markdown

View File

@ -1,26 +0,0 @@
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/interfaces.ts#L59-L61">angular2/src/change_detection/interfaces.ts (line 59)</a>
:markdown
.l-main-section
h2 Members
.l-sub-section
h3 instantiate
pre.prettyprint
code.
instantiate(dispatcher: any)
:markdown

View File

@ -32,7 +32,6 @@ p.location-badge.
:markdown

View File

@ -4,130 +4,42 @@
"intro" : "Change detection enables data binding in Angular."
},
"ASTWithSource-class" : {
"title" : "ASTWithSource Class"
"CHECK_ONCE-const" : {
"title" : "CHECK_ONCE Const"
},
"AST-class" : {
"title" : "AST Class"
"CHECK_ALWAYS-const" : {
"title" : "CHECK_ALWAYS Const"
},
"AstTransformer-class" : {
"title" : "AstTransformer Class"
"DETACHED-const" : {
"title" : "DETACHED Const"
},
"AccessMember-class" : {
"title" : "AccessMember Class"
"CHECKED-const" : {
"title" : "CHECKED Const"
},
"LiteralArray-class" : {
"title" : "LiteralArray Class"
"ON_PUSH-const" : {
"title" : "ON_PUSH Const"
},
"ImplicitReceiver-class" : {
"title" : "ImplicitReceiver Class"
"DEFAULT-const" : {
"title" : "DEFAULT Const"
},
"Lexer-class" : {
"title" : "Lexer Class"
},
"Parser-class" : {
"title" : "Parser Class"
},
"Locals-class" : {
"title" : "Locals Class"
},
"DehydratedException-class" : {
"title" : "DehydratedException Class"
},
"ExpressionChangedAfterItHasBeenChecked-class" : {
"title" : "ExpressionChangedAfterItHasBeenChecked Class"
"ExpressionChangedAfterItHasBeenCheckedException-class" : {
"title" : "ExpressionChangedAfterItHasBeenCheckedException Class"
},
"ChangeDetectionError-class" : {
"title" : "ChangeDetectionError Class"
},
"ProtoChangeDetector-interface" : {
"title" : "ProtoChangeDetector Interface"
},
"ChangeDetector-interface" : {
"title" : "ChangeDetector Interface"
},
"ChangeDispatcher-interface" : {
"title" : "ChangeDispatcher Interface"
},
"ChangeDetection-class" : {
"title" : "ChangeDetection Class"
},
"ChangeDetectorDefinition-class" : {
"title" : "ChangeDetectorDefinition Class"
},
"CHECK_ONCE-var" : {
"title" : "CHECK_ONCE Var"
},
"CHECK_ALWAYS-var" : {
"title" : "CHECK_ALWAYS Var"
},
"DETACHED-var" : {
"title" : "DETACHED Var"
},
"CHECKED-var" : {
"title" : "CHECKED Var"
},
"ON_PUSH-var" : {
"title" : "ON_PUSH Var"
},
"DEFAULT-var" : {
"title" : "DEFAULT Var"
},
"DynamicProtoChangeDetector-class" : {
"title" : "DynamicProtoChangeDetector Class"
},
"BindingRecord-class" : {
"title" : "BindingRecord Class"
},
"DirectiveIndex-class" : {
"title" : "DirectiveIndex Class"
},
"DirectiveRecord-class" : {
"title" : "DirectiveRecord Class"
},
"DynamicChangeDetector-class" : {
"title" : "DynamicChangeDetector Class"
},
"ChangeDetectorRef-class" : {
"title" : "ChangeDetectorRef Class"
},
"Pipes-class" : {
"title" : "Pipes Class"
},
"uninitialized-var" : {
"title" : "uninitialized Var"
},
"WrappedValue-class" : {
"title" : "WrappedValue Class"
},
@ -136,6 +48,10 @@
"title" : "Pipe Interface"
},
"Pipes-class" : {
"title" : "Pipes Class"
},
"PipeFactory-interface" : {
"title" : "PipeFactory Interface"
},
@ -150,25 +66,5 @@
"NullPipeFactory-class" : {
"title" : "NullPipeFactory Class"
},
"defaultPipes-var" : {
"title" : "defaultPipes Var"
},
"DynamicChangeDetection-class" : {
"title" : "DynamicChangeDetection Class"
},
"JitChangeDetection-class" : {
"title" : "JitChangeDetection Class"
},
"PreGeneratedChangeDetection-class" : {
"title" : "PreGeneratedChangeDetection Class"
},
"preGeneratedProtoDetectors-var" : {
"title" : "preGeneratedProtoDetectors Var"
}
}

View File

@ -1,11 +0,0 @@
.l-main-section
h2 defaultPipes <span class="type">variable</span>
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/change_detection.ts#L92-L104">angular2/src/change_detection/change_detection.ts (line 92)</a>
:markdown

View File

@ -1,5 +1,5 @@
p.location-badge.
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/change_detection.ts#L1-L56">angular2/change_detection.ts (line 1)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/change_detection.ts#L1-L28">angular2/change_detection.ts (line 1)</a>
ul
for page, slug in public.docs[current.path[1]][current.path[2]][current.path[3]][current.path[4]]._data

View File

@ -1,14 +0,0 @@
.l-main-section
h2 preGeneratedProtoDetectors <span class="type">variable</span>
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/change_detection.ts#L113-L113">angular2/src/change_detection/change_detection.ts (line 113)</a>
:markdown
Map from <a href='ChangeDetectorDefinition-class.html#id'><code>ChangeDetectorDefinition</code></a> to a factory method which takes a
<a href='Pipes-class.html'><code>Pipes</code></a> and a <a href='ChangeDetectorDefinition-class.html'><code>ChangeDetectorDefinition</code></a> and generates a
<a href='ProtoChangeDetector-interface.html'><code>ProtoChangeDetector</code></a> associated with the definition.

View File

@ -1,11 +0,0 @@
.l-main-section
h2 uninitialized <span class="type">variable</span>
p.location-badge.
exported from <a href='../change_detection'>angular2/change_detection</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/change_detection/change_detection_util.ts#L8-L8">angular2/src/change_detection/change_detection_util.ts (line 8)</a>
:markdown

View File

@ -1,7 +1,7 @@
p.location-badge.
exported from <a href='../core'>angular2/core</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/services/app_root_url.ts#L3-L30">angular2/src/services/app_root_url.ts (line 3)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/services/app_root_url.ts#L2-L25">angular2/src/services/app_root_url.ts (line 2)</a>
:markdown
Specifies app root url for the application.
@ -13,17 +13,42 @@ p.location-badge.
See <a href='Compiler-class.html'><code>Compiler</code></a>
.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(value: string)
:markdown
.l-sub-section
h3 value
:markdown
Returns the base URL of the currently running application.

View File

@ -9,6 +9,16 @@ p.location-badge.
in AppViewManagerUtils and the Renderer, so unit tests get simpler.
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation Injectable
pre.prettyprint
code.
@Injectable()
.l-main-section
h2 Members
.l-sub-section
@ -34,7 +44,6 @@ p.location-badge.
getViewContainer(location: ElementRef)
:markdown
Returns a <a href='ViewContainerRef-class.html'><code>ViewContainerRef</code></a> at the <a href='ElementRef-class.html'><code>ElementRef</code></a> location.
@ -49,10 +58,9 @@ p.location-badge.
pre.prettyprint
code.
getHostElement(hostViewRef: ViewRef)
getHostElement(hostViewRef: HostViewRef)
:markdown
Return the first child element of the host element view.
@ -70,7 +78,6 @@ p.location-badge.
getNamedElementInComponentView(hostLocation: ElementRef, variableName: string)
:markdown
Returns an ElementRef for the element with the given variable name
in the current view.
@ -94,7 +101,6 @@ p.location-badge.
getComponent(hostLocation: ElementRef)
:markdown
Returns the component instance for a given element.
The component is the execution context as seen by an expression at that <a href='ElementRef-class.html'><code>ElementRef</code></a>
@ -115,7 +121,6 @@ p.location-badge.
createRootHostView(hostProtoViewRef: ProtoViewRef, overrideSelector: string, injector: Injector)
:markdown
Load component view into existing element.
Use this if a host element is already in the DOM and it is necessary to upgrade
@ -181,10 +186,9 @@ p.location-badge.
pre.prettyprint
code.
destroyRootHostView(hostViewRef: ViewRef)
destroyRootHostView(hostViewRef: HostViewRef)
:markdown
Remove the View created with <a href='AppViewManager-class.html#createRootHostView'><code>AppViewManager</code></a>.
@ -202,7 +206,6 @@ p.location-badge.
createEmbeddedViewInContainer(viewContainerLocation: ElementRef, atIndex: number, templateRef: TemplateRef)
:markdown
See <a href='AppViewManager-class.html#destroyViewInContainer'><code>AppViewManager</code></a>.
@ -220,7 +223,6 @@ p.location-badge.
createHostViewInContainer(viewContainerLocation: ElementRef, atIndex: number, protoViewRef: ProtoViewRef, imperativelyCreatedInjector: ResolvedBinding[])
:markdown
See <a href='AppViewManager-class.html#destroyViewInContainer'><code>AppViewManager</code></a>.
@ -238,7 +240,6 @@ p.location-badge.
destroyViewInContainer(viewContainerLocation: ElementRef, atIndex: number)
:markdown
See <a href='AppViewManager-class.html#createViewInContainer'><code>AppViewManager</code></a>.
@ -256,7 +257,6 @@ p.location-badge.
attachViewInContainer(viewContainerLocation: ElementRef, atIndex: number, viewRef: ViewRef)
:markdown
See <a href='AppViewManager-class.html#detachViewInContainer'><code>AppViewManager</code></a>.
@ -274,7 +274,6 @@ p.location-badge.
detachViewInContainer(viewContainerLocation: ElementRef, atIndex: number)
:markdown
See <a href='AppViewManager-class.html#attachViewInContainer'><code>AppViewManager</code></a>.

View File

@ -1,7 +1,7 @@
p.location-badge.
exported from <a href='../core'>angular2/core</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/application_common.ts#L317-L362">angular2/src/core/application_common.ts (line 317)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/application_common.ts#L309-L354">angular2/src/core/application_common.ts (line 309)</a>
:markdown
Represents a Angular's representation of an Application.
@ -32,7 +32,6 @@ p.location-badge.
:markdown
Returns the current <a href='../annotations/Component-var.html'><code>Component</code></a> type.
@ -46,7 +45,6 @@ p.location-badge.
:markdown
Returns the current <a href='../annotations/Component-var.html'><code>Component</code></a> instance.
@ -64,7 +62,6 @@ p.location-badge.
dispose()
:markdown
Dispose (un-load) the application.
@ -78,7 +75,6 @@ p.location-badge.
:markdown
Returns the root application <a href='../di/Injector-class.html'><code>Injector</code></a>.

View File

@ -1,7 +1,7 @@
p.location-badge.
exported from <a href='../core'>angular2/core</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/compiler.ts#L60-L355">angular2/src/core/compiler/compiler.ts (line 60)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/compiler.ts#L60-L344">angular2/src/core/compiler/compiler.ts (line 60)</a>
:markdown
## URL Resolution
@ -24,6 +24,16 @@ p.location-badge.
```
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation Injectable
pre.prettyprint
code.
@Injectable()
.l-main-section
h2 Members
.l-sub-section
@ -49,7 +59,6 @@ p.location-badge.
compileInHost(componentTypeOrBinding: Type | Binding)
:markdown

View File

@ -1,9 +1,12 @@
p.location-badge.
exported from <a href='../core'>angular2/core</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/dynamic_component_loader.ts#L7-L13">angular2/src/core/compiler/dynamic_component_loader.ts (line 7)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/dynamic_component_loader.ts#L7-L42">angular2/src/core/compiler/dynamic_component_loader.ts (line 7)</a>
:markdown
Angular's reference to a component instance.
`ComponentRef` represents a component instance lifecycle and meta information.
.l-main-section
@ -14,11 +17,10 @@ p.location-badge.
pre.prettyprint
code.
constructor(location: ElementRef, instance: any, dispose: Function)
constructor(location: ElementRef, instance: any, _dispose: () =&gt; void)
:markdown
@ -28,7 +30,7 @@ p.location-badge.
:markdown
Location of the component host element.
@ -41,20 +43,7 @@ p.location-badge.
:markdown
.l-sub-section
h3 dispose
:markdown
Instance of component.
@ -67,7 +56,24 @@ p.location-badge.
:markdown
Returns the host <a href='ViewRef-class.html'><code>ViewRef</code></a>.
.l-sub-section
h3 dispose
pre.prettyprint
code.
dispose()
:markdown
Dispose of the component instance.

View File

@ -11,6 +11,16 @@ p.location-badge.
See <a href='Compiler-class.html'><code>Compiler</code></a>
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation Injectable
pre.prettyprint
code.
@Injectable()
.l-main-section
h2 Members
.l-sub-section
@ -22,7 +32,6 @@ p.location-badge.
getUrl(component: Type)
:markdown
Returns the base URL to the component source file.
The returned URL could be:
- an absolute URL,

View File

@ -11,6 +11,16 @@ p.location-badge.
See <a href='Compiler-class.html'><code>Compiler</code></a>
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation Injectable
pre.prettyprint
code.
@Injectable()
.l-main-section
h2 Members
.l-sub-section
@ -22,7 +32,6 @@ p.location-badge.
resolve(type: Type)
:markdown
Return <a href='../annotations/Directive-var.html'><code>Directive</code></a> for a given `Type`.

View File

@ -1,13 +1,23 @@
p.location-badge.
exported from <a href='../core'>angular2/core</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/dynamic_component_loader.ts#L13-L79">angular2/src/core/compiler/dynamic_component_loader.ts (line 13)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/dynamic_component_loader.ts#L42-L235">angular2/src/core/compiler/dynamic_component_loader.ts (line 42)</a>
:markdown
Service for dynamically loading a Component into an arbitrary position in the internal Angular
application tree.
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation Injectable
pre.prettyprint
code.
@Injectable()
.l-main-section
h2 Members
.l-sub-section
@ -34,13 +44,61 @@ p.location-badge.
loadAsRoot(typeOrBinding: Type | Binding, overrideSelector: string, injector: Injector)
:markdown
Loads a root component that is placed at the first element that matches the component's
selector.
- `typeOrBinding` `Type` \ <a href='../di/Binding-class.html'><code>Binding</code></a> - representing the component to load.
- `overrideSelector` (optional) selector to load the component at (or use
`@Component.selector`) The selector can be anywhere (i.e. outside the current component.)
- `injector` <a href='../di/Injector-class.html'><code>Injector</code></a> - optional injector to use for the component.
The loaded component receives injection normally as a hosted view.
```
@ng.Component({
selector: 'child-component'
})
@ng.View({
template: 'Child'
})
class ChildComponent {
}
@ng.Component({
selector: 'my-app'
})
@ng.View({
template: `
Parent (<child id="child"></child>)
`
})
class MyApp {
constructor(dynamicComponentLoader: ng.DynamicComponentLoader, injector: ng.Injector) {
dynamicComponentLoader.loadAsRoot(ChildComponent, '#child', injector);
}
}
ng.bootstrap(MyApp);
```
Resulting DOM:
```
<my-app>
Parent (
<child id="child">
Child
</child>
)
</my-app>
```
@ -55,11 +113,51 @@ p.location-badge.
loadIntoLocation(typeOrBinding: Type | Binding, hostLocation: ElementRef, anchorName: string, bindings?: ResolvedBinding[])
:markdown
Loads a component into the component view of the provided ElementRef
next to the element with the given name
The loaded component receives
injection normally as a hosted view.
Loads a component into the component view of the provided ElementRef next to the element
with the given name.
The loaded component receives injection normally as a hosted view.
```
@ng.Component({
selector: 'child-component'
})
@ng.View({
template: 'Child'
})
class ChildComponent {
}
@ng.Component({
selector: 'my-app'
})
@ng.View({
template: `
Parent (<div #child></div>)
`
})
class MyApp {
constructor(dynamicComponentLoader: ng.DynamicComponentLoader, elementRef: ng.ElementRef) {
dynamicComponentLoader.loadIntoLocation(ChildComponent, elementRef, 'child');
}
}
ng.bootstrap(MyApp);
```
Resulting DOM:
```
<my-app>
Parent (
<div #child="" class="ng-binding"></div>
<child-component class="ng-binding">Child</child-component>
)
</my-app>
```
@ -76,9 +174,45 @@ p.location-badge.
loadNextToLocation(typeOrBinding: Type | Binding, location: ElementRef, bindings?: ResolvedBinding[])
:markdown
Loads a component next to the provided ElementRef. The loaded component receives
injection normally as a hosted view.
Loads a component next to the provided ElementRef.
The loaded component receives injection normally as a hosted view.
```
@ng.Component({
selector: 'child-component'
})
@ng.View({
template: 'Child'
})
class ChildComponent {
}
@ng.Component({
selector: 'my-app'
})
@ng.View({
template: `Parent`
})
class MyApp {
constructor(dynamicComponentLoader: ng.DynamicComponentLoader, elementRef: ng.ElementRef) {
dynamicComponentLoader.loadIntoLocation(ChildComponent, elementRef, 'child');
}
}
ng.bootstrap(MyApp);
```
Resulting DOM:
```
<my-app>Parent</my-app>
<child-component>Child</child-component>
```

View File

@ -34,7 +34,6 @@ p.location-badge.
:markdown
Reference to the <a href='ViewRef-class.html'><code>ViewRef</code></a> where the `ElementRef` is inside of.
@ -48,7 +47,6 @@ p.location-badge.
:markdown
Index of the element inside the <a href='ViewRef-class.html'><code>ViewRef</code></a>.
This is used internally by the Angular framework to locate elements.
@ -64,7 +62,6 @@ p.location-badge.
:markdown
Index of the element inside the `RenderViewRef`.
This is used internally by the Angular framework to locate elements.
@ -80,7 +77,6 @@ p.location-badge.
:markdown
@ -95,7 +91,6 @@ p.location-badge.
:markdown
Returns the native Element implementation.
In the browser this represents the DOM Element.

View File

@ -36,7 +36,6 @@ p.location-badge.
observer(generator: any)
:markdown
@ -53,7 +52,6 @@ p.location-badge.
toRx()
:markdown
@ -70,7 +68,6 @@ p.location-badge.
next(value: any)
:markdown
@ -87,7 +84,6 @@ p.location-badge.
throw(error: any)
:markdown
@ -104,7 +100,6 @@ p.location-badge.
return(value?: any)
:markdown

View File

@ -0,0 +1,8 @@
p.location-badge.
exported from <a href='../core'>angular2/core</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/view_ref.ts#L13-L15">angular2/src/core/compiler/view_ref.ts (line 13)</a>
:markdown

View File

@ -1,7 +1,7 @@
p.location-badge.
exported from <a href='../core'>angular2/core</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/zone/ng_zone.ts#L4-L237">angular2/src/core/zone/ng_zone.ts (line 4)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/zone/ng_zone.ts#L4-L266">angular2/src/core/zone/ng_zone.ts (line 4)</a>
:markdown
A wrapper around zones that lets you schedule tasks after it has executed a task.
@ -42,7 +42,6 @@ p.location-badge.
overrideOnTurnStart(onTurnStartFn: Function)
:markdown
Sets the zone hook that is called just before Angular event turn starts.
It is called once per browser event.
@ -61,7 +60,6 @@ p.location-badge.
overrideOnTurnDone(onTurnDoneFn: Function)
:markdown
Sets the zone hook that is called immediately after Angular processes
all pending microtasks.
@ -77,10 +75,9 @@ p.location-badge.
pre.prettyprint
code.
overrideOnEventDone(onEventDoneFn: Function)
overrideOnEventDone(onEventDoneFn: Function, opt_waitForAsync: boolean)
:markdown
Sets the zone hook that is called immediately after the last turn in
an event completes. At this point Angular will no longer attempt to
sync the UI. Any changes to the data model will not be reflected in the
@ -103,7 +100,6 @@ p.location-badge.
overrideOnErrorHandler(errorHandlingFn: Function)
:markdown
Sets the zone hook that is called when an error is uncaught in the
Angular zone. The first argument is the error. The second argument is
the stack trace.
@ -123,7 +119,6 @@ p.location-badge.
run(fn: () =&gt; any)
:markdown
Runs `fn` in the inner zone and returns whatever it returns.
In a typical app where the inner zone is the Angular zone, this allows one to make use of the
@ -153,7 +148,6 @@ p.location-badge.
runOutsideAngular(fn: () =&gt; any)
:markdown
Runs `fn` in the outer zone and returns whatever it returns.
In a typical app where the inner zone is the Angular zone, this allows one to escape Angular's
@ -162,7 +156,7 @@ p.location-badge.
```
var zone: NgZone = [ref to the application zone];
zone.runOusideAngular(() => {
zone.runOutsideAngular(() => {
element.onClick(() => {
// Clicking on the element would not trigger the change detection
});

View File

@ -17,7 +17,6 @@ p.location-badge.
observer(generator: any)
:markdown

View File

@ -1,7 +1,7 @@
p.location-badge.
exported from <a href='../core'>angular2/core</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/view_ref.ts#L85-L128">angular2/src/core/compiler/view_ref.ts (line 85)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/view_ref.ts#L91-L134">angular2/src/core/compiler/view_ref.ts (line 91)</a>
:markdown
A reference to an Angular ProtoView.

View File

@ -22,7 +22,6 @@ p.location-badge.
reset(newList: List&lt;T&gt;)
:markdown
@ -39,7 +38,6 @@ p.location-badge.
add(obj: T)
:markdown
@ -56,7 +54,6 @@ p.location-badge.
fireCallbacks()
:markdown
@ -73,7 +70,6 @@ p.location-badge.
onChange(callback: () =&gt; void)
:markdown
@ -90,7 +86,6 @@ p.location-badge.
removeCallback(callback: () =&gt; void)
:markdown
@ -103,7 +98,6 @@ p.location-badge.
:markdown
@ -116,7 +110,6 @@ p.location-badge.
:markdown
@ -129,7 +122,6 @@ p.location-badge.
:markdown
@ -143,10 +135,9 @@ p.location-badge.
pre.prettyprint
code.
map(fn: (T) =&gt; U)
map(fn: (item: T) =&gt; U)
:markdown

View File

@ -1,10 +1,10 @@
p.location-badge.
exported from <a href='../core'>angular2/core</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/render/api.ts#L350-L368">angular2/src/render/api.ts (line 350)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/render/api.ts#L354-L372">angular2/src/render/api.ts (line 354)</a>
:markdown
Abstract reference to the element which can be marshaled across web-worker boundry.
Abstract reference to the element which can be marshaled across web-worker boundary.
This interface is used by the Renderer API.
@ -16,7 +16,6 @@ p.location-badge.
:markdown
Reference to the `RenderViewRef` where the `RenderElementRef` is inside of.
@ -30,7 +29,6 @@ p.location-badge.
:markdown
Index of the element inside the `RenderViewRef`.
This is used internally by the Angular framework to locate elements.

View File

@ -32,7 +32,6 @@ p.location-badge.
:markdown
The location of the template
@ -46,7 +45,6 @@ p.location-badge.
:markdown
@ -63,7 +61,6 @@ p.location-badge.
hasLocal(name: string)
:markdown
Whether this template has a local variable with the given name

View File

@ -11,6 +11,16 @@ p.location-badge.
See <a href='Compiler-class.html'><code>Compiler</code></a>
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation Injectable
pre.prettyprint
code.
@Injectable()
.l-main-section
h2 Members
.l-sub-section
@ -22,7 +32,6 @@ p.location-badge.
resolve(baseUrl: string, url: string)
:markdown
Resolves the `url` given the `baseUrl`:
- when the `url` is null, the `baseUrl` is returned,
- if `url` is relative ('path/to/here', './path/to/here'), the resolved url is a combination of

View File

@ -1,9 +1,14 @@
p.location-badge.
exported from <a href='../core'>angular2/core</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/view_container_ref.ts#L10-L67">angular2/src/core/compiler/view_container_ref.ts (line 10)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/view_container_ref.ts#L10-L116">angular2/src/core/compiler/view_container_ref.ts (line 10)</a>
:markdown
A location where <a href='ViewRef-class.html'><code>ViewRef</code></a>s can be attached.
A `ViewContainerRef` represents a location in a <a href='ViewRef-class.html'><code>ViewRef</code></a> where other child
<a href='ViewRef-class.html'><code>ViewRef</code></a>s can be inserted. Adding and removing views is the only way of structurally
changing the rendered DOM of the application.
.l-main-section
@ -18,7 +23,6 @@ p.location-badge.
:markdown
@ -28,7 +32,6 @@ p.location-badge.
:markdown
@ -41,7 +44,6 @@ p.location-badge.
:markdown
@ -58,7 +60,7 @@ p.location-badge.
clear()
:markdown
Remove all <a href='ViewRef-class.html'><code>ViewRef</code></a>s at current location.
@ -75,7 +77,7 @@ p.location-badge.
get(index: number)
:markdown
Return a <a href='ViewRef-class.html'><code>ViewRef</code></a> at specific index.
@ -88,7 +90,7 @@ p.location-badge.
:markdown
Returns number of <a href='ViewRef-class.html'><code>ViewRef</code></a>s currently attached at this location.
@ -105,7 +107,18 @@ p.location-badge.
createEmbeddedView(templateRef: TemplateRef, atIndex?: number)
:markdown
Create and insert a <a href='ViewRef-class.html'><code>ViewRef</code></a> into the view-container.
- `protoViewRef` (optional) <a href='ProtoViewRef-class.html'><code>ProtoViewRef</code></a> - The `ProtoView` to use for creating
`View` to be inserted at this location. If `ViewContainer` is created at a location
of inline template, then `protoViewRef` is the `ProtoView` of the template.
- `atIndex` (optional) `number` - location of insertion point. (Or at the end if unspecified.)
- `context` (optional) <a href='ElementRef-class.html'><code>ElementRef</code></a> - Context (for expression evaluation) from the
<a href='ElementRef-class.html'><code>ElementRef</code></a> location. (Or current context if unspecified.)
- `bindings` (optional) Array of <a href='../di/ResolvedBinding-class.html'><code>ResolvedBinding</code></a> - Used for configuring
`ElementInjector`.
Returns newly created <a href='ViewRef-class.html'><code>ViewRef</code></a>.
@ -122,7 +135,6 @@ p.location-badge.
createHostView(protoViewRef?: ProtoViewRef, atIndex?: number, dynamicallyCreatedBindings?: ResolvedBinding[])
:markdown
@ -139,7 +151,12 @@ p.location-badge.
insert(viewRef: ViewRef, atIndex?: number)
:markdown
Insert a <a href='ViewRef-class.html'><code>ViewRef</code></a> at specefic index.
The index is location at which the <a href='ViewRef-class.html'><code>ViewRef</code></a> should be attached. If omitted it is
inserted at the end.
Returns the inserted <a href='ViewRef-class.html'><code>ViewRef</code></a>.
@ -156,7 +173,7 @@ p.location-badge.
indexOf(viewRef: ViewRef)
:markdown
Return the index of already inserted <a href='ViewRef-class.html'><code>ViewRef</code></a>.
@ -173,7 +190,9 @@ p.location-badge.
remove(atIndex?: number)
:markdown
Remove a <a href='ViewRef-class.html'><code>ViewRef</code></a> at specific index.
If the index is omitted last <a href='ViewRef-class.html'><code>ViewRef</code></a> is removed.
@ -190,7 +209,6 @@ p.location-badge.
detach(atIndex?: number)
:markdown
The method can be used together with insert to implement a view move, i.e.
moving the dom nodes while the directives in the view stay intact.

View File

@ -1,7 +1,7 @@
p.location-badge.
exported from <a href='../core'>angular2/core</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/view_ref.ts#L13-L85">angular2/src/core/compiler/view_ref.ts (line 13)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/core/compiler/view_ref.ts#L15-L91">angular2/src/core/compiler/view_ref.ts (line 15)</a>
:markdown
A reference to an Angular View.
@ -44,14 +44,14 @@ p.location-badge.
The outter/inner <a href='ProtoViewRef-class.html'><code>ProtoViewRef</code></a>s are then assembled into views like so:
```
<!-- ViewRef: outter-0 -->
<!-- ViewRef: outer-0 -->
Count: 2
<ul>
<template view-container-ref></template>
<!-- ViewRef: inner-1 --><li>first</li><!-- /ViewRef: inner-1 -->
<!-- ViewRef: inner-2 --><li>second</li><!-- /ViewRef: inner-2 -->
</ul>
<!-- /ViewRef: outter-0 -->
<!-- /ViewRef: outer-0 -->
```
@ -67,7 +67,6 @@ p.location-badge.
:markdown
@ -77,7 +76,6 @@ p.location-badge.
:markdown
Return `RenderViewRef`
@ -91,7 +89,6 @@ p.location-badge.
:markdown
Return `RenderFragmentRef`
@ -109,8 +106,10 @@ p.location-badge.
setLocal(contextName: string, value: any)
:markdown
Set local variable for a view.
Set local variable in a view.
- `contextName` - Name of the local variable in a view.
- `value` - Value for the local variable in a view.

View File

@ -4,8 +4,8 @@
"intro" : "Define angular core API here."
},
"appComponentTypeToken-var" : {
"title" : "appComponentTypeToken Var"
"appComponentTypeToken-const" : {
"title" : "appComponentTypeToken Const"
},
"ApplicationRef-class" : {
@ -44,6 +44,10 @@
"title" : "QueryList Class"
},
"DynamicComponentLoader-class" : {
"title" : "DynamicComponentLoader Class"
},
"ElementRef-class" : {
"title" : "ElementRef Class"
},
@ -60,6 +64,10 @@
"title" : "ViewRef Class"
},
"HostViewRef-interface" : {
"title" : "HostViewRef Interface"
},
"ProtoViewRef-class" : {
"title" : "ProtoViewRef Class"
},
@ -68,10 +76,6 @@
"title" : "ViewContainerRef Class"
},
"DynamicComponentLoader-class" : {
"title" : "DynamicComponentLoader Class"
},
"ComponentRef-class" : {
"title" : "ComponentRef Class"
},

View File

@ -1,5 +1,5 @@
p.location-badge.
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/core.ts#L1-L33">angular2/core.ts (line 1)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/core.ts#L1-L31">angular2/core.ts (line 1)</a>
ul
for page, slug in public.docs[current.path[1]][current.path[2]][current.path[3]][current.path[4]]._data

View File

@ -29,7 +29,6 @@ p.location-badge.
:markdown
@ -42,7 +41,6 @@ p.location-badge.
:markdown
@ -55,7 +53,6 @@ p.location-badge.
:markdown
@ -68,7 +65,6 @@ p.location-badge.
:markdown
@ -81,7 +77,6 @@ p.location-badge.
:markdown
@ -98,7 +93,6 @@ p.location-badge.
addKey(injector: Injector, key: Key)
:markdown
@ -111,7 +105,6 @@ p.location-badge.
:markdown
@ -128,7 +121,6 @@ p.location-badge.
toString()
:markdown

View File

@ -35,6 +35,16 @@ p.location-badge.
```
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -61,7 +71,6 @@ p.location-badge.
toString()
:markdown

View File

@ -19,6 +19,16 @@ p.location-badge.
```
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -42,7 +52,6 @@ p.location-badge.
:markdown
Token used when retrieving this binding. Usually the `Type`.
@ -56,7 +65,6 @@ p.location-badge.
:markdown
Binds an interface to an implementation / subclass.
@ -97,7 +105,6 @@ p.location-badge.
:markdown
Binds a key to a value.
@ -121,7 +128,6 @@ p.location-badge.
:markdown
Binds a key to the alias for an existing key.
An alias means that <a href='Injector-class.html'><code>Injector</code></a> returns the same instance as if the alias token was used.
@ -165,7 +171,6 @@ p.location-badge.
:markdown
Binds a key to a function which computes the value.
@ -192,7 +197,6 @@ p.location-badge.
:markdown
Used in conjunction with `toFactory` and specifies a set of dependencies
(as `token`s) which should be injected into the factory function.
@ -224,7 +228,6 @@ p.location-badge.
resolve()
:markdown
Converts the <a href='Binding-class.html'><code>Binding</code></a> into <a href='ResolvedBinding-class.html'><code>ResolvedBinding</code></a>.
<a href='Injector-class.html'><code>Injector</code></a> internally only uses <a href='ResolvedBinding-class.html'><code>ResolvedBinding</code></a>, <a href='Binding-class.html'><code>Binding</code></a> contains

View File

@ -29,7 +29,6 @@ p.location-badge.
:markdown
@ -46,7 +45,6 @@ p.location-badge.
toClass(type: Type)
:markdown
Binds an interface to an implementation / subclass.
@ -91,7 +89,6 @@ p.location-badge.
toValue(value: any)
:markdown
Binds a key to a value.
@ -119,7 +116,6 @@ p.location-badge.
toAlias(aliasToken: /*Type*/ any)
:markdown
Binds a key to the alias for an existing key.
An alias means that we will return the same instance as if the alias token was used. (This is
@ -167,7 +163,6 @@ p.location-badge.
toFactory(factoryFunction: Function, dependencies?: List&lt;any&gt;)
:markdown
Binds a key to a function which computes the value.

View File

@ -28,7 +28,6 @@ p.location-badge.
:markdown
@ -41,7 +40,6 @@ p.location-badge.
:markdown
@ -58,7 +56,6 @@ p.location-badge.
getKeyId()
:markdown

View File

@ -3,7 +3,7 @@
h2 DEFAULT_VISIBILITY <span class="type">variable</span>
p.location-badge.
exported from <a href='../di'>angular2/di</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/di/metadata.ts#L199-L199">angular2/src/di/metadata.ts (line 199)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/di/metadata.ts#L199-L200">angular2/src/di/metadata.ts (line 199)</a>
:markdown

View File

@ -27,7 +27,6 @@ p.location-badge.
:markdown
@ -40,7 +39,6 @@ p.location-badge.
:markdown
@ -53,7 +51,6 @@ p.location-badge.
:markdown
@ -66,7 +63,6 @@ p.location-badge.
:markdown

View File

@ -30,6 +30,16 @@ p.location-badge.
in a specific way.
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -37,7 +47,6 @@ p.location-badge.
:markdown

View File

@ -18,7 +18,6 @@ p.location-badge.
getDependency(injector: Injector, binding: ResolvedBinding, dependency: Dependency)
:markdown

View File

@ -13,6 +13,16 @@ p.location-badge.
```
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -35,7 +45,6 @@ p.location-badge.
:markdown
@ -52,7 +61,6 @@ p.location-badge.
toString()
:markdown

View File

@ -17,6 +17,16 @@ p.location-badge.
```
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section

View File

@ -68,7 +68,6 @@ p.location-badge.
debugContext()
:markdown
Returns debug information about the injector.
This information is included into exceptions thrown by the injector.
@ -88,7 +87,6 @@ p.location-badge.
get(token: any)
:markdown
Retrieves an instance from the injector.
@ -105,7 +103,6 @@ p.location-badge.
getOptional(token: any)
:markdown
Retrieves an instance from the injector.
@ -122,7 +119,6 @@ p.location-badge.
getAt(index: number)
:markdown
Retrieves an instance from the injector.
@ -135,7 +131,6 @@ p.location-badge.
:markdown
Direct parent of this injector.
@ -149,7 +144,6 @@ p.location-badge.
:markdown
Internal. Do not use.
We return `any` not to export the InjectorStrategy type.
@ -169,7 +163,6 @@ p.location-badge.
resolveAndCreateChild(bindings: List&lt;Type | Binding | List&lt;any&gt;&gt;, depProvider?: DependencyProvider)
:markdown
Creates a child injector and loads a new set of bindings into it.
A resolution is a process of flattening multiple nested lists and converting individual
@ -190,7 +183,6 @@ p.location-badge.
createChildFromResolved(bindings: List&lt;ResolvedBinding&gt;, depProvider?: DependencyProvider)
:markdown
Creates a child injector and loads a new set of <a href='ResolvedBinding-class.html'><code>ResolvedBinding</code></a>s into it.
@ -203,7 +195,6 @@ p.location-badge.
:markdown
@ -220,7 +211,6 @@ p.location-badge.
toString()
:markdown

View File

@ -1,7 +1,7 @@
p.location-badge.
exported from <a href='../di'>angular2/di</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/di/exceptions.ts#L95-L115">angular2/src/di/exceptions.ts (line 95)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/di/exceptions.ts#L95-L113">angular2/src/di/exceptions.ts (line 95)</a>
:markdown
Thrown when a constructing type returns with an Error.
@ -32,7 +32,6 @@ p.location-badge.
:markdown

View File

@ -1,7 +1,7 @@
p.location-badge.
exported from <a href='../di'>angular2/di</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/di/exceptions.ts#L115-L130">angular2/src/di/exceptions.ts (line 115)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/di/exceptions.ts#L113-L128">angular2/src/di/exceptions.ts (line 113)</a>
:markdown
Thrown when an object other then <a href='Binding-class.html'><code>Binding</code></a> (or `Type`) is passed to <a href='Injector-class.html'><code>Injector</code></a>
@ -30,7 +30,6 @@ p.location-badge.
:markdown
@ -47,7 +46,6 @@ p.location-badge.
toString()
:markdown

View File

@ -35,7 +35,6 @@ p.location-badge.
:markdown
@ -48,7 +47,6 @@ p.location-badge.
:markdown
@ -61,7 +59,6 @@ p.location-badge.
:markdown

View File

@ -16,7 +16,6 @@ p.location-badge.
get(token: Object)
:markdown
@ -29,7 +28,6 @@ p.location-badge.
:markdown

View File

@ -1,7 +1,7 @@
p.location-badge.
exported from <a href='../di'>angular2/di</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/di/exceptions.ts#L130-L158">angular2/src/di/exceptions.ts (line 130)</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/di/exceptions.ts#L128-L156">angular2/src/di/exceptions.ts (line 128)</a>
:markdown
Thrown when the class has no annotation information.
@ -32,7 +32,6 @@ p.location-badge.
:markdown
@ -45,7 +44,6 @@ p.location-badge.
:markdown
@ -62,7 +60,6 @@ p.location-badge.
toString()
:markdown

View File

@ -6,6 +6,16 @@ p.location-badge.
:markdown
.l-main-section
h2 Annotations
.l-sub-section
h3.annotation CONST
pre.prettyprint
code.
@CONST()
.l-main-section
h2 Members
.l-sub-section
@ -32,7 +42,6 @@ p.location-badge.
toString()
:markdown

Some files were not shown because too many files have changed in this diff Show More