From d62557ada6b45ba1fc38a2854ab7acb8e09d6918 Mon Sep 17 00:00:00 2001 From: Naomi Black Date: Mon, 1 Jun 2015 22:51:00 -0700 Subject: [PATCH] docs(api): add api files for alpha-25 --- .../latest/api/annotations/Ancestor-var.jade | 10 + .../latest/api/annotations/Attribute-var.jade | 10 + .../latest/api/annotations/Component-var.jade | 10 + .../ComponentAnnotation-class.jade | 257 ++++++ .../latest/api/annotations/Directive-var.jade | 10 + .../DirectiveAnnotation-class.jade | 858 ++++++++++++++++++ .../js/latest/api/annotations/Parent-var.jade | 10 + .../js/latest/api/annotations/Query-var.jade | 10 + .../js/latest/api/annotations/Self-var.jade | 10 + .../latest/api/annotations/Unbounded-var.jade | 10 + .../js/latest/api/annotations/View-var.jade | 10 + .../docs/js/latest/api/annotations/_data.json | 66 +- .../docs/js/latest/api/annotations/index.jade | 3 + .../annotations/onAllChangesDone-const.jade | 20 + .../api/annotations/onChange-const.jade | 34 + .../latest/api/annotations/onCheck-const.jade | 21 + .../api/annotations/onDestroy-const.jade | 19 + .../latest/api/annotations/onInit-const.jade | 21 + .../api/change_detection/AST-class.jade | 90 ++ .../change_detection/ASTWithSource-class.jade | 144 +++ .../change_detection/AccessMember-class.jade | 140 +++ .../AstTransformer-class.jade | 281 ++++++ .../change_detection/BindingRecord-class.jade | 230 +++++ .../api/change_detection/CHECKED-const.jade | 8 + .../change_detection/CHECK_ALWAYS-const.jade | 8 + .../change_detection/CHECK_ONCE-const.jade | 8 + .../ChangeDetection-class.jade | 13 +- .../ChangeDetectionError-class.jade | 80 ++ .../ChangeDetector-class.jade | 205 +++++ .../ChangeDetectorDefinition-class.jade | 89 ++ .../ChangeDetectorRef-class.jade | 19 +- .../ChangeDispatcher-class.jade | 26 + .../api/change_detection/DEFAULT-const.jade | 7 + .../api/change_detection/DETACHED-const.jade | 8 + .../DirectiveIndex-class.jade | 63 ++ .../DirectiveRecord-class.jade | 127 +++ .../DynamicChangeDetection-class.jade | 11 +- .../DynamicChangeDetector-class.jade | 265 ++++++ .../DynamicProtoChangeDetector-class.jade | 54 ++ ...ionChangedAfterItHasBeenChecked-class.jade | 54 ++ .../ImplicitReceiver-class.jade | 43 + .../JitChangeDetection-class.jade | 14 +- .../JitProtoChangeDetector-class.jade | 54 ++ .../api/change_detection/Lexer-class.jade | 26 + .../change_detection/LiteralArray-class.jade | 71 ++ .../api/change_detection/Locals-class.jade | 118 +++ .../api/change_detection/NullPipe-class.jade | 70 ++ .../NullPipeFactory-class.jade | 57 ++ .../api/change_detection/ON_PUSH-const.jade | 7 + .../api/change_detection/Parser-class.jade | 126 +++ .../api/change_detection/Pipe-class.jade | 76 ++ .../change_detection/PipeFactory-class.jade | 43 + .../change_detection/PipeRegistry-class.jade | 54 ++ .../PreGeneratedChangeDetection-class.jade | 54 ++ .../ProtoChangeDetector-class.jade | 26 + .../change_detection/WrappedValue-class.jade | 40 + .../js/latest/api/change_detection/_data.json | 160 +++- .../defaultPipeRegistry-var.jade | 10 + .../change_detection/defaultPipes-var.jade | 10 + .../js/latest/api/change_detection/index.jade | 3 + .../preGeneratedProtoDetectors-var.jade | 10 + .../change_detection/uninitialized-var.jade | 10 + .../api/core/AncestorAnnotation-class.jade | 75 ++ .../latest/api/core/ApplicationRef-class.jade | 80 ++ .../api/core/AttributeAnnotation-class.jade | 73 ++ .../js/latest/api/core/Compiler-class.jade | 57 ++ .../latest/api/core/CompilerCache-class.jade | 77 ++ .../{view => core}/ComponentRef-class.jade | 15 +- .../api/core/DirectiveResolver-class.jade | 26 + .../core/DynamicComponentLoader-class.jade | 103 +++ .../api/{view => core}/ElementRef-class.jade | 15 +- .../docs/js/latest/api/core/NgZone-class.jade | 126 +++ .../api/core/OnAllChangesDone-interface.jade | 28 + .../latest/api/core/OnChange-interface.jade | 28 + .../js/latest/api/core/OnCheck-interface.jade | 27 + .../latest/api/core/OnDestroy-interface.jade | 27 + .../js/latest/api/core/OnInit-interface.jade | 27 + .../api/core/ParentAnnotation-class.jade | 62 ++ .../{view => core}/ProtoViewRef-class.jade | 5 +- .../api/core/QueryAnnotation-class.jade | 39 + .../api/{view => core}/QueryList-class.jade | 41 +- .../latest/api/core/SelfAnnotation-class.jade | 56 ++ .../api/core/UnboundedAnnotation-class.jade | 53 ++ .../latest/api/core/ViewAnnotation-class.jade | 137 +++ .../api/core/ViewContainerRef-class.jade | 52 +- .../api/{view => core}/ViewRef-class.jade | 11 +- public/docs/js/latest/api/core/_data.json | 104 ++- .../api/core/appComponentRefToken-var.jade | 10 + .../api/core/appComponentTypeToken-var.jade | 10 + .../latest/api/core/bootstrap-function.jade | 89 +- public/docs/js/latest/api/core/index.jade | 3 + .../AbstractBindingError-class.jade | 25 +- .../AsyncBindingError-class.jade | 11 +- .../docs/js/latest/api/di/Binding-class.jade | 70 +- .../latest/api/di/BindingBuilder-class.jade | 47 +- .../CyclicDependencyError-class.jade | 5 +- .../js/latest/api/di/Dependency-class.jade | 88 ++ .../DependencyAnnotation-class.jade | 22 +- .../js/latest/api/di/FORWARD_REF-var.jade | 10 + .../latest/api/di/ForwardRefFn-interface.jade | 8 + public/docs/js/latest/api/di/Inject-var.jade | 10 + .../InjectAnnotation-class.jade} | 8 +- .../docs/js/latest/api/di/InjectLazy-var.jade | 10 + .../InjectLazyAnnotation-class.jade} | 8 +- .../js/latest/api/di/InjectPromise-var.jade | 10 + .../InjectPromiseAnnotation-class.jade} | 8 +- .../docs/js/latest/api/di/Injectable-var.jade | 10 + .../api/di/InjectableAnnotation-class.jade | 17 + .../docs/js/latest/api/di/Injector-class.jade | 104 +-- .../InstantiationError-class.jade | 11 +- .../InvalidBindingError-class.jade | 10 +- public/docs/js/latest/api/di/Key-class.jade | 35 +- .../js/latest/api/di/KeyRegistry-class.jade | 53 ++ .../NoAnnotationError-class.jade | 24 +- .../latest/api/di/NoBindingError-class.jade | 25 + .../js/latest/api/di/OpaqueToken-class.jade | 40 + .../docs/js/latest/api/di/Optional-var.jade | 10 + .../api/di/OptionalAnnotation-class.jade | 17 + .../latest/api/di/ResolvedBinding-class.jade | 32 +- .../js/latest/api/di/TypeLiteral-class.jade | 24 + public/docs/js/latest/api/di/_data.json | 136 ++- .../docs/js/latest/api/di/bind-function.jade | 9 +- .../js/latest/api/di/forwardRef-function.jade | 40 + public/docs/js/latest/api/di/index.jade | 3 + .../api/di/resolveBindings-function.jade | 19 + .../api/di/resolveForwardRef-function.jade | 21 + .../api/di_annotations/Injectable-class.jade | 32 - .../api/di_annotations/Optional-class.jade | 32 - .../js/latest/api/di_annotations/_data.json | 30 - .../js/latest/api/di_annotations/index.jade | 8 - .../api/di_errors/NoBindingError-class.jade | 24 - .../docs/js/latest/api/di_errors/_data.json | 34 - .../docs/js/latest/api/di_errors/index.jade | 8 - .../latest/api/directives/CSSClass-class.jade | 37 + .../js/latest/api/directives/NgFor-class.jade | 107 +++ .../js/latest/api/directives/NgIf-class.jade | 96 ++ .../api/directives/NgNonBindable-class.jade | 18 + .../latest/api/directives/NgSwitch-class.jade | 59 ++ .../api/directives/NgSwitchDefault-class.jade | 32 + .../api/directives/NgSwitchWhen-class.jade | 66 ++ .../api/directives/SwitchView-class.jade | 58 ++ .../docs/js/latest/api/directives/_data.json | 38 +- .../api/directives/coreDirectives-const.jade | 40 + .../docs/js/latest/api/directives/index.jade | 3 + .../api/forms/AbstractControl-class.jade | 164 ++++ .../CheckboxControlValueAccessor-class.jade | 27 +- .../js/latest/api/forms/Control-class.jade | 13 +- .../latest/api/forms/ControlArray-class.jade | 33 +- .../api/forms/ControlDirective-class.jade | 44 +- .../latest/api/forms/ControlGroup-class.jade | 80 +- .../forms/ControlGroupDirective-class.jade | 46 +- .../api/forms/ControlNameDirective-class.jade | 111 +++ .../forms/ControlValueAccessor-interface.jade | 43 + .../api/forms/DefaultValueAccessor-class.jade | 30 +- .../latest/api/forms/FormBuilder-class.jade | 61 +- .../api/forms/FormControlDirective-class.jade | 39 + .../api/forms/FormModelDirective-class.jade | 161 ++++ .../js/latest/api/forms/INVALID-const.jade | 7 + .../RequiredValidatorDirective-class.jade | 24 + .../SelectControlValueAccessor-class.jade | 92 ++ .../TemplateDrivenFormDirective-class.jade | 157 ++++ .../docs/js/latest/api/forms/VALID-const.jade | 7 + .../js/latest/api/forms/Validators-class.jade | 85 +- public/docs/js/latest/api/forms/_data.json | 86 +- .../api/forms/formDirectives-const.jade | 8 + public/docs/js/latest/api/forms/index.jade | 3 + .../latest/api/forms/isControl-function.jade | 19 + .../api/pipes/IterableChanges-class.jade | 41 +- .../js/latest/api/pipes/JsonPipe-class.jade | 95 ++ .../api/pipes/KeyValueChanges-class.jade | 39 +- .../latest/api/pipes/LowerCasePipe-class.jade | 92 ++ .../api/pipes/ObservablePipe-class.jade | 96 ++ .../latest/api/pipes/PromisePipe-class.jade | 95 ++ .../latest/api/pipes/UpperCasePipe-class.jade | 92 ++ public/docs/js/latest/api/pipes/_data.json | 48 +- public/docs/js/latest/api/pipes/index.jade | 3 + .../BrowserLocation-class.jade} | 39 +- .../js/latest/api/router/Location-class.jade | 143 +++ .../js/latest/api/router/Pipeline-class.jade | 56 ++ .../latest/api/router/RootRouter-class.jade | 41 + .../js/latest/api/router/RouteConfig-var.jade | 10 + .../router/RouteConfigAnnotation-class.jade | 43 + .../latest/api/router/RouteParams-class.jade | 54 ++ .../api/router/RouteRegistry-class.jade | 98 ++ .../js/latest/api/router/Router-class.jade | 106 ++- .../latest/api/router/RouterLink-class.jade | 50 +- .../latest/api/router/RouterOutlet-class.jade | 90 ++ public/docs/js/latest/api/router/_data.json | 48 +- public/docs/js/latest/api/router/index.jade | 3 + .../api/router/routerDirectives-const.jade | 6 + .../api/router/routerInjectables-var.jade | 3 +- .../test/FunctionWithParamTokens-class.jade | 41 + .../js/latest/api/test/TestBed-class.jade | 35 +- .../js/latest/api/test/ViewProxy-class.jade | 116 +++ public/docs/js/latest/api/test/_data.json | 12 + .../api/test/createTestInjector-function.jade | 19 + public/docs/js/latest/api/test/index.jade | 3 + .../js/latest/api/test/inject-function.jade | 11 +- .../js/latest/api/view/Compiler-class.jade | 70 -- .../view/DynamicComponentLoader-class.jade | 75 -- public/docs/js/latest/api/view/_data.json | 38 - public/docs/js/latest/api/view/index.jade | 8 - 202 files changed, 9656 insertions(+), 1062 deletions(-) create mode 100644 public/docs/js/latest/api/annotations/Ancestor-var.jade create mode 100644 public/docs/js/latest/api/annotations/Attribute-var.jade create mode 100644 public/docs/js/latest/api/annotations/Component-var.jade create mode 100644 public/docs/js/latest/api/annotations/ComponentAnnotation-class.jade create mode 100644 public/docs/js/latest/api/annotations/Directive-var.jade create mode 100644 public/docs/js/latest/api/annotations/DirectiveAnnotation-class.jade create mode 100644 public/docs/js/latest/api/annotations/Parent-var.jade create mode 100644 public/docs/js/latest/api/annotations/Query-var.jade create mode 100644 public/docs/js/latest/api/annotations/Self-var.jade create mode 100644 public/docs/js/latest/api/annotations/Unbounded-var.jade create mode 100644 public/docs/js/latest/api/annotations/View-var.jade create mode 100644 public/docs/js/latest/api/annotations/onAllChangesDone-const.jade create mode 100644 public/docs/js/latest/api/annotations/onChange-const.jade create mode 100644 public/docs/js/latest/api/annotations/onCheck-const.jade create mode 100644 public/docs/js/latest/api/annotations/onDestroy-const.jade create mode 100644 public/docs/js/latest/api/annotations/onInit-const.jade create mode 100644 public/docs/js/latest/api/change_detection/AST-class.jade create mode 100644 public/docs/js/latest/api/change_detection/ASTWithSource-class.jade create mode 100644 public/docs/js/latest/api/change_detection/AccessMember-class.jade create mode 100644 public/docs/js/latest/api/change_detection/AstTransformer-class.jade create mode 100644 public/docs/js/latest/api/change_detection/BindingRecord-class.jade create mode 100644 public/docs/js/latest/api/change_detection/CHECKED-const.jade create mode 100644 public/docs/js/latest/api/change_detection/CHECK_ALWAYS-const.jade create mode 100644 public/docs/js/latest/api/change_detection/CHECK_ONCE-const.jade create mode 100644 public/docs/js/latest/api/change_detection/ChangeDetectionError-class.jade create mode 100644 public/docs/js/latest/api/change_detection/ChangeDetector-class.jade create mode 100644 public/docs/js/latest/api/change_detection/ChangeDetectorDefinition-class.jade create mode 100644 public/docs/js/latest/api/change_detection/ChangeDispatcher-class.jade create mode 100644 public/docs/js/latest/api/change_detection/DEFAULT-const.jade create mode 100644 public/docs/js/latest/api/change_detection/DETACHED-const.jade create mode 100644 public/docs/js/latest/api/change_detection/DirectiveIndex-class.jade create mode 100644 public/docs/js/latest/api/change_detection/DirectiveRecord-class.jade create mode 100644 public/docs/js/latest/api/change_detection/DynamicChangeDetector-class.jade create mode 100644 public/docs/js/latest/api/change_detection/DynamicProtoChangeDetector-class.jade create mode 100644 public/docs/js/latest/api/change_detection/ExpressionChangedAfterItHasBeenChecked-class.jade create mode 100644 public/docs/js/latest/api/change_detection/ImplicitReceiver-class.jade create mode 100644 public/docs/js/latest/api/change_detection/JitProtoChangeDetector-class.jade create mode 100644 public/docs/js/latest/api/change_detection/Lexer-class.jade create mode 100644 public/docs/js/latest/api/change_detection/LiteralArray-class.jade create mode 100644 public/docs/js/latest/api/change_detection/Locals-class.jade create mode 100644 public/docs/js/latest/api/change_detection/NullPipe-class.jade create mode 100644 public/docs/js/latest/api/change_detection/NullPipeFactory-class.jade create mode 100644 public/docs/js/latest/api/change_detection/ON_PUSH-const.jade create mode 100644 public/docs/js/latest/api/change_detection/Parser-class.jade create mode 100644 public/docs/js/latest/api/change_detection/Pipe-class.jade create mode 100644 public/docs/js/latest/api/change_detection/PipeFactory-class.jade create mode 100644 public/docs/js/latest/api/change_detection/PipeRegistry-class.jade create mode 100644 public/docs/js/latest/api/change_detection/PreGeneratedChangeDetection-class.jade create mode 100644 public/docs/js/latest/api/change_detection/ProtoChangeDetector-class.jade create mode 100644 public/docs/js/latest/api/change_detection/WrappedValue-class.jade create mode 100644 public/docs/js/latest/api/change_detection/defaultPipeRegistry-var.jade create mode 100644 public/docs/js/latest/api/change_detection/defaultPipes-var.jade create mode 100644 public/docs/js/latest/api/change_detection/preGeneratedProtoDetectors-var.jade create mode 100644 public/docs/js/latest/api/change_detection/uninitialized-var.jade create mode 100644 public/docs/js/latest/api/core/AncestorAnnotation-class.jade create mode 100644 public/docs/js/latest/api/core/ApplicationRef-class.jade create mode 100644 public/docs/js/latest/api/core/AttributeAnnotation-class.jade create mode 100644 public/docs/js/latest/api/core/Compiler-class.jade create mode 100644 public/docs/js/latest/api/core/CompilerCache-class.jade rename public/docs/js/latest/api/{view => core}/ComponentRef-class.jade (67%) create mode 100644 public/docs/js/latest/api/core/DirectiveResolver-class.jade create mode 100644 public/docs/js/latest/api/core/DynamicComponentLoader-class.jade rename public/docs/js/latest/api/{view => core}/ElementRef-class.jade (70%) create mode 100644 public/docs/js/latest/api/core/NgZone-class.jade create mode 100644 public/docs/js/latest/api/core/OnAllChangesDone-interface.jade create mode 100644 public/docs/js/latest/api/core/OnChange-interface.jade create mode 100644 public/docs/js/latest/api/core/OnCheck-interface.jade create mode 100644 public/docs/js/latest/api/core/OnDestroy-interface.jade create mode 100644 public/docs/js/latest/api/core/OnInit-interface.jade create mode 100644 public/docs/js/latest/api/core/ParentAnnotation-class.jade rename public/docs/js/latest/api/{view => core}/ProtoViewRef-class.jade (59%) create mode 100644 public/docs/js/latest/api/core/QueryAnnotation-class.jade rename public/docs/js/latest/api/{view => core}/QueryList-class.jade (65%) create mode 100644 public/docs/js/latest/api/core/SelfAnnotation-class.jade create mode 100644 public/docs/js/latest/api/core/UnboundedAnnotation-class.jade create mode 100644 public/docs/js/latest/api/core/ViewAnnotation-class.jade rename public/docs/js/latest/api/{view => core}/ViewRef-class.jade (58%) create mode 100644 public/docs/js/latest/api/core/appComponentRefToken-var.jade create mode 100644 public/docs/js/latest/api/core/appComponentTypeToken-var.jade rename public/docs/js/latest/api/{di_errors => di}/AbstractBindingError-class.jade (70%) rename public/docs/js/latest/api/{di_errors => di}/AsyncBindingError-class.jade (63%) rename public/docs/js/latest/api/{di_errors => di}/CyclicDependencyError-class.jade (75%) create mode 100644 public/docs/js/latest/api/di/Dependency-class.jade rename public/docs/js/latest/api/{di_annotations => di}/DependencyAnnotation-class.jade (68%) create mode 100644 public/docs/js/latest/api/di/FORWARD_REF-var.jade create mode 100644 public/docs/js/latest/api/di/ForwardRefFn-interface.jade create mode 100644 public/docs/js/latest/api/di/Inject-var.jade rename public/docs/js/latest/api/{di_annotations/Inject-class.jade => di/InjectAnnotation-class.jade} (67%) create mode 100644 public/docs/js/latest/api/di/InjectLazy-var.jade rename public/docs/js/latest/api/{di_annotations/InjectLazy-class.jade => di/InjectLazyAnnotation-class.jade} (70%) create mode 100644 public/docs/js/latest/api/di/InjectPromise-var.jade rename public/docs/js/latest/api/{di_annotations/InjectPromise-class.jade => di/InjectPromiseAnnotation-class.jade} (71%) create mode 100644 public/docs/js/latest/api/di/Injectable-var.jade create mode 100644 public/docs/js/latest/api/di/InjectableAnnotation-class.jade rename public/docs/js/latest/api/{di_errors => di}/InstantiationError-class.jade (68%) rename public/docs/js/latest/api/{di_errors => di}/InvalidBindingError-class.jade (55%) create mode 100644 public/docs/js/latest/api/di/KeyRegistry-class.jade rename public/docs/js/latest/api/{di_errors => di}/NoAnnotationError-class.jade (54%) create mode 100644 public/docs/js/latest/api/di/NoBindingError-class.jade create mode 100644 public/docs/js/latest/api/di/OpaqueToken-class.jade create mode 100644 public/docs/js/latest/api/di/Optional-var.jade create mode 100644 public/docs/js/latest/api/di/OptionalAnnotation-class.jade create mode 100644 public/docs/js/latest/api/di/TypeLiteral-class.jade create mode 100644 public/docs/js/latest/api/di/forwardRef-function.jade create mode 100644 public/docs/js/latest/api/di/resolveBindings-function.jade create mode 100644 public/docs/js/latest/api/di/resolveForwardRef-function.jade delete mode 100644 public/docs/js/latest/api/di_annotations/Injectable-class.jade delete mode 100644 public/docs/js/latest/api/di_annotations/Optional-class.jade delete mode 100644 public/docs/js/latest/api/di_annotations/_data.json delete mode 100644 public/docs/js/latest/api/di_annotations/index.jade delete mode 100644 public/docs/js/latest/api/di_errors/NoBindingError-class.jade delete mode 100644 public/docs/js/latest/api/di_errors/_data.json delete mode 100644 public/docs/js/latest/api/di_errors/index.jade create mode 100644 public/docs/js/latest/api/directives/CSSClass-class.jade create mode 100644 public/docs/js/latest/api/directives/NgFor-class.jade create mode 100644 public/docs/js/latest/api/directives/NgIf-class.jade create mode 100644 public/docs/js/latest/api/directives/NgNonBindable-class.jade create mode 100644 public/docs/js/latest/api/directives/NgSwitch-class.jade create mode 100644 public/docs/js/latest/api/directives/NgSwitchDefault-class.jade create mode 100644 public/docs/js/latest/api/directives/NgSwitchWhen-class.jade create mode 100644 public/docs/js/latest/api/directives/SwitchView-class.jade create mode 100644 public/docs/js/latest/api/directives/coreDirectives-const.jade create mode 100644 public/docs/js/latest/api/forms/AbstractControl-class.jade create mode 100644 public/docs/js/latest/api/forms/ControlNameDirective-class.jade create mode 100644 public/docs/js/latest/api/forms/ControlValueAccessor-interface.jade create mode 100644 public/docs/js/latest/api/forms/FormControlDirective-class.jade create mode 100644 public/docs/js/latest/api/forms/FormModelDirective-class.jade create mode 100644 public/docs/js/latest/api/forms/INVALID-const.jade create mode 100644 public/docs/js/latest/api/forms/RequiredValidatorDirective-class.jade create mode 100644 public/docs/js/latest/api/forms/SelectControlValueAccessor-class.jade create mode 100644 public/docs/js/latest/api/forms/TemplateDrivenFormDirective-class.jade create mode 100644 public/docs/js/latest/api/forms/VALID-const.jade create mode 100644 public/docs/js/latest/api/forms/formDirectives-const.jade create mode 100644 public/docs/js/latest/api/forms/isControl-function.jade create mode 100644 public/docs/js/latest/api/pipes/JsonPipe-class.jade create mode 100644 public/docs/js/latest/api/pipes/LowerCasePipe-class.jade create mode 100644 public/docs/js/latest/api/pipes/ObservablePipe-class.jade create mode 100644 public/docs/js/latest/api/pipes/PromisePipe-class.jade create mode 100644 public/docs/js/latest/api/pipes/UpperCasePipe-class.jade rename public/docs/js/latest/api/{view/BaseQueryList-class.jade => router/BrowserLocation-class.jade} (51%) create mode 100644 public/docs/js/latest/api/router/Location-class.jade create mode 100644 public/docs/js/latest/api/router/Pipeline-class.jade create mode 100644 public/docs/js/latest/api/router/RootRouter-class.jade create mode 100644 public/docs/js/latest/api/router/RouteConfig-var.jade create mode 100644 public/docs/js/latest/api/router/RouteConfigAnnotation-class.jade create mode 100644 public/docs/js/latest/api/router/RouteParams-class.jade create mode 100644 public/docs/js/latest/api/router/RouteRegistry-class.jade create mode 100644 public/docs/js/latest/api/router/RouterOutlet-class.jade create mode 100644 public/docs/js/latest/api/router/routerDirectives-const.jade create mode 100644 public/docs/js/latest/api/test/FunctionWithParamTokens-class.jade create mode 100644 public/docs/js/latest/api/test/ViewProxy-class.jade create mode 100644 public/docs/js/latest/api/test/createTestInjector-function.jade delete mode 100644 public/docs/js/latest/api/view/Compiler-class.jade delete mode 100644 public/docs/js/latest/api/view/DynamicComponentLoader-class.jade delete mode 100644 public/docs/js/latest/api/view/_data.json delete mode 100644 public/docs/js/latest/api/view/index.jade diff --git a/public/docs/js/latest/api/annotations/Ancestor-var.jade b/public/docs/js/latest/api/annotations/Ancestor-var.jade new file mode 100644 index 0000000000..d1728743d2 --- /dev/null +++ b/public/docs/js/latest/api/annotations/Ancestor-var.jade @@ -0,0 +1,10 @@ + +.l-main-section + h2 Ancestor variable + p.location-badge. + exported from angular2/annotations + + :markdown + + + diff --git a/public/docs/js/latest/api/annotations/Attribute-var.jade b/public/docs/js/latest/api/annotations/Attribute-var.jade new file mode 100644 index 0000000000..4b6462f6a3 --- /dev/null +++ b/public/docs/js/latest/api/annotations/Attribute-var.jade @@ -0,0 +1,10 @@ + +.l-main-section + h2 Attribute variable + p.location-badge. + exported from angular2/annotations + + :markdown + + + diff --git a/public/docs/js/latest/api/annotations/Component-var.jade b/public/docs/js/latest/api/annotations/Component-var.jade new file mode 100644 index 0000000000..4f4977737f --- /dev/null +++ b/public/docs/js/latest/api/annotations/Component-var.jade @@ -0,0 +1,10 @@ + +.l-main-section + h2 Component variable + p.location-badge. + exported from angular2/annotations + + :markdown + + + diff --git a/public/docs/js/latest/api/annotations/ComponentAnnotation-class.jade b/public/docs/js/latest/api/annotations/ComponentAnnotation-class.jade new file mode 100644 index 0000000000..a667a0539a --- /dev/null +++ b/public/docs/js/latest/api/annotations/ComponentAnnotation-class.jade @@ -0,0 +1,257 @@ + +p.location-badge. + exported from angular2/annotations + defined in angular2/src/core/annotations_impl/annotations.ts (line 778) + +: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 a child Injector which is configured with the `appInjector` for the + Component. + + 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'; + } + } + ``` + + + Dynamically loading a component at runtime: + + Regular Angular components are statically resolved. Dynamic components allows to resolve a + component at runtime + instead by providing a placeholder into which a regular Angular component can be dynamically + loaded. Once loaded, + the dynamically-loaded component becomes permanent and cannot be changed. + Dynamic components are declared just like components, but without a `@View` annotation. + + + ## Example + + Here we have `DynamicComp` which acts as the placeholder for `HelloCmp`. At runtime, the dynamic + component + `DynamicComp` requests loading of the `HelloCmp` component. + + There is nothing special about `HelloCmp`, which is a regular Angular component. It can also be + used in other static + locations. + + ``` + @Component({ + selector: 'dynamic-comp' + }) + class DynamicComp { + helloCmp:HelloCmp; + constructor(loader:DynamicComponentLoader, location:ElementRef) { + loader.load(HelloCmp, location).then((helloCmp) => { + this.helloCmp = helloCmp; + }); + } + } + + @Component({ + selector: 'hello-cmp' + }) + @View({ + template: "{{greeting}}" + }) + class HelloCmp { + greeting:string; + constructor() { + this.greeting = "hello"; + } + } + ``` + + +.l-main-section + h2 Members + .l-sub-section + h3 constructor + + + pre.prettyprint + code. + constructor({selector, properties, events, hostListeners, hostProperties, hostAttributes, + hostActions, appInjector, lifecycle, hostInjector, viewInjector, + changeDetection = DEFAULT, compileChildren = true}: { + selector?: string, + properties?: List<string>, + events?: List<string>, + hostListeners?: StringMap<string, string>, + hostProperties?: StringMap<string, string>, + hostAttributes?: StringMap<string, string>, + hostActions?: StringMap<string, string>, + appInjector?: List<any>, + lifecycle?: List<LifecycleEvent>, + hostInjector?: List<any>, + viewInjector?: List<any>, + changeDetection?: string, + compileChildren?: boolean + } = {}) + + :markdown + + + + + + + .l-sub-section + h3 appInjector + + + :markdown + + Defines the set of injectable objects that are visible to a Component and its children. + + The `appInjector` defined in the Component annotation allow you to configure a set of bindings + for the component's + injector. + + When a component is instantiated, Angular creates a new child Injector, which is configured + with the bindings in + the Component `appInjector` annotation. The injectable objects then become available for + injection to the component + itself and any of the directives in the component's template, i.e. they are not available to + the directives which + are children in the component's light DOM. + + + The syntax for configuring the `appInjector` injectable is identical to Injector + injectable configuration. + See Injector for additional detail. + + + ## Simple Example + + Here is an example of a class that can be injected: + + ``` + class Greeter { + greet(name:string) { + return 'Hello ' + name + '!'; + } + } + + @Component({ + selector: 'greet', + appInjector: [ + Greeter + ] + }) + @View({ + template: `{{greeter.greet('world')}}!`, + directives: [Child] + }) + class HelloWorld { + greeter:Greeter; + + constructor(greeter:Greeter) { + this.greeter = greeter; + } + } + ``` + + + + + + + + .l-sub-section + h3 changeDetection + + + :markdown + + 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. + + The `changeDetection` property defines, whether the change detection will be checked every time + or only when the component + tells it to do so. + + + + + + + + .l-sub-section + h3 viewInjector + + + :markdown + + Defines the set of injectable objects that are visible to its view 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: 'needs-greeter' + }) + class NeedsGreeter { + greeter:Greeter; + + constructor(greeter:Greeter) { + this.greeter = greeter; + } + } + + @Component({ + selector: 'greet', + viewInjector: [ + Greeter + ] + }) + @View({ + template: ``, + directives: [NeedsGreeter] + }) + class HelloWorld { + } + + ``` + + + + + + diff --git a/public/docs/js/latest/api/annotations/Directive-var.jade b/public/docs/js/latest/api/annotations/Directive-var.jade new file mode 100644 index 0000000000..2126d4f288 --- /dev/null +++ b/public/docs/js/latest/api/annotations/Directive-var.jade @@ -0,0 +1,10 @@ + +.l-main-section + h2 Directive variable + p.location-badge. + exported from angular2/annotations + + :markdown + + + diff --git a/public/docs/js/latest/api/annotations/DirectiveAnnotation-class.jade b/public/docs/js/latest/api/annotations/DirectiveAnnotation-class.jade new file mode 100644 index 0000000000..a01c14c16e --- /dev/null +++ b/public/docs/js/latest/api/annotations/DirectiveAnnotation-class.jade @@ -0,0 +1,858 @@ + +p.location-badge. + exported from angular2/annotations + defined in angular2/src/core/annotations_impl/annotations.ts (line 4) + +:markdown + Directives allow you to attach behavior to elements in the DOM. + + Directives with an embedded view are called Components. + + A directive consists of a single directive annotation and a controller class. When the + directive's `selector` matches + elements in the DOM, the following steps occur: + + 1. For each directive, the `ElementInjector` attempts to resolve the directive's constructor + arguments. + 2. Angular instantiates directives for each matched element using `ElementInjector` in a + depth-first order, + as declared in the HTML. + + ## Understanding How Injection Works + + There are three stages of injection resolution. + - *Pre-existing Injectors*: + - The terminal Injector cannot resolve dependencies. It either throws an error or, if + the dependency was + specified as `@Optional`, returns `null`. + - The platform injector resolves browser singleton resources, such as: cookies, title, + location, and others. + - *Component Injectors*: Each component instance has its own Injector, and they follow + the same parent-child hierarchy + as the component instances in the DOM. + - *Element Injectors*: Each component instance has a Shadow DOM. Within the Shadow DOM each + element has an `ElementInjector` + which follow the same parent-child hierarchy as the DOM elements themselves. + + When a template is instantiated, it also must instantiate the corresponding directives in a + depth-first order. The + current `ElementInjector` resolves the constructor dependencies for each directive. + + Angular then resolves dependencies as follows, according to the order in which they appear in the + View: + + 1. Dependencies on the current element + 2. Dependencies on element injectors and their parents until it encounters a Shadow DOM boundary + 3. Dependencies on component injectors and their parents until it encounters the root component + 4. Dependencies on pre-existing injectors + + + The `ElementInjector` can inject other directives, element-specific special objects, or it can + delegate to the parent + injector. + + To inject other directives, declare the constructor parameter as: + - `directive:DirectiveType`: a directive on the current element only + - `@Ancestor() directive:DirectiveType`: any directive that matches the type between the current + element and the + Shadow DOM root. Current element is not included in the resolution, therefore even if it could + resolve it, it will + be ignored. + - `@Parent() directive:DirectiveType`: any directive that matches the type on a direct parent + element only. + - `@Query(DirectiveType) query:QueryList`: A live collection of direct child + directives. + - `@QueryDescendants(DirectiveType) query:QueryList`: A live collection of any + child directives. + + To inject element-specific special objects, declare the constructor parameter as: + - `element: ElementRef` to obtain a reference to logical element in the view. + - `viewContainer: ViewContainerRef` to control child template instantiation, for + Directive directives only + - `bindingPropagation: BindingPropagation` to control change detection in a more granular way. + + ## Example + + The following example demonstrates how dependency injection resolves constructor arguments in + practice. + + + Assume this HTML template: + + ``` +
+
+
+
+
+
+
+
+
+
+ ``` + + With the following `dependency` decorator and `SomeService` injectable class. + + ``` + @Injectable() + class SomeService { + } + + @Directive({ + selector: '[dependency]', + properties: [ + 'id: dependency' + ] + }) + class Dependency { + id:string; + } + ``` + + Let's step through the different ways in which `MyDirective` could be declared... + + + ### No injection + + Here the constructor is declared with no arguments, therefore nothing is injected into + `MyDirective`. + + ``` + @Directive({ selector: '[my-directive]' }) + class MyDirective { + constructor() { + } + } + ``` + + This directive would be instantiated with no dependencies. + + + ### Component-level injection + + Directives can inject any injectable instance from the closest component injector or any of its + parents. + + Here, the constructor declares a parameter, `someService`, and injects the `SomeService` type + from the parent + component's injector. + ``` + @Directive({ selector: '[my-directive]' }) + class MyDirective { + constructor(someService: SomeService) { + } + } + ``` + + This directive would be instantiated with a dependency on `SomeService`. + + + ### Injecting a directive from the current element + + Directives can inject other directives declared on the current element. + + ``` + @Directive({ selector: '[my-directive]' }) + class MyDirective { + constructor(dependency: Dependency) { + expect(dependency.id).toEqual(3); + } + } + ``` + This directive would be instantiated with `Dependency` declared at the same element, in this case + `dependency="3"`. + + + ### Injecting a directive from a direct parent element + + Directives can inject other directives declared on a direct parent element. By definition, a + directive with a + `@Parent` annotation does not attempt to resolve dependencies for the current element, even if + this would satisfy + the dependency. + + ``` + @Directive({ selector: '[my-directive]' }) + class MyDirective { + constructor(@Parent() dependency: Dependency) { + expect(dependency.id).toEqual(2); + } + } + ``` + This directive would be instantiated with `Dependency` declared at the parent element, in this + case `dependency="2"`. + + + ### Injecting a directive from any ancestor elements + + Directives can inject other directives declared on any ancestor element (in the current Shadow + DOM), i.e. on the + parent element and its parents. By definition, a directive with an `@Ancestor` annotation does + not attempt to + resolve dependencies for the current element, even if this would satisfy the dependency. + + ``` + @Directive({ selector: '[my-directive]' }) + class MyDirective { + constructor(@Ancestor() dependency: Dependency) { + expect(dependency.id).toEqual(2); + } + } + ``` + + Unlike the `@Parent` which only checks the parent, `@Ancestor` checks the parent, as well as its + parents recursively. If `dependency="2"` didn't exist on the direct parent, this injection would + have returned + `dependency="1"`. + + + ### Injecting a live collection of direct child directives + + + A directive can also query for other child directives. Since parent directives are instantiated + before child + directives, a directive can't simply inject the list of child directives. Instead, the directive + injects a QueryList, which updates its contents as children are added, removed, or moved + by a directive + that uses a ViewContainerRef such as a `for`, an `if`, or a `switch`. + + ``` + @Directive({ selector: '[my-directive]' }) + class MyDirective { + constructor(@Query(Dependency) dependencies:QueryList) { + } + } + ``` + + This directive would be instantiated with a QueryList which contains `Dependency` 4 and + 6. Here, `Dependency` + 5 would not be included, because it is not a direct child. + + ### Injecting a live collection of descendant directives + + Note: This is will be implemented in later release. () + + Similar to `@Query` above, but also includes the children of the child elements. + + ``` + @Directive({ selector: '[my-directive]' }) + class MyDirective { + constructor(@QueryDescendents(Dependency) dependencies:QueryList) { + } + } + ``` + + This directive would be instantiated with a Query which would contain `Dependency` 4, 5 and 6. + + ### Optional injection + + The normal behavior of directives is to return an error when a specified dependency cannot be + resolved. If you + would like to inject `null` on unresolved dependency instead, you can annotate that dependency + with `@Optional()`. + This explicitly permits the author of a template to treat some of the surrounding directives as + optional. + + ``` + @Directive({ selector: '[my-directive]' }) + class MyDirective { + constructor(@Optional() dependency:Dependency) { + } + } + ``` + + This directive would be instantiated with a `Dependency` directive found on the current element. + If none can be + found, the injector supplies `null` instead of throwing an error. + + ## Example + + Here we use a decorator directive to simply define basic tool-tip behavior. + + ``` + @Directive({ + selector: '[tooltip]', + properties: [ + 'text: tooltip' + ], + hostListeners: { + 'onmouseenter': 'onMouseEnter()', + 'onmouseleave': 'onMouseLeave()' + } + }) + class Tooltip{ + text:string; + overlay:Overlay; // NOT YET IMPLEMENTED + overlayManager:OverlayManager; // NOT YET IMPLEMENTED + + constructor(overlayManager:OverlayManager) { + this.overlay = overlay; + } + + onMouseEnter() { + // exact signature to be determined + this.overlay = this.overlayManager.open(text, ...); + } + + onMouseLeave() { + this.overlay.close(); + this.overlay = null; + } + } + ``` + In our HTML template, we can then add this behavior to a `
` or any other element with the + `tooltip` selector, + like so: + + ``` +
+ ``` + + Directives can also control the instantiation, destruction, and positioning of inline template + elements: + + A directive uses a ViewContainerRef to instantiate, insert, move, and destroy views at + runtime. + The ViewContainerRef is created as a result of `