@angular/core 6.0.3 → 6.0.7
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 +61 -237
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core-testing.umd.min.js +11 -4
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +591 -2007
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +4 -32
- package/bundles/core.umd.min.js.map +1 -1
- package/core.metadata.json +1 -1
- package/esm2015/core.externs.js +3 -3
- package/esm2015/src/application_init.js +2 -9
- package/esm2015/src/application_module.js +1 -10
- package/esm2015/src/application_ref.js +15 -30
- package/esm2015/src/change_detection/change_detector_ref.js +7 -5
- package/esm2015/src/change_detection/differs/iterable_differs.js +4 -3
- package/esm2015/src/change_detection/differs/keyvalue_differs.js +4 -3
- package/esm2015/src/change_detection/pipe_transform.js +3 -6
- package/esm2015/src/console.js +0 -11
- package/esm2015/src/di/forward_ref.js +8 -6
- package/esm2015/src/di/injectable.js +1 -4
- package/esm2015/src/di/injection_token.js +6 -8
- package/esm2015/src/di/injector.js +5 -10
- package/esm2015/src/di/metadata.js +1 -16
- package/esm2015/src/di/provider.js +47 -138
- package/esm2015/src/di/reflective_errors.js +14 -7
- package/esm2015/src/di/reflective_injector.js +22 -24
- package/esm2015/src/di/reflective_provider.js +11 -12
- package/esm2015/src/error_handler.js +2 -5
- package/esm2015/src/event_emitter.js +6 -3
- package/esm2015/src/i18n/tokens.js +7 -4
- package/esm2015/src/linker/compiler.js +1 -12
- package/esm2015/src/linker/query_list.js +4 -4
- package/esm2015/src/linker/system_js_ng_module_factory_loader.js +3 -10
- package/esm2015/src/linker/view_ref.js +10 -7
- package/esm2015/src/metadata/di.js +10 -16
- package/esm2015/src/metadata/directives.js +111 -33
- package/esm2015/src/metadata/lifecycle_hooks.js +9 -9
- package/esm2015/src/metadata/ng_module.js +19 -11
- package/esm2015/src/render3/node_manipulation.js +2 -3
- package/esm2015/src/render3/view_ref.js +7 -3
- package/esm2015/src/testability/testability.js +2 -16
- package/esm2015/src/version.js +1 -1
- package/esm2015/src/view/ng_module.js +4 -1
- package/esm2015/src/zone/ng_zone.js +2 -1
- package/esm2015/testing/src/fake_async.js +5 -3
- package/esm2015/testing/src/fake_async_fallback.js +5 -3
- package/esm2015/testing/src/logger.js +0 -7
- package/esm2015/testing/src/metadata_override.js +1 -1
- package/esm2015/testing/src/ng_zone_mock.js +0 -7
- package/esm2015/testing/src/test_bed.js +1 -34
- package/esm2015/testing/src/test_compiler.js +1 -12
- package/esm5/index.js +5 -1
- package/esm5/public_api.js +6 -1
- package/esm5/src/application_init.js +3 -5
- package/esm5/src/application_module.js +2 -2
- package/esm5/src/application_ref.js +35 -211
- package/esm5/src/application_tokens.js +1 -1
- package/esm5/src/change_detection/change_detection.js +1 -1
- package/esm5/src/change_detection/change_detection_util.js +7 -72
- package/esm5/src/change_detection/change_detector_ref.js +1 -1
- package/esm5/src/change_detection/constants.js +1 -24
- package/esm5/src/change_detection/differs/default_iterable_differ.js +26 -209
- package/esm5/src/change_detection/differs/default_keyvalue_differ.js +7 -38
- package/esm5/src/change_detection/differs/iterable_differs.js +5 -42
- package/esm5/src/change_detection/differs/keyvalue_differs.js +6 -51
- package/esm5/src/change_detection/pipe_transform.js +1 -1
- package/esm5/src/change_detection.js +6 -1
- package/esm5/src/codegen_private_exports.js +1 -1
- package/esm5/src/console.js +2 -7
- package/esm5/src/core.js +6 -1
- package/esm5/src/core_private_export.js +1 -1
- package/esm5/src/core_render3_private_export.js +2 -1
- package/esm5/src/debug/debug_node.js +3 -15
- package/esm5/src/di/defs.js +1 -1
- package/esm5/src/di/forward_ref.js +7 -6
- package/esm5/src/di/injectable.js +2 -3
- package/esm5/src/di/injection_token.js +5 -83
- package/esm5/src/di/injector.js +13 -27
- package/esm5/src/di/metadata.js +1 -6
- package/esm5/src/di/provider.js +1 -1
- package/esm5/src/di/r3_injector.js +13 -39
- package/esm5/src/di/reflective_errors.js +14 -7
- package/esm5/src/di/reflective_injector.js +19 -265
- package/esm5/src/di/reflective_key.js +4 -45
- package/esm5/src/di/reflective_provider.js +17 -35
- package/esm5/src/di/scope.js +1 -1
- package/esm5/src/di.js +6 -1
- package/esm5/src/error_handler.js +7 -66
- package/esm5/src/errors.js +1 -1
- package/esm5/src/event_emitter.js +4 -95
- package/esm5/src/i18n/tokens.js +9 -49
- package/esm5/src/linker/compiler.js +9 -69
- package/esm5/src/linker/component_factory.js +2 -18
- package/esm5/src/linker/component_factory_resolver.js +1 -1
- package/esm5/src/linker/element_ref.js +2 -32
- package/esm5/src/linker/ng_module_factory.js +3 -25
- package/esm5/src/linker/ng_module_factory_loader.js +2 -10
- package/esm5/src/linker/query_list.js +12 -112
- package/esm5/src/linker/system_js_ng_module_factory_loader.js +4 -16
- package/esm5/src/linker/template_ref.js +2 -26
- package/esm5/src/linker/view_container_ref.js +2 -38
- package/esm5/src/linker/view_ref.js +10 -115
- package/esm5/src/linker.js +2 -1
- package/esm5/src/metadata/di.js +7 -25
- package/esm5/src/metadata/directives.js +111 -20
- package/esm5/src/metadata/lifecycle_hooks.js +1 -1
- package/esm5/src/metadata/ng_module.js +14 -9
- package/esm5/src/metadata/view.js +1 -20
- package/esm5/src/metadata.js +1 -1
- package/esm5/src/platform_core_providers.js +1 -1
- package/esm5/src/profile/profile.js +1 -1
- package/esm5/src/profile/wtf_impl.js +1 -1
- package/esm5/src/reflection/platform_reflection_capabilities.js +1 -1
- package/esm5/src/reflection/reflection.js +1 -1
- package/esm5/src/reflection/reflection_capabilities.js +3 -8
- package/esm5/src/reflection/reflector.js +2 -10
- package/esm5/src/reflection/types.js +1 -1
- package/esm5/src/render/api.js +7 -71
- package/esm5/src/render.js +2 -1
- package/esm5/src/render3/assert.js +1 -1
- package/esm5/src/render3/component.js +6 -5
- package/esm5/src/render3/definition.js +6 -8
- package/esm5/src/render3/di.js +9 -14
- package/esm5/src/render3/errors.js +1 -1
- package/esm5/src/render3/hooks.js +2 -2
- package/esm5/src/render3/index.js +11 -1
- package/esm5/src/render3/instructions.js +52 -38
- package/esm5/src/render3/interfaces/container.js +1 -1
- 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/projection.js +1 -1
- package/esm5/src/render3/interfaces/query.js +1 -1
- package/esm5/src/render3/interfaces/renderer.js +1 -3
- package/esm5/src/render3/interfaces/view.js +1 -1
- package/esm5/src/render3/ng_dev_mode.js +1 -1
- package/esm5/src/render3/node_assert.js +1 -1
- package/esm5/src/render3/node_manipulation.js +12 -15
- package/esm5/src/render3/node_selector_matcher.js +2 -2
- package/esm5/src/render3/pipe.js +1 -1
- package/esm5/src/render3/pure_function.js +1 -1
- package/esm5/src/render3/query.js +11 -59
- package/esm5/src/render3/util.js +1 -1
- package/esm5/src/render3/view_ref.js +15 -345
- package/esm5/src/sanitization/html_sanitizer.js +8 -12
- package/esm5/src/sanitization/inert_body.js +8 -72
- package/esm5/src/sanitization/sanitization.js +1 -1
- package/esm5/src/sanitization/security.js +2 -37
- package/esm5/src/sanitization/style_sanitizer.js +1 -1
- package/esm5/src/sanitization/url_sanitizer.js +1 -1
- package/esm5/src/testability/testability.js +21 -143
- package/esm5/src/type.js +1 -1
- package/esm5/src/util/decorators.js +1 -1
- package/esm5/src/util/lang.js +1 -1
- package/esm5/src/util/property.js +1 -1
- package/esm5/src/util.js +6 -1
- package/esm5/src/version.js +3 -13
- package/esm5/src/view/element.js +7 -7
- package/esm5/src/view/entrypoint.js +1 -1
- package/esm5/src/view/errors.js +1 -1
- package/esm5/src/view/index.js +1 -1
- package/esm5/src/view/ng_content.js +1 -1
- package/esm5/src/view/ng_module.js +4 -1
- package/esm5/src/view/provider.js +12 -12
- package/esm5/src/view/pure_expression.js +1 -1
- package/esm5/src/view/query.js +6 -6
- package/esm5/src/view/refs.js +8 -14
- package/esm5/src/view/services.js +16 -20
- package/esm5/src/view/text.js +1 -1
- package/esm5/src/view/types.js +19 -41
- package/esm5/src/view/util.js +5 -5
- package/esm5/src/view/view.js +4 -6
- package/esm5/src/view/view_attach.js +5 -5
- package/esm5/src/zone/ng_zone.js +22 -257
- package/esm5/src/zone.js +2 -1
- package/esm5/testing/index.js +5 -1
- package/esm5/testing/public_api.js +6 -1
- package/esm5/testing/src/async.js +1 -1
- package/esm5/testing/src/async_fallback.js +1 -1
- package/esm5/testing/src/async_test_completer.js +2 -8
- package/esm5/testing/src/before_each.js +6 -1
- package/esm5/testing/src/component_fixture.js +9 -75
- package/esm5/testing/src/fake_async.js +12 -3
- package/esm5/testing/src/fake_async_fallback.js +5 -3
- package/esm5/testing/src/lang_utils.js +1 -1
- package/esm5/testing/src/logger.js +1 -1
- package/esm5/testing/src/metadata_override.js +1 -1
- package/esm5/testing/src/ng_zone_mock.js +1 -1
- package/esm5/testing/src/private_export_testing.js +1 -1
- package/esm5/testing/src/render3.js +1 -5
- package/esm5/testing/src/test_bed.js +20 -172
- package/esm5/testing/src/test_compiler.js +5 -43
- package/esm5/testing/src/testing.js +6 -1
- package/esm5/testing/src/testing_internal.js +3 -9
- package/fesm2015/core.js +248 -177
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +9 -13
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/core.js +591 -2007
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +61 -237
- package/fesm5/testing.js.map +1 -1
- package/package.json +1 -1
- package/src/application_ref.d.ts +7 -8
- package/src/change_detection/change_detector_ref.d.ts +6 -4
- package/src/change_detection/differs/iterable_differs.d.ts +3 -2
- package/src/change_detection/differs/keyvalue_differs.d.ts +3 -2
- package/src/change_detection/pipe_transform.d.ts +2 -5
- package/src/di/forward_ref.d.ts +7 -5
- package/src/di/injectable.d.ts +4 -14
- package/src/di/injection_token.d.ts +5 -7
- package/src/di/injector.d.ts +7 -10
- package/src/di/metadata.d.ts +13 -86
- package/src/di/provider.d.ts +55 -150
- package/src/di/reflective_errors.d.ts +13 -6
- package/src/di/reflective_injector.d.ts +21 -23
- package/src/di/reflective_provider.d.ts +7 -8
- package/src/error_handler.d.ts +1 -4
- package/src/event_emitter.d.ts +3 -0
- package/src/i18n/tokens.d.ts +8 -4
- package/src/linker/query_list.d.ts +2 -2
- package/src/linker/view_ref.d.ts +9 -6
- package/src/metadata/di.d.ts +41 -59
- package/src/metadata/directives.d.ts +410 -460
- package/src/metadata/lifecycle_hooks.d.ts +8 -8
- package/src/metadata/ng_module.d.ts +49 -38
- package/src/render3/view_ref.d.ts +6 -2
- package/src/zone/ng_zone.d.ts +1 -0
- package/testing/src/fake_async.d.ts +4 -2
- package/testing/src/fake_async_fallback.d.ts +4 -2
- package/testing/src/metadata_override.d.ts +3 -3
- package/testing.d.ts +0 -5
- package/testing.metadata.json +1 -1
package/src/di/injectable.d.ts
CHANGED
|
@@ -9,32 +9,23 @@ import { ClassSansProvider, ConstructorSansProvider, ExistingSansProvider, Facto
|
|
|
9
9
|
export declare type InjectableProvider = ValueSansProvider | ExistingSansProvider | StaticClassSansProvider | ConstructorSansProvider | FactorySansProvider | ClassSansProvider;
|
|
10
10
|
/**
|
|
11
11
|
* Type of the Injectable decorator / constructor function.
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
12
|
*/
|
|
15
13
|
export interface InjectableDecorator {
|
|
16
14
|
/**
|
|
17
|
-
*
|
|
18
|
-
* ```
|
|
19
|
-
* @Injectable()
|
|
20
|
-
* class Car {}
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @description
|
|
24
|
-
* A marker metadata that marks a class as available to {@link Injector} for creation.
|
|
15
|
+
* A marker metadata that marks a class as available to `Injector` for creation.
|
|
25
16
|
*
|
|
26
|
-
* For more details, see the
|
|
17
|
+
* For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
|
|
27
18
|
*
|
|
19
|
+
* @usageNotes
|
|
28
20
|
* ### Example
|
|
29
21
|
*
|
|
30
22
|
* {@example core/di/ts/metadata_spec.ts region='Injectable'}
|
|
31
23
|
*
|
|
32
|
-
*
|
|
24
|
+
* `Injector` will throw an error when trying to instantiate a class that
|
|
33
25
|
* does not have `@Injectable` marker, as shown in the example below.
|
|
34
26
|
*
|
|
35
27
|
* {@example core/di/ts/metadata_spec.ts region='InjectableThrows'}
|
|
36
28
|
*
|
|
37
|
-
*
|
|
38
29
|
*/
|
|
39
30
|
(): any;
|
|
40
31
|
(options?: {
|
|
@@ -58,7 +49,6 @@ export declare function convertInjectableProviderToFactory(type: Type<any>, prov
|
|
|
58
49
|
/**
|
|
59
50
|
* Injectable decorator and metadata.
|
|
60
51
|
*
|
|
61
|
-
*
|
|
62
52
|
* @Annotation
|
|
63
53
|
*/
|
|
64
54
|
export declare const Injectable: InjectableDecorator;
|
|
@@ -32,16 +32,14 @@ import { Type } from '../type';
|
|
|
32
32
|
* overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
|
|
33
33
|
* mentioned above, `'root'` is the default value for `providedIn`.
|
|
34
34
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* #### Tree-shakeable InjectionToken
|
|
38
|
-
*
|
|
39
|
-
* {@example core/di/ts/injector_spec.ts region='ShakeableInjectionToken'}
|
|
40
|
-
*
|
|
41
|
-
* #### Plain InjectionToken
|
|
35
|
+
* @usageNotes
|
|
36
|
+
* ### Basic Example
|
|
42
37
|
*
|
|
43
38
|
* {@example core/di/ts/injector_spec.ts region='InjectionToken'}
|
|
44
39
|
*
|
|
40
|
+
* ### Tree-shakeable Example
|
|
41
|
+
*
|
|
42
|
+
* {@example core/di/ts/injector_spec.ts region='ShakeableInjectionToken'}
|
|
45
43
|
*
|
|
46
44
|
*/
|
|
47
45
|
export declare class InjectionToken<T> {
|
package/src/di/injector.d.ts
CHANGED
|
@@ -23,23 +23,17 @@ export declare class NullInjector implements Injector {
|
|
|
23
23
|
get(token: any, notFoundValue?: any): any;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* @usageNotes
|
|
27
|
-
* ```
|
|
28
|
-
* const injector: Injector = ...;
|
|
29
|
-
* injector.get(...);
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @description
|
|
33
|
-
*
|
|
34
26
|
* Concrete injectors implement this interface.
|
|
35
27
|
*
|
|
36
|
-
* For more details, see the
|
|
28
|
+
* For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
|
|
37
29
|
*
|
|
30
|
+
* @usageNotes
|
|
38
31
|
* ### Example
|
|
39
32
|
*
|
|
40
33
|
* {@example core/di/ts/injector_spec.ts region='Injector'}
|
|
41
34
|
*
|
|
42
35
|
* `Injector` returns itself when given `Injector` as a token:
|
|
36
|
+
*
|
|
43
37
|
* {@example core/di/ts/injector_spec.ts region='injectInjector'}
|
|
44
38
|
*
|
|
45
39
|
*
|
|
@@ -103,7 +97,10 @@ export declare function setCurrentInjector(injector: Injector | null | undefined
|
|
|
103
97
|
* Injects a token from the currently active injector.
|
|
104
98
|
*
|
|
105
99
|
* This function must be used in the context of a factory function such as one defined for an
|
|
106
|
-
* `InjectionToken`, and will throw an error if not called from such a context.
|
|
100
|
+
* `InjectionToken`, and will throw an error if not called from such a context.
|
|
101
|
+
*
|
|
102
|
+
* @usageNotes
|
|
103
|
+
* ### Example
|
|
107
104
|
*
|
|
108
105
|
* {@example core/di/ts/injector_spec.ts region='ShakeableInjectionToken'}
|
|
109
106
|
*
|
package/src/di/metadata.d.ts
CHANGED
|
@@ -1,43 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type of the Inject decorator / constructor function.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
3
|
*/
|
|
6
4
|
export interface InjectDecorator {
|
|
7
5
|
/**
|
|
8
|
-
* @usageNotes
|
|
9
|
-
* ```
|
|
10
|
-
* @Injectable()
|
|
11
|
-
* class Car {
|
|
12
|
-
* constructor(@Inject("MyEngine") public engine:Engine) {}
|
|
13
|
-
* }
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @description
|
|
17
6
|
* A parameter decorator that specifies a dependency.
|
|
18
7
|
*
|
|
19
|
-
* For more details, see the
|
|
8
|
+
* For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
|
|
20
9
|
*
|
|
10
|
+
* @usageNotes
|
|
21
11
|
* ### Example
|
|
22
12
|
*
|
|
23
13
|
* {@example core/di/ts/metadata_spec.ts region='Inject'}
|
|
24
14
|
*
|
|
25
|
-
* When `@Inject()` is not present,
|
|
15
|
+
* When `@Inject()` is not present, `Injector` will use the type annotation of the
|
|
26
16
|
* parameter.
|
|
27
17
|
*
|
|
28
18
|
* ### Example
|
|
29
19
|
*
|
|
30
20
|
* {@example core/di/ts/metadata_spec.ts region='InjectWithoutDecorator'}
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
21
|
*/
|
|
34
22
|
(token: any): any;
|
|
35
23
|
new (token: any): Inject;
|
|
36
24
|
}
|
|
37
25
|
/**
|
|
38
26
|
* Type of the Inject metadata.
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
27
|
*/
|
|
42
28
|
export interface Inject {
|
|
43
29
|
token: any;
|
|
@@ -45,122 +31,79 @@ export interface Inject {
|
|
|
45
31
|
/**
|
|
46
32
|
* Inject decorator and metadata.
|
|
47
33
|
*
|
|
48
|
-
*
|
|
49
34
|
* @Annotation
|
|
50
35
|
*/
|
|
51
36
|
export declare const Inject: InjectDecorator;
|
|
52
37
|
/**
|
|
53
38
|
* Type of the Optional decorator / constructor function.
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
39
|
*/
|
|
57
40
|
export interface OptionalDecorator {
|
|
58
41
|
/**
|
|
59
|
-
* @usageNotes
|
|
60
|
-
* ```
|
|
61
|
-
* @Injectable()
|
|
62
|
-
* class Car {
|
|
63
|
-
* constructor(@Optional() public engine:Engine) {}
|
|
64
|
-
* }
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* @description
|
|
68
42
|
* A parameter metadata that marks a dependency as optional.
|
|
69
|
-
*
|
|
43
|
+
* `Injector` provides `null` if the dependency is not found.
|
|
70
44
|
*
|
|
71
|
-
* For more details, see the
|
|
45
|
+
* For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
|
|
72
46
|
*
|
|
47
|
+
* @usageNotes
|
|
73
48
|
* ### Example
|
|
74
49
|
*
|
|
75
50
|
* {@example core/di/ts/metadata_spec.ts region='Optional'}
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
51
|
*/
|
|
79
52
|
(): any;
|
|
80
53
|
new (): Optional;
|
|
81
54
|
}
|
|
82
55
|
/**
|
|
83
56
|
* Type of the Optional metadata.
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
57
|
*/
|
|
87
58
|
export interface Optional {
|
|
88
59
|
}
|
|
89
60
|
/**
|
|
90
61
|
* Optional decorator and metadata.
|
|
91
62
|
*
|
|
92
|
-
*
|
|
93
63
|
* @Annotation
|
|
94
64
|
*/
|
|
95
65
|
export declare const Optional: OptionalDecorator;
|
|
96
66
|
/**
|
|
97
67
|
* Type of the Self decorator / constructor function.
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
68
|
*/
|
|
101
69
|
export interface SelfDecorator {
|
|
102
70
|
/**
|
|
103
|
-
*
|
|
104
|
-
* ```
|
|
105
|
-
* @Injectable()
|
|
106
|
-
* class Car {
|
|
107
|
-
* constructor(@Self() public engine:Engine) {}
|
|
108
|
-
* }
|
|
109
|
-
* ```
|
|
110
|
-
*
|
|
111
|
-
* @description
|
|
112
|
-
* Specifies that an {@link Injector} should retrieve a dependency only from itself.
|
|
71
|
+
* Specifies that an `Injector` should retrieve a dependency only from itself.
|
|
113
72
|
*
|
|
114
|
-
* For more details, see the
|
|
73
|
+
* For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
|
|
115
74
|
*
|
|
75
|
+
* @usageNotes
|
|
116
76
|
* ### Example
|
|
117
77
|
*
|
|
118
78
|
* {@example core/di/ts/metadata_spec.ts region='Self'}
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
79
|
*/
|
|
122
80
|
(): any;
|
|
123
81
|
new (): Self;
|
|
124
82
|
}
|
|
125
83
|
/**
|
|
126
84
|
* Type of the Self metadata.
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
85
|
*/
|
|
130
86
|
export interface Self {
|
|
131
87
|
}
|
|
132
88
|
/**
|
|
133
89
|
* Self decorator and metadata.
|
|
134
90
|
*
|
|
135
|
-
*
|
|
136
91
|
* @Annotation
|
|
137
92
|
*/
|
|
138
93
|
export declare const Self: SelfDecorator;
|
|
139
94
|
/**
|
|
140
95
|
* Type of the SkipSelf decorator / constructor function.
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
96
|
*/
|
|
144
97
|
export interface SkipSelfDecorator {
|
|
145
98
|
/**
|
|
146
|
-
* @usageNotes
|
|
147
|
-
* ```
|
|
148
|
-
* @Injectable()
|
|
149
|
-
* class Car {
|
|
150
|
-
* constructor(@SkipSelf() public engine:Engine) {}
|
|
151
|
-
* }
|
|
152
|
-
* ```
|
|
153
|
-
*
|
|
154
|
-
* @description
|
|
155
99
|
* Specifies that the dependency resolution should start from the parent injector.
|
|
156
100
|
*
|
|
157
|
-
* For more details, see the
|
|
101
|
+
* For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
|
|
158
102
|
*
|
|
103
|
+
* @usageNotes
|
|
159
104
|
* ### Example
|
|
160
105
|
*
|
|
161
106
|
* {@example core/di/ts/metadata_spec.ts region='SkipSelf'}
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
107
|
*/
|
|
165
108
|
(): any;
|
|
166
109
|
new (): SkipSelf;
|
|
@@ -175,51 +118,35 @@ export interface SkipSelf {
|
|
|
175
118
|
/**
|
|
176
119
|
* SkipSelf decorator and metadata.
|
|
177
120
|
*
|
|
178
|
-
*
|
|
179
121
|
* @Annotation
|
|
180
122
|
*/
|
|
181
123
|
export declare const SkipSelf: SkipSelfDecorator;
|
|
182
124
|
/**
|
|
183
125
|
* Type of the Host decorator / constructor function.
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
126
|
*/
|
|
187
127
|
export interface HostDecorator {
|
|
188
128
|
/**
|
|
189
|
-
* @usageNotes
|
|
190
|
-
* ```
|
|
191
|
-
* @Injectable()
|
|
192
|
-
* class Car {
|
|
193
|
-
* constructor(@Host() public engine:Engine) {}
|
|
194
|
-
* }
|
|
195
|
-
* ```
|
|
196
|
-
*
|
|
197
|
-
* @description
|
|
198
129
|
* Specifies that an injector should retrieve a dependency from any injector until
|
|
199
130
|
* reaching the host element of the current component.
|
|
200
131
|
*
|
|
201
|
-
* For more details, see the
|
|
132
|
+
* For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
|
|
202
133
|
*
|
|
134
|
+
* @usageNotes
|
|
203
135
|
* ### Example
|
|
204
136
|
*
|
|
205
137
|
* {@example core/di/ts/metadata_spec.ts region='Host'}
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
138
|
*/
|
|
209
139
|
(): any;
|
|
210
140
|
new (): Host;
|
|
211
141
|
}
|
|
212
142
|
/**
|
|
213
143
|
* Type of the Host metadata.
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
144
|
*/
|
|
217
145
|
export interface Host {
|
|
218
146
|
}
|
|
219
147
|
/**
|
|
220
148
|
* Host decorator and metadata.
|
|
221
149
|
*
|
|
222
|
-
*
|
|
223
150
|
* @Annotation
|
|
224
151
|
*/
|
|
225
152
|
export declare const Host: HostDecorator;
|