@angular/core 6.0.0-rc.3 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/core-testing.umd.js +95 -19
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core-testing.umd.min.js +10 -11
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +555 -389
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +77 -77
- package/bundles/core.umd.min.js.map +1 -1
- package/core.metadata.json +1 -1
- package/esm2015/index.js +2 -2
- package/esm2015/public_api.js +2 -2
- package/esm2015/src/application_ref.js +6 -6
- package/esm2015/src/change_detection/change_detection_util.js +3 -3
- package/esm2015/src/change_detection/change_detector_ref.js +2 -2
- package/esm2015/src/change_detection/constants.js +1 -1
- package/esm2015/src/change_detection/differs/default_iterable_differ.js +15 -15
- package/esm2015/src/change_detection/differs/default_keyvalue_differ.js +2 -2
- package/esm2015/src/change_detection/differs/iterable_differs.js +15 -7
- package/esm2015/src/change_detection/differs/keyvalue_differs.js +6 -6
- package/esm2015/src/change_detection/pipe_transform.js +2 -2
- package/esm2015/src/core.js +4 -4
- package/esm2015/src/core_private_export.js +2 -2
- package/esm2015/src/core_render3_private_export.js +2 -2
- package/esm2015/src/di/defs.js +36 -19
- package/esm2015/src/di/injectable.js +3 -3
- package/esm2015/src/di/injection_token.js +2 -2
- package/esm2015/src/di/injector.js +35 -14
- package/esm2015/src/di/metadata.js +11 -11
- package/esm2015/src/di/provider.js +9 -9
- package/esm2015/src/di/r3_injector.js +12 -12
- package/esm2015/src/di/reflective_errors.js +3 -3
- package/esm2015/src/di.js +1 -1
- package/esm2015/src/error_handler.js +2 -2
- package/esm2015/src/event_emitter.js +2 -2
- package/esm2015/src/linker/compiler.js +2 -2
- package/esm2015/src/linker/component_factory.js +3 -3
- package/esm2015/src/linker/component_factory_resolver.js +2 -2
- package/esm2015/src/linker/element_ref.js +3 -3
- package/esm2015/src/linker/ng_module_factory.js +2 -2
- package/esm2015/src/linker/ng_module_factory_loader.js +2 -2
- package/esm2015/src/linker/query_list.js +2 -2
- package/esm2015/src/linker/template_ref.js +2 -2
- package/esm2015/src/linker/view_container_ref.js +2 -2
- package/esm2015/src/linker/view_ref.js +2 -2
- package/esm2015/src/metadata/di.js +12 -12
- package/esm2015/src/metadata/directives.js +15 -15
- package/esm2015/src/metadata/lifecycle_hooks.js +10 -10
- package/esm2015/src/metadata/ng_module.js +5 -5
- package/esm2015/src/metadata/view.js +1 -1
- package/esm2015/src/render3/assert.js +13 -1
- package/esm2015/src/render3/component.js +2 -1
- package/esm2015/src/render3/definition.js +4 -4
- package/esm2015/src/render3/di.js +61 -89
- package/esm2015/src/render3/hooks.js +7 -7
- package/esm2015/src/render3/index.js +1 -1
- package/esm2015/src/render3/instructions.js +128 -79
- package/esm2015/src/render3/interfaces/definition.js +9 -1
- package/esm2015/src/render3/interfaces/injector.js +1 -3
- package/esm2015/src/render3/interfaces/node.js +7 -11
- package/esm2015/src/render3/interfaces/view.js +17 -3
- package/esm2015/src/render3/node_manipulation.js +23 -3
- package/esm2015/src/render3/query.js +9 -7
- package/esm2015/src/sanitization/security.js +2 -2
- package/esm2015/src/type.js +2 -2
- package/esm2015/src/util/decorators.js +2 -2
- package/esm2015/src/util/lang.js +2 -2
- package/esm2015/src/version.js +4 -4
- package/esm2015/src/view/ng_module.js +5 -2
- package/esm2015/src/view/refs.js +1 -1
- package/esm2015/testing/src/async.js +2 -2
- package/esm2015/testing/src/async_fallback.js +2 -2
- package/esm2015/testing/src/component_fixture.js +2 -2
- package/esm2015/testing/src/test_bed.js +3 -3
- package/esm5/src/application_ref.js +7 -7
- package/esm5/src/change_detection/change_detection_util.js +7 -7
- package/esm5/src/change_detection/change_detector_ref.js +4 -4
- package/esm5/src/change_detection/constants.js +4 -4
- package/esm5/src/change_detection/differs/default_iterable_differ.js +18 -18
- package/esm5/src/change_detection/differs/default_keyvalue_differ.js +3 -3
- package/esm5/src/change_detection/differs/iterable_differs.js +9 -11
- package/esm5/src/change_detection/differs/keyvalue_differs.js +4 -4
- package/esm5/src/change_detection/pipe_transform.js +1 -1
- package/esm5/src/core_private_export.js +2 -2
- package/esm5/src/core_render3_private_export.js +2 -2
- package/esm5/src/di/defs.js +3 -6
- package/esm5/src/di/injectable.js +2 -2
- package/esm5/src/di/injection_token.js +4 -4
- package/esm5/src/di/injector.js +26 -11
- package/esm5/src/di/metadata.js +6 -6
- package/esm5/src/di/provider.js +1 -1
- package/esm5/src/di/r3_injector.js +12 -12
- package/esm5/src/di/reflective_errors.js +3 -3
- package/esm5/src/di.js +2 -2
- package/esm5/src/error_handler.js +4 -4
- package/esm5/src/event_emitter.js +4 -4
- package/esm5/src/linker/compiler.js +2 -2
- package/esm5/src/linker/component_factory.js +7 -7
- package/esm5/src/linker/component_factory_resolver.js +2 -2
- package/esm5/src/linker/element_ref.js +4 -4
- package/esm5/src/linker/ng_module_factory.js +4 -4
- package/esm5/src/linker/ng_module_factory_loader.js +4 -4
- package/esm5/src/linker/query_list.js +4 -4
- package/esm5/src/linker/template_ref.js +4 -4
- package/esm5/src/linker/view_container_ref.js +4 -4
- package/esm5/src/linker/view_ref.js +4 -4
- package/esm5/src/metadata/di.js +9 -9
- package/esm5/src/metadata/directives.js +8 -8
- package/esm5/src/metadata/lifecycle_hooks.js +1 -1
- package/esm5/src/metadata/ng_module.js +3 -3
- package/esm5/src/metadata/view.js +4 -4
- package/esm5/src/render3/assert.js +6 -1
- package/esm5/src/render3/component.js +2 -1
- package/esm5/src/render3/definition.js +1 -1
- package/esm5/src/render3/di.js +51 -74
- package/esm5/src/render3/hooks.js +6 -6
- package/esm5/src/render3/index.js +1 -1
- package/esm5/src/render3/instructions.js +123 -76
- package/esm5/src/render3/interfaces/definition.js +1 -1
- package/esm5/src/render3/interfaces/injector.js +1 -1
- package/esm5/src/render3/interfaces/node.js +1 -1
- package/esm5/src/render3/interfaces/view.js +1 -1
- package/esm5/src/render3/node_manipulation.js +20 -2
- package/esm5/src/render3/query.js +9 -7
- package/esm5/src/sanitization/security.js +7 -7
- package/esm5/src/type.js +2 -2
- package/esm5/src/util/decorators.js +1 -1
- package/esm5/src/util/lang.js +2 -2
- package/esm5/src/version.js +6 -6
- package/esm5/src/view/ng_module.js +5 -2
- package/esm5/src/view/refs.js +1 -1
- package/esm5/testing/src/async.js +2 -2
- package/esm5/testing/src/async_fallback.js +2 -2
- package/esm5/testing/src/component_fixture.js +4 -4
- package/esm5/testing/src/test_bed.js +5 -5
- package/fesm2015/core.js +468 -372
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +6 -6
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/core.js +403 -321
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +6 -6
- package/fesm5/testing.js.map +1 -1
- package/package.json +5 -4
- package/src/application_ref.d.ts +5 -5
- package/src/change_detection/change_detection_util.d.ts +2 -2
- package/src/change_detection/change_detector_ref.d.ts +1 -1
- package/src/change_detection/constants.d.ts +1 -1
- package/src/change_detection/differs/default_iterable_differ.d.ts +1 -1
- package/src/change_detection/differs/iterable_differs.d.ts +8 -7
- package/src/change_detection/differs/keyvalue_differs.d.ts +5 -5
- package/src/change_detection/pipe_transform.d.ts +1 -1
- package/src/core_private_export.d.ts +1 -1
- package/src/core_render3_private_export.d.ts +1 -1
- package/src/di/defs.d.ts +29 -10
- package/src/di/injectable.d.ts +3 -3
- package/src/di/injection_token.d.ts +3 -4
- package/src/di/injector.d.ts +14 -11
- package/src/di/metadata.d.ts +20 -20
- package/src/di/provider.d.ts +10 -10
- package/src/di/r3_injector.d.ts +3 -3
- package/src/di/reflective_errors.d.ts +2 -2
- package/src/di.d.ts +1 -1
- package/src/error_handler.d.ts +1 -1
- package/src/event_emitter.d.ts +1 -1
- package/src/linker/compiler.d.ts +1 -1
- package/src/linker/component_factory.d.ts +2 -2
- package/src/linker/component_factory_resolver.d.ts +1 -1
- package/src/linker/element_ref.d.ts +2 -2
- package/src/linker/ng_module_factory.d.ts +1 -1
- package/src/linker/ng_module_factory_loader.d.ts +1 -1
- package/src/linker/query_list.d.ts +1 -1
- package/src/linker/template_ref.d.ts +1 -1
- package/src/linker/view_container_ref.d.ts +1 -1
- package/src/linker/view_ref.d.ts +1 -1
- package/src/metadata/di.d.ts +21 -21
- package/src/metadata/directives.d.ts +28 -28
- package/src/metadata/lifecycle_hooks.d.ts +9 -9
- package/src/metadata/ng_module.d.ts +5 -5
- package/src/metadata/view.d.ts +1 -1
- package/src/render3/assert.d.ts +1 -0
- package/src/render3/definition.d.ts +3 -3
- package/src/render3/di.d.ts +4 -14
- package/src/render3/index.d.ts +2 -1
- package/src/render3/instructions.d.ts +3 -3
- package/src/render3/interfaces/definition.d.ts +23 -4
- package/src/render3/interfaces/injector.d.ts +0 -2
- package/src/render3/interfaces/node.d.ts +7 -13
- package/src/render3/interfaces/view.d.ts +16 -3
- package/src/render3/node_manipulation.d.ts +3 -2
- package/src/sanitization/security.d.ts +2 -2
- package/src/type.d.ts +1 -1
- package/src/util/decorators.d.ts +1 -1
- package/src/version.d.ts +2 -2
- package/testing/src/async.d.ts +1 -1
- package/testing/src/async_fallback.d.ts +1 -1
- package/testing/src/component_fixture.d.ts +1 -1
- package/testing/src/test_bed.d.ts +2 -2
- package/testing.d.ts +1 -1
package/src/di/provider.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface ValueSansProvider {
|
|
|
45
45
|
*
|
|
46
46
|
* {@example core/di/ts/provider_spec.ts region='ValueProvider'}
|
|
47
47
|
*
|
|
48
|
-
*
|
|
48
|
+
*
|
|
49
49
|
*/
|
|
50
50
|
export interface ValueProvider extends ValueSansProvider {
|
|
51
51
|
/**
|
|
@@ -113,7 +113,7 @@ export interface StaticClassSansProvider {
|
|
|
113
113
|
* Note that following two providers are not equal:
|
|
114
114
|
* {@example core/di/ts/provider_spec.ts region='StaticClassProviderDifference'}
|
|
115
115
|
*
|
|
116
|
-
*
|
|
116
|
+
*
|
|
117
117
|
*/
|
|
118
118
|
export interface StaticClassProvider extends StaticClassSansProvider {
|
|
119
119
|
/**
|
|
@@ -173,7 +173,7 @@ export interface ConstructorSansProvider {
|
|
|
173
173
|
*
|
|
174
174
|
* {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}
|
|
175
175
|
*
|
|
176
|
-
*
|
|
176
|
+
*
|
|
177
177
|
*/
|
|
178
178
|
export interface ConstructorProvider extends ConstructorSansProvider {
|
|
179
179
|
/**
|
|
@@ -206,7 +206,7 @@ export interface ConstructorProvider extends ConstructorSansProvider {
|
|
|
206
206
|
*
|
|
207
207
|
* {@example core/di/ts/provider_spec.ts region='ExistingSansProvider'}
|
|
208
208
|
*
|
|
209
|
-
*
|
|
209
|
+
*
|
|
210
210
|
*/
|
|
211
211
|
export interface ExistingSansProvider {
|
|
212
212
|
/**
|
|
@@ -229,7 +229,7 @@ export interface ExistingSansProvider {
|
|
|
229
229
|
*
|
|
230
230
|
* {@example core/di/ts/provider_spec.ts region='ExistingProvider'}
|
|
231
231
|
*
|
|
232
|
-
*
|
|
232
|
+
*
|
|
233
233
|
*/
|
|
234
234
|
export interface ExistingProvider extends ExistingSansProvider {
|
|
235
235
|
/**
|
|
@@ -298,7 +298,7 @@ export interface FactorySansProvider {
|
|
|
298
298
|
* Dependencies can also be marked as optional:
|
|
299
299
|
* {@example core/di/ts/provider_spec.ts region='FactoryProviderOptionalDeps'}
|
|
300
300
|
*
|
|
301
|
-
*
|
|
301
|
+
*
|
|
302
302
|
*/
|
|
303
303
|
export interface FactoryProvider extends FactorySansProvider {
|
|
304
304
|
/**
|
|
@@ -324,7 +324,7 @@ export interface FactoryProvider extends FactorySansProvider {
|
|
|
324
324
|
*
|
|
325
325
|
* For more details, see the {@linkDocs guide/dependency-injection "Dependency Injection Guide"}.
|
|
326
326
|
*
|
|
327
|
-
*
|
|
327
|
+
*
|
|
328
328
|
*/
|
|
329
329
|
export declare type StaticProvider = ValueProvider | ExistingProvider | StaticClassProvider | ConstructorProvider | FactoryProvider | any[];
|
|
330
330
|
/**
|
|
@@ -348,7 +348,7 @@ export declare type StaticProvider = ValueProvider | ExistingProvider | StaticCl
|
|
|
348
348
|
*
|
|
349
349
|
* {@example core/di/ts/provider_spec.ts region='TypeProvider'}
|
|
350
350
|
*
|
|
351
|
-
*
|
|
351
|
+
*
|
|
352
352
|
*/
|
|
353
353
|
export interface TypeProvider extends Type<any> {
|
|
354
354
|
}
|
|
@@ -400,7 +400,7 @@ export interface ClassSansProvider {
|
|
|
400
400
|
* Note that following two providers are not equal:
|
|
401
401
|
* {@example core/di/ts/provider_spec.ts region='ClassProviderDifference'}
|
|
402
402
|
*
|
|
403
|
-
*
|
|
403
|
+
*
|
|
404
404
|
*/
|
|
405
405
|
export interface ClassProvider extends ClassSansProvider {
|
|
406
406
|
/**
|
|
@@ -426,6 +426,6 @@ export interface ClassProvider extends ClassSansProvider {
|
|
|
426
426
|
*
|
|
427
427
|
* For more details, see the {@linkDocs guide/dependency-injection "Dependency Injection Guide"}.
|
|
428
428
|
*
|
|
429
|
-
*
|
|
429
|
+
*
|
|
430
430
|
*/
|
|
431
431
|
export declare type Provider = TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[];
|
package/src/di/r3_injector.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { InjectorType } from './defs';
|
|
|
3
3
|
import { InjectionToken } from './injection_token';
|
|
4
4
|
import { InjectFlags, Injector } from './injector';
|
|
5
5
|
/**
|
|
6
|
-
* Create a new `Injector` which is configured using `
|
|
6
|
+
* Create a new `Injector` which is configured using `InjectorType`s.
|
|
7
7
|
*
|
|
8
8
|
* @experimental
|
|
9
9
|
*/
|
|
@@ -15,7 +15,7 @@ export declare class R3Injector {
|
|
|
15
15
|
*/
|
|
16
16
|
private records;
|
|
17
17
|
/**
|
|
18
|
-
* The transitive set of `
|
|
18
|
+
* The transitive set of `InjectorType`s which define this injector.
|
|
19
19
|
*/
|
|
20
20
|
private injectorDefTypes;
|
|
21
21
|
/**
|
|
@@ -42,7 +42,7 @@ export declare class R3Injector {
|
|
|
42
42
|
get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: any, flags?: InjectFlags): T;
|
|
43
43
|
private assertNotDestroyed();
|
|
44
44
|
/**
|
|
45
|
-
* Add an `
|
|
45
|
+
* Add an `InjectorType` or `InjectorDefTypeWithProviders` and all of its transitive providers
|
|
46
46
|
* to this injector.
|
|
47
47
|
*/
|
|
48
48
|
private processInjectorType(defOrWrappedDef, parents);
|
|
@@ -104,7 +104,7 @@ export declare function invalidProviderError(provider: any): Error;
|
|
|
104
104
|
*
|
|
105
105
|
* expect(() => Injector.resolveAndCreate([A,B])).toThrowError();
|
|
106
106
|
* ```
|
|
107
|
-
*
|
|
107
|
+
*
|
|
108
108
|
*/
|
|
109
109
|
export declare function noAnnotationError(typeOrFunc: Type<any> | Function, params: any[][]): Error;
|
|
110
110
|
/**
|
|
@@ -119,7 +119,7 @@ export declare function noAnnotationError(typeOrFunc: Type<any> | Function, para
|
|
|
119
119
|
*
|
|
120
120
|
* expect(() => injector.getAt(100)).toThrowError();
|
|
121
121
|
* ```
|
|
122
|
-
*
|
|
122
|
+
*
|
|
123
123
|
*/
|
|
124
124
|
export declare function outOfBoundsError(index: number): Error;
|
|
125
125
|
/**
|
package/src/di.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* The `di` module provides dependency injection container services.
|
|
12
12
|
*/
|
|
13
13
|
export * from './di/metadata';
|
|
14
|
-
export
|
|
14
|
+
export { InjectableType, InjectorType, defineInjectable, defineInjector } from './di/defs';
|
|
15
15
|
export { forwardRef, resolveForwardRef, ForwardRefFn } from './di/forward_ref';
|
|
16
16
|
export { Injectable, InjectableDecorator, InjectableProvider } from './di/injectable';
|
|
17
17
|
export { inject, InjectFlags, INJECTOR, Injector } from './di/injector';
|
package/src/error_handler.d.ts
CHANGED
package/src/event_emitter.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ import { Subject } from 'rxjs';
|
|
|
51
51
|
* https://github.com/jhusain/observable-spec
|
|
52
52
|
*
|
|
53
53
|
* Once a reference implementation of the spec is available, switch to it.
|
|
54
|
-
*
|
|
54
|
+
*
|
|
55
55
|
*/
|
|
56
56
|
export declare class EventEmitter<T> extends Subject<T> {
|
|
57
57
|
__isAsync: boolean;
|
package/src/linker/compiler.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare class ModuleWithComponentFactories<T> {
|
|
|
29
29
|
* Each `@NgModule` provides an own `Compiler` to its injector,
|
|
30
30
|
* that will use the directives/pipes of the ng module for compilation
|
|
31
31
|
* of components.
|
|
32
|
-
*
|
|
32
|
+
*
|
|
33
33
|
*/
|
|
34
34
|
export declare class Compiler {
|
|
35
35
|
/**
|
|
@@ -17,7 +17,7 @@ import { ViewRef } from './view_ref';
|
|
|
17
17
|
* `ComponentRef` provides access to the Component Instance as well other objects related to this
|
|
18
18
|
* Component Instance and allows you to destroy the Component Instance via the {@link #destroy}
|
|
19
19
|
* method.
|
|
20
|
-
*
|
|
20
|
+
*
|
|
21
21
|
*/
|
|
22
22
|
export declare abstract class ComponentRef<C> {
|
|
23
23
|
/**
|
|
@@ -54,7 +54,7 @@ export declare abstract class ComponentRef<C> {
|
|
|
54
54
|
abstract onDestroy(callback: Function): void;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
*
|
|
58
58
|
*/
|
|
59
59
|
export declare abstract class ComponentFactory<C> {
|
|
60
60
|
readonly abstract selector: string;
|
|
@@ -12,7 +12,7 @@ import { NgModuleRef } from './ng_module_factory';
|
|
|
12
12
|
export declare function noComponentFactoryError(component: Function): Error;
|
|
13
13
|
export declare function getComponent(error: Error): Type<any>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
*
|
|
16
16
|
*/
|
|
17
17
|
export declare abstract class ComponentFactoryResolver {
|
|
18
18
|
static NULL: ComponentFactoryResolver;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the
|
|
16
16
|
* [Security Guide](http://g.co/ng/security).
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
*
|
|
19
19
|
*/
|
|
20
20
|
export declare class ElementRef<T = any> {
|
|
21
21
|
/**
|
|
@@ -37,7 +37,7 @@ export declare class ElementRef<T = any> {
|
|
|
37
37
|
* web worker.
|
|
38
38
|
* </p>
|
|
39
39
|
* </div>
|
|
40
|
-
*
|
|
40
|
+
*
|
|
41
41
|
*/
|
|
42
42
|
nativeElement: T;
|
|
43
43
|
constructor(nativeElement: T);
|
|
@@ -14,7 +14,7 @@ import { ComponentFactoryResolver } from './component_factory_resolver';
|
|
|
14
14
|
* `NgModuleRef` provides access to the NgModule Instance as well other objects related to this
|
|
15
15
|
* NgModule Instance.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
17
|
+
*
|
|
18
18
|
*/
|
|
19
19
|
export declare abstract class NgModuleRef<T> {
|
|
20
20
|
/**
|
|
@@ -17,7 +17,7 @@ import { EmbeddedViewRef } from './view_ref';
|
|
|
17
17
|
*
|
|
18
18
|
* To instantiate Embedded Views based on a Template, use {@link ViewContainerRef#
|
|
19
19
|
* createEmbeddedView}, which will create the View and attach it to the View Container.
|
|
20
|
-
*
|
|
20
|
+
*
|
|
21
21
|
*/
|
|
22
22
|
export declare abstract class TemplateRef<C> {
|
|
23
23
|
/**
|
|
@@ -27,7 +27,7 @@ import { EmbeddedViewRef, ViewRef } from './view_ref';
|
|
|
27
27
|
*
|
|
28
28
|
* To access a `ViewContainerRef` of an Element, you can either place a {@link Directive} injected
|
|
29
29
|
* with `ViewContainerRef` on the Element, or you obtain it via a {@link ViewChild} query.
|
|
30
|
-
*
|
|
30
|
+
*
|
|
31
31
|
*/
|
|
32
32
|
export declare abstract class ViewContainerRef {
|
|
33
33
|
/**
|
package/src/linker/view_ref.d.ts
CHANGED
package/src/metadata/di.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare const ANALYZE_FOR_ENTRY_COMPONENTS: InjectionToken<any>;
|
|
|
45
45
|
/**
|
|
46
46
|
* Type of the Attribute decorator / constructor function.
|
|
47
47
|
*
|
|
48
|
-
*
|
|
48
|
+
*
|
|
49
49
|
*/
|
|
50
50
|
export interface AttributeDecorator {
|
|
51
51
|
/**
|
|
@@ -84,7 +84,7 @@ export interface AttributeDecorator {
|
|
|
84
84
|
* ]
|
|
85
85
|
* ```
|
|
86
86
|
*
|
|
87
|
-
*
|
|
87
|
+
*
|
|
88
88
|
*/
|
|
89
89
|
(name: string): any;
|
|
90
90
|
new (name: string): Attribute;
|
|
@@ -98,14 +98,14 @@ export interface Attribute {
|
|
|
98
98
|
/**
|
|
99
99
|
* Attribute decorator and metadata.
|
|
100
100
|
*
|
|
101
|
-
*
|
|
101
|
+
*
|
|
102
102
|
* @Annotation
|
|
103
103
|
*/
|
|
104
104
|
export declare const Attribute: AttributeDecorator;
|
|
105
105
|
/**
|
|
106
106
|
* Type of the Query metadata.
|
|
107
107
|
*
|
|
108
|
-
*
|
|
108
|
+
*
|
|
109
109
|
*/
|
|
110
110
|
export interface Query {
|
|
111
111
|
descendants: boolean;
|
|
@@ -120,7 +120,7 @@ export interface Query {
|
|
|
120
120
|
* See {@link ContentChildren}, {@link ContentChild}, {@link ViewChildren}, {@link ViewChild} for
|
|
121
121
|
* more information.
|
|
122
122
|
*
|
|
123
|
-
*
|
|
123
|
+
*
|
|
124
124
|
*/
|
|
125
125
|
export declare abstract class Query {
|
|
126
126
|
}
|
|
@@ -129,7 +129,7 @@ export declare abstract class Query {
|
|
|
129
129
|
*
|
|
130
130
|
* See {@link ContentChildren}.
|
|
131
131
|
*
|
|
132
|
-
*
|
|
132
|
+
*
|
|
133
133
|
*/
|
|
134
134
|
export interface ContentChildrenDecorator {
|
|
135
135
|
/**
|
|
@@ -160,7 +160,7 @@ export interface ContentChildrenDecorator {
|
|
|
160
160
|
*
|
|
161
161
|
* **npm package**: `@angular/core`
|
|
162
162
|
*
|
|
163
|
-
*
|
|
163
|
+
*
|
|
164
164
|
* @Annotation
|
|
165
165
|
*/
|
|
166
166
|
(selector: Type<any> | Function | string, opts?: {
|
|
@@ -175,14 +175,14 @@ export interface ContentChildrenDecorator {
|
|
|
175
175
|
/**
|
|
176
176
|
* Type of the ContentChildren metadata.
|
|
177
177
|
*
|
|
178
|
-
*
|
|
178
|
+
*
|
|
179
179
|
* @Annotation
|
|
180
180
|
*/
|
|
181
181
|
export declare type ContentChildren = Query;
|
|
182
182
|
/**
|
|
183
183
|
* ContentChildren decorator and metadata.
|
|
184
184
|
*
|
|
185
|
-
*
|
|
185
|
+
*
|
|
186
186
|
* @Annotation
|
|
187
187
|
*/
|
|
188
188
|
export declare const ContentChildren: ContentChildrenDecorator;
|
|
@@ -190,7 +190,7 @@ export declare const ContentChildren: ContentChildrenDecorator;
|
|
|
190
190
|
* Type of the ContentChild decorator / constructor function.
|
|
191
191
|
*
|
|
192
192
|
*
|
|
193
|
-
*
|
|
193
|
+
*
|
|
194
194
|
*/
|
|
195
195
|
export interface ContentChildDecorator {
|
|
196
196
|
/**
|
|
@@ -219,7 +219,7 @@ export interface ContentChildDecorator {
|
|
|
219
219
|
*
|
|
220
220
|
* **npm package**: `@angular/core`
|
|
221
221
|
*
|
|
222
|
-
*
|
|
222
|
+
*
|
|
223
223
|
* @Annotation
|
|
224
224
|
*/
|
|
225
225
|
(selector: Type<any> | Function | string, opts?: {
|
|
@@ -234,13 +234,13 @@ export interface ContentChildDecorator {
|
|
|
234
234
|
*
|
|
235
235
|
* See {@link ContentChild}.
|
|
236
236
|
*
|
|
237
|
-
*
|
|
237
|
+
*
|
|
238
238
|
*/
|
|
239
239
|
export declare type ContentChild = Query;
|
|
240
240
|
/**
|
|
241
241
|
* ContentChild decorator and metadata.
|
|
242
242
|
*
|
|
243
|
-
*
|
|
243
|
+
*
|
|
244
244
|
* @Annotation
|
|
245
245
|
*/
|
|
246
246
|
export declare const ContentChild: ContentChildDecorator;
|
|
@@ -249,7 +249,7 @@ export declare const ContentChild: ContentChildDecorator;
|
|
|
249
249
|
*
|
|
250
250
|
* See {@link ViewChildren}.
|
|
251
251
|
*
|
|
252
|
-
*
|
|
252
|
+
*
|
|
253
253
|
*/
|
|
254
254
|
export interface ViewChildrenDecorator {
|
|
255
255
|
/**
|
|
@@ -278,7 +278,7 @@ export interface ViewChildrenDecorator {
|
|
|
278
278
|
*
|
|
279
279
|
* **npm package**: `@angular/core`
|
|
280
280
|
*
|
|
281
|
-
*
|
|
281
|
+
*
|
|
282
282
|
* @Annotation
|
|
283
283
|
*/
|
|
284
284
|
(selector: Type<any> | Function | string, opts?: {
|
|
@@ -291,13 +291,13 @@ export interface ViewChildrenDecorator {
|
|
|
291
291
|
/**
|
|
292
292
|
* Type of the ViewChildren metadata.
|
|
293
293
|
*
|
|
294
|
-
*
|
|
294
|
+
*
|
|
295
295
|
*/
|
|
296
296
|
export declare type ViewChildren = Query;
|
|
297
297
|
/**
|
|
298
298
|
* ViewChildren decorator and metadata.
|
|
299
299
|
*
|
|
300
|
-
*
|
|
300
|
+
*
|
|
301
301
|
* @Annotation
|
|
302
302
|
*/
|
|
303
303
|
export declare const ViewChildren: ViewChildrenDecorator;
|
|
@@ -306,7 +306,7 @@ export declare const ViewChildren: ViewChildrenDecorator;
|
|
|
306
306
|
*
|
|
307
307
|
* See {@link ViewChild}
|
|
308
308
|
*
|
|
309
|
-
*
|
|
309
|
+
*
|
|
310
310
|
*/
|
|
311
311
|
export interface ViewChildDecorator {
|
|
312
312
|
/**
|
|
@@ -333,7 +333,7 @@ export interface ViewChildDecorator {
|
|
|
333
333
|
*
|
|
334
334
|
* **npm package**: `@angular/core`
|
|
335
335
|
*
|
|
336
|
-
*
|
|
336
|
+
*
|
|
337
337
|
* @Annotation
|
|
338
338
|
*/
|
|
339
339
|
(selector: Type<any> | Function | string, opts?: {
|
|
@@ -346,13 +346,13 @@ export interface ViewChildDecorator {
|
|
|
346
346
|
/**
|
|
347
347
|
* Type of the ViewChild metadata.
|
|
348
348
|
*
|
|
349
|
-
*
|
|
349
|
+
*
|
|
350
350
|
*/
|
|
351
351
|
export declare type ViewChild = Query;
|
|
352
352
|
/**
|
|
353
353
|
* ViewChild decorator and metadata.
|
|
354
354
|
*
|
|
355
|
-
*
|
|
355
|
+
*
|
|
356
356
|
* @Annotation
|
|
357
357
|
*/
|
|
358
358
|
export declare const ViewChild: ViewChildDecorator;
|
|
@@ -13,7 +13,7 @@ import { ViewEncapsulation } from './view';
|
|
|
13
13
|
/**
|
|
14
14
|
* Type of the Directive decorator / constructor function.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
*
|
|
17
17
|
*/
|
|
18
18
|
export interface DirectiveDecorator {
|
|
19
19
|
/**
|
|
@@ -61,7 +61,7 @@ export interface DirectiveDecorator {
|
|
|
61
61
|
* * **queries** - configure queries that can be injected into the component
|
|
62
62
|
* * **selector** - css selector that identifies this component in a template
|
|
63
63
|
*
|
|
64
|
-
*
|
|
64
|
+
*
|
|
65
65
|
* @Annotation
|
|
66
66
|
*/
|
|
67
67
|
(obj: Directive): TypeDecorator;
|
|
@@ -141,7 +141,7 @@ export interface Directive {
|
|
|
141
141
|
* @Component({
|
|
142
142
|
* selector: 'app',
|
|
143
143
|
* template: `
|
|
144
|
-
* <bank-account
|
|
144
|
+
* <bank-account bankName="RBC" account-id="4747"></bank-account>
|
|
145
145
|
* `
|
|
146
146
|
* })
|
|
147
147
|
* class App {}
|
|
@@ -388,14 +388,14 @@ export interface Directive {
|
|
|
388
388
|
/**
|
|
389
389
|
* Directive decorator and metadata.
|
|
390
390
|
*
|
|
391
|
-
*
|
|
391
|
+
*
|
|
392
392
|
* @Annotation
|
|
393
393
|
*/
|
|
394
394
|
export declare const Directive: DirectiveDecorator;
|
|
395
395
|
/**
|
|
396
396
|
* Type of the Component decorator / constructor function.
|
|
397
397
|
*
|
|
398
|
-
*
|
|
398
|
+
*
|
|
399
399
|
*/
|
|
400
400
|
export interface ComponentDecorator {
|
|
401
401
|
/**
|
|
@@ -451,7 +451,7 @@ export interface ComponentDecorator {
|
|
|
451
451
|
*
|
|
452
452
|
* {@example core/ts/metadata/metadata.ts region='component'}
|
|
453
453
|
*
|
|
454
|
-
*
|
|
454
|
+
*
|
|
455
455
|
* @Annotation
|
|
456
456
|
*/
|
|
457
457
|
(obj: Component): TypeDecorator;
|
|
@@ -463,7 +463,7 @@ export interface ComponentDecorator {
|
|
|
463
463
|
/**
|
|
464
464
|
* Type of the Component metadata.
|
|
465
465
|
*
|
|
466
|
-
*
|
|
466
|
+
*
|
|
467
467
|
*/
|
|
468
468
|
export interface Component extends Directive {
|
|
469
469
|
/**
|
|
@@ -725,14 +725,14 @@ export interface Component extends Directive {
|
|
|
725
725
|
/**
|
|
726
726
|
* Component decorator and metadata.
|
|
727
727
|
*
|
|
728
|
-
*
|
|
728
|
+
*
|
|
729
729
|
* @Annotation
|
|
730
730
|
*/
|
|
731
731
|
export declare const Component: ComponentDecorator;
|
|
732
732
|
/**
|
|
733
733
|
* Type of the Pipe decorator / constructor function.
|
|
734
734
|
*
|
|
735
|
-
*
|
|
735
|
+
*
|
|
736
736
|
*/
|
|
737
737
|
export interface PipeDecorator {
|
|
738
738
|
/**
|
|
@@ -751,7 +751,7 @@ export interface PipeDecorator {
|
|
|
751
751
|
/**
|
|
752
752
|
* Type of the Pipe metadata.
|
|
753
753
|
*
|
|
754
|
-
*
|
|
754
|
+
*
|
|
755
755
|
*/
|
|
756
756
|
export interface Pipe {
|
|
757
757
|
/**
|
|
@@ -782,14 +782,14 @@ export interface Pipe {
|
|
|
782
782
|
* To use the pipe include a reference to the pipe class in
|
|
783
783
|
* {@link NgModule#declarations}.
|
|
784
784
|
*
|
|
785
|
-
*
|
|
785
|
+
*
|
|
786
786
|
* @Annotation
|
|
787
787
|
*/
|
|
788
788
|
export declare const Pipe: PipeDecorator;
|
|
789
789
|
/**
|
|
790
790
|
* Type of the Input decorator / constructor function.
|
|
791
791
|
*
|
|
792
|
-
*
|
|
792
|
+
*
|
|
793
793
|
*/
|
|
794
794
|
export interface InputDecorator {
|
|
795
795
|
/**
|
|
@@ -824,13 +824,13 @@ export interface InputDecorator {
|
|
|
824
824
|
* @Component({
|
|
825
825
|
* selector: 'app',
|
|
826
826
|
* template: `
|
|
827
|
-
* <bank-account
|
|
827
|
+
* <bank-account bankName="RBC" account-id="4747"></bank-account>
|
|
828
828
|
* `
|
|
829
829
|
* })
|
|
830
830
|
*
|
|
831
831
|
* class App {}
|
|
832
832
|
* ```
|
|
833
|
-
*
|
|
833
|
+
*
|
|
834
834
|
*/
|
|
835
835
|
(bindingPropertyName?: string): any;
|
|
836
836
|
new (bindingPropertyName?: string): any;
|
|
@@ -838,7 +838,7 @@ export interface InputDecorator {
|
|
|
838
838
|
/**
|
|
839
839
|
* Type of the Input metadata.
|
|
840
840
|
*
|
|
841
|
-
*
|
|
841
|
+
*
|
|
842
842
|
*/
|
|
843
843
|
export interface Input {
|
|
844
844
|
/**
|
|
@@ -849,14 +849,14 @@ export interface Input {
|
|
|
849
849
|
/**
|
|
850
850
|
* Input decorator and metadata.
|
|
851
851
|
*
|
|
852
|
-
*
|
|
852
|
+
*
|
|
853
853
|
* @Annotation
|
|
854
854
|
*/
|
|
855
855
|
export declare const Input: InputDecorator;
|
|
856
856
|
/**
|
|
857
857
|
* Type of the Output decorator / constructor function.
|
|
858
858
|
*
|
|
859
|
-
*
|
|
859
|
+
*
|
|
860
860
|
*/
|
|
861
861
|
export interface OutputDecorator {
|
|
862
862
|
/**
|
|
@@ -897,7 +897,7 @@ export interface OutputDecorator {
|
|
|
897
897
|
* everyFiveSeconds() { console.log('five seconds'); }
|
|
898
898
|
* }
|
|
899
899
|
* ```
|
|
900
|
-
*
|
|
900
|
+
*
|
|
901
901
|
*/
|
|
902
902
|
(bindingPropertyName?: string): any;
|
|
903
903
|
new (bindingPropertyName?: string): any;
|
|
@@ -905,7 +905,7 @@ export interface OutputDecorator {
|
|
|
905
905
|
/**
|
|
906
906
|
* Type of the Output metadata.
|
|
907
907
|
*
|
|
908
|
-
*
|
|
908
|
+
*
|
|
909
909
|
*/
|
|
910
910
|
export interface Output {
|
|
911
911
|
bindingPropertyName?: string;
|
|
@@ -913,14 +913,14 @@ export interface Output {
|
|
|
913
913
|
/**
|
|
914
914
|
* Output decorator and metadata.
|
|
915
915
|
*
|
|
916
|
-
*
|
|
916
|
+
*
|
|
917
917
|
* @Annotation
|
|
918
918
|
*/
|
|
919
919
|
export declare const Output: OutputDecorator;
|
|
920
920
|
/**
|
|
921
921
|
* Type of the HostBinding decorator / constructor function.
|
|
922
922
|
*
|
|
923
|
-
*
|
|
923
|
+
*
|
|
924
924
|
*/
|
|
925
925
|
export interface HostBindingDecorator {
|
|
926
926
|
/**
|
|
@@ -954,7 +954,7 @@ export interface HostBindingDecorator {
|
|
|
954
954
|
* prop;
|
|
955
955
|
* }
|
|
956
956
|
* ```
|
|
957
|
-
*
|
|
957
|
+
*
|
|
958
958
|
*/
|
|
959
959
|
(hostPropertyName?: string): any;
|
|
960
960
|
new (hostPropertyName?: string): any;
|
|
@@ -962,7 +962,7 @@ export interface HostBindingDecorator {
|
|
|
962
962
|
/**
|
|
963
963
|
* Type of the HostBinding metadata.
|
|
964
964
|
*
|
|
965
|
-
*
|
|
965
|
+
*
|
|
966
966
|
*/
|
|
967
967
|
export interface HostBinding {
|
|
968
968
|
hostPropertyName?: string;
|
|
@@ -970,14 +970,14 @@ export interface HostBinding {
|
|
|
970
970
|
/**
|
|
971
971
|
* HostBinding decorator and metadata.
|
|
972
972
|
*
|
|
973
|
-
*
|
|
973
|
+
*
|
|
974
974
|
* @Annotation
|
|
975
975
|
*/
|
|
976
976
|
export declare const HostBinding: HostBindingDecorator;
|
|
977
977
|
/**
|
|
978
978
|
* Type of the HostListener decorator / constructor function.
|
|
979
979
|
*
|
|
980
|
-
*
|
|
980
|
+
*
|
|
981
981
|
*/
|
|
982
982
|
export interface HostListenerDecorator {
|
|
983
983
|
/**
|
|
@@ -1009,7 +1009,7 @@ export interface HostListenerDecorator {
|
|
|
1009
1009
|
* })
|
|
1010
1010
|
* class App {}
|
|
1011
1011
|
* ```
|
|
1012
|
-
*
|
|
1012
|
+
*
|
|
1013
1013
|
* @Annotation
|
|
1014
1014
|
*/
|
|
1015
1015
|
(eventName: string, args?: string[]): any;
|
|
@@ -1018,7 +1018,7 @@ export interface HostListenerDecorator {
|
|
|
1018
1018
|
/**
|
|
1019
1019
|
* Type of the HostListener metadata.
|
|
1020
1020
|
*
|
|
1021
|
-
*
|
|
1021
|
+
*
|
|
1022
1022
|
*/
|
|
1023
1023
|
export interface HostListener {
|
|
1024
1024
|
eventName?: string;
|
|
@@ -1027,7 +1027,7 @@ export interface HostListener {
|
|
|
1027
1027
|
/**
|
|
1028
1028
|
* HostListener decorator and metadata.
|
|
1029
1029
|
*
|
|
1030
|
-
*
|
|
1030
|
+
*
|
|
1031
1031
|
* @Annotation
|
|
1032
1032
|
*/
|
|
1033
1033
|
export declare const HostListener: HostListenerDecorator;
|