@angular/core 7.0.0-rc.1 → 7.0.3
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 +36 -33
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core-testing.umd.min.js +3 -3
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +1856 -1463
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +155 -94
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +7 -6
- package/core.metadata.json +1 -1
- package/esm2015/core.externs.js +0 -3
- package/esm2015/core.js +6 -6
- package/esm2015/index.js +2 -2
- package/esm2015/public_api.js +2 -2
- package/esm2015/src/application_init.js +5 -1
- package/esm2015/src/application_module.js +2 -2
- package/esm2015/src/application_ref.js +11 -9
- package/esm2015/src/application_tokens.js +7 -7
- package/esm2015/src/change_detection/change_detection_util.js +3 -1
- package/esm2015/src/change_detection/change_detector_ref.js +2 -1
- package/esm2015/src/change_detection/constants.js +1 -1
- package/esm2015/src/change_detection/differs/default_iterable_differ.js +2 -1
- package/esm2015/src/change_detection/differs/iterable_differs.js +8 -6
- package/esm2015/src/change_detection/differs/keyvalue_differs.js +6 -5
- package/esm2015/src/change_detection/pipe_transform.js +2 -2
- package/esm2015/src/core.js +2 -2
- package/esm2015/src/core_render3_private_export.js +5 -4
- package/esm2015/src/debug/debug_node.js +6 -6
- package/esm2015/src/di/defs.js +5 -5
- package/esm2015/src/di/forward_ref.js +4 -4
- package/esm2015/src/di/injectable.js +5 -2
- package/esm2015/src/di/injection_token.js +3 -1
- package/esm2015/src/di/injector.js +3 -3
- package/esm2015/src/di/metadata.js +16 -1
- package/esm2015/src/di/provider.js +16 -6
- package/esm2015/src/di/r3_injector.js +2 -2
- package/esm2015/src/di/reflective_injector.js +2 -2
- package/esm2015/src/di/reflective_key.js +3 -1
- package/esm2015/src/di/reflective_provider.js +3 -3
- package/esm2015/src/error_handler.js +3 -1
- package/esm2015/src/event_emitter.js +2 -1
- package/esm2015/src/i18n/tokens.js +4 -4
- package/esm2015/src/is_dev_mode.js +4 -2
- package/esm2015/src/ivy_switch/runtime/index.js +2 -2
- package/esm2015/src/ivy_switch/runtime/ivy_switch_on.js +4 -2
- package/esm2015/src/ivy_switch/runtime/jit.js +2 -2
- package/esm2015/src/ivy_switch/runtime/legacy.js +7 -1
- package/esm2015/src/ivy_switch/runtime/local.js +2 -2
- package/esm2015/src/linker/compiler.js +5 -4
- package/esm2015/src/linker/component_factory.js +4 -2
- package/esm2015/src/linker/component_factory_resolver.js +2 -1
- package/esm2015/src/linker/element_ref.js +2 -2
- package/esm2015/src/linker/ng_module_factory.js +3 -3
- package/esm2015/src/linker/ng_module_factory_loader.js +4 -3
- package/esm2015/src/linker/query_list.js +3 -1
- package/esm2015/src/linker/system_js_ng_module_factory_loader.js +3 -3
- package/esm2015/src/linker/template_ref.js +2 -1
- package/esm2015/src/linker/view_container_ref.js +2 -1
- package/esm2015/src/linker/view_ref.js +4 -2
- package/esm2015/src/metadata/di.js +13 -5
- package/esm2015/src/metadata/directives.js +20 -7
- package/esm2015/src/metadata/lifecycle_hooks.js +10 -5
- package/esm2015/src/metadata/ng_module.js +8 -6
- package/esm2015/src/metadata/view.js +1 -1
- package/esm2015/src/platform_core_providers.js +2 -2
- package/esm2015/src/profile/profile.js +5 -5
- package/esm2015/src/profile/wtf_impl.js +2 -2
- package/esm2015/src/r3_symbols.js +1 -1
- package/esm2015/src/reflection/reflection_capabilities.js +3 -3
- package/esm2015/src/render/api.js +20 -7
- package/esm2015/src/render3/component.js +52 -18
- package/esm2015/src/render3/component_ref.js +15 -15
- package/esm2015/src/render3/context_discovery.js +35 -126
- package/esm2015/src/render3/debug.js +33 -56
- package/esm2015/src/render3/definition.js +42 -37
- package/esm2015/src/render3/di.js +4 -28
- package/esm2015/src/render3/discovery_utils.js +10 -7
- package/esm2015/src/render3/i18n.js +60 -34
- package/esm2015/src/render3/index.js +3 -3
- package/esm2015/src/render3/instructions.js +162 -275
- package/esm2015/src/render3/interfaces/container.js +7 -5
- package/esm2015/src/render3/interfaces/context.js +60 -0
- package/esm2015/src/render3/interfaces/definition.js +7 -1
- package/esm2015/src/render3/interfaces/i18n.js +338 -0
- package/esm2015/src/render3/interfaces/node.js +12 -126
- package/esm2015/src/render3/interfaces/player.js +73 -1
- package/esm2015/src/render3/interfaces/styling.js +18 -22
- package/esm2015/src/render3/interfaces/view.js +19 -26
- package/esm2015/src/render3/jit/compiler_facade.js +22 -0
- package/esm2015/src/render3/jit/compiler_facade_interface.js +229 -0
- package/esm2015/src/render3/jit/directive.js +57 -93
- package/esm2015/src/render3/jit/environment.js +7 -3
- package/esm2015/src/render3/jit/injectable.js +21 -46
- package/esm2015/src/render3/jit/module.js +16 -43
- package/esm2015/src/render3/jit/pipe.js +6 -12
- package/esm2015/src/render3/jit/util.js +14 -17
- package/esm2015/src/render3/node_assert.js +1 -1
- package/esm2015/src/render3/node_manipulation.js +99 -109
- package/esm2015/src/render3/players.js +67 -0
- package/esm2015/src/render3/styling/class_and_style_bindings.js +347 -88
- package/esm2015/src/render3/styling/core_player_handler.js +2 -2
- package/esm2015/src/render3/styling/player_factory.js +48 -0
- package/esm2015/src/render3/styling/util.js +165 -17
- package/esm2015/src/render3/util.js +73 -20
- package/esm2015/src/render3/view_engine_compatibility.js +56 -40
- package/esm2015/src/sanitization/security.js +2 -2
- package/esm2015/src/testability/testability.js +5 -6
- package/esm2015/src/type.js +5 -2
- package/esm2015/src/util/decorators.js +2 -1
- package/esm2015/src/util.js +15 -1
- package/esm2015/src/version.js +6 -4
- package/esm2015/src/view/refs.js +3 -3
- package/esm2015/src/view/services.js +8 -6
- package/esm2015/src/zone/ng_zone.js +2 -2
- package/esm2015/testing/src/async.js +2 -2
- package/esm2015/testing/src/component_fixture.js +2 -2
- package/esm2015/testing/src/fake_async.js +7 -7
- package/esm2015/testing/src/fake_async_fallback.js +7 -7
- package/esm2015/testing/src/metadata_override.js +1 -1
- package/esm2015/testing/src/r3_test_bed.js +8 -6
- package/esm2015/testing/src/test_bed.js +10 -8
- package/esm2015/testing/src/test_bed_common.js +6 -6
- package/esm2015/testing/src/test_compiler.js +3 -3
- package/esm5/core.js +6 -6
- package/esm5/src/application_init.js +5 -1
- package/esm5/src/application_module.js +2 -2
- package/esm5/src/application_ref.js +11 -9
- package/esm5/src/application_tokens.js +7 -7
- package/esm5/src/change_detection/change_detection_util.js +3 -1
- package/esm5/src/change_detection/change_detector_ref.js +2 -1
- package/esm5/src/change_detection/constants.js +2 -1
- package/esm5/src/change_detection/differs/default_iterable_differ.js +2 -1
- package/esm5/src/change_detection/differs/iterable_differs.js +2 -1
- package/esm5/src/change_detection/differs/keyvalue_differs.js +2 -1
- package/esm5/src/change_detection/pipe_transform.js +1 -1
- package/esm5/src/core_render3_private_export.js +5 -4
- package/esm5/src/debug/debug_node.js +5 -5
- package/esm5/src/di/defs.js +3 -3
- package/esm5/src/di/forward_ref.js +3 -3
- package/esm5/src/di/injectable.js +6 -5
- package/esm5/src/di/injection_token.js +3 -1
- package/esm5/src/di/injector.js +3 -3
- package/esm5/src/di/metadata.js +6 -1
- package/esm5/src/di/provider.js +1 -1
- package/esm5/src/di/r3_injector.js +2 -2
- package/esm5/src/di/reflective_injector.js +2 -2
- package/esm5/src/di/reflective_key.js +3 -1
- package/esm5/src/di/reflective_provider.js +2 -2
- package/esm5/src/error_handler.js +3 -1
- package/esm5/src/event_emitter.js +2 -1
- package/esm5/src/i18n/tokens.js +5 -5
- package/esm5/src/is_dev_mode.js +4 -2
- package/esm5/src/ivy_switch/runtime/ivy_switch_on.js +3 -2
- package/esm5/src/ivy_switch/runtime/legacy.js +4 -1
- package/esm5/src/linker/compiler.js +5 -4
- package/esm5/src/linker/component_factory.js +5 -1
- package/esm5/src/linker/component_factory_resolver.js +4 -1
- package/esm5/src/linker/element_ref.js +2 -2
- package/esm5/src/linker/ng_module_factory.js +3 -3
- package/esm5/src/linker/ng_module_factory_loader.js +4 -3
- package/esm5/src/linker/query_list.js +3 -1
- package/esm5/src/linker/system_js_ng_module_factory_loader.js +3 -3
- package/esm5/src/linker/template_ref.js +2 -1
- package/esm5/src/linker/view_container_ref.js +2 -1
- package/esm5/src/linker/view_ref.js +4 -2
- package/esm5/src/metadata/di.js +10 -3
- package/esm5/src/metadata/directives.js +9 -6
- package/esm5/src/metadata/lifecycle_hooks.js +1 -1
- package/esm5/src/metadata/ng_module.js +4 -3
- package/esm5/src/metadata/view.js +4 -1
- package/esm5/src/platform_core_providers.js +2 -2
- package/esm5/src/profile/profile.js +5 -5
- package/esm5/src/profile/wtf_impl.js +1 -1
- package/esm5/src/r3_symbols.js +1 -1
- package/esm5/src/reflection/reflection_capabilities.js +3 -3
- package/esm5/src/render/api.js +11 -5
- package/esm5/src/render3/component.js +45 -16
- package/esm5/src/render3/component_ref.js +12 -13
- package/esm5/src/render3/context_discovery.js +33 -65
- package/esm5/src/render3/debug.js +31 -50
- package/esm5/src/render3/definition.js +35 -31
- package/esm5/src/render3/di.js +4 -20
- package/esm5/src/render3/discovery_utils.js +12 -7
- package/esm5/src/render3/i18n.js +40 -30
- package/esm5/src/render3/index.js +3 -3
- package/esm5/src/render3/instructions.js +143 -230
- package/esm5/src/render3/interfaces/container.js +6 -5
- package/esm5/src/render3/interfaces/context.js +13 -0
- package/esm5/src/render3/interfaces/definition.js +1 -1
- package/esm5/src/render3/interfaces/i18n.js +25 -0
- package/esm5/src/render3/interfaces/node.js +1 -1
- package/esm5/src/render3/interfaces/player.js +1 -1
- package/esm5/src/render3/interfaces/styling.js +1 -8
- package/esm5/src/render3/interfaces/view.js +18 -17
- package/esm5/src/render3/jit/compiler_facade.js +21 -0
- package/esm5/src/render3/jit/compiler_facade_interface.js +15 -0
- package/esm5/src/render3/jit/directive.js +44 -79
- package/esm5/src/render3/jit/environment.js +7 -3
- package/esm5/src/render3/jit/injectable.js +26 -46
- package/esm5/src/render3/jit/module.js +16 -31
- package/esm5/src/render3/jit/pipe.js +6 -9
- package/esm5/src/render3/jit/util.js +12 -17
- package/esm5/src/render3/node_assert.js +1 -1
- package/esm5/src/render3/node_manipulation.js +89 -101
- package/esm5/src/render3/players.js +59 -0
- package/esm5/src/render3/styling/class_and_style_bindings.js +248 -85
- package/esm5/src/render3/styling/core_player_handler.js +2 -2
- package/esm5/src/render3/styling/player_factory.js +29 -0
- package/esm5/src/render3/styling/util.js +132 -14
- package/esm5/src/render3/util.js +54 -21
- package/esm5/src/render3/view_engine_compatibility.js +46 -32
- package/esm5/src/sanitization/security.js +3 -3
- package/esm5/src/testability/testability.js +4 -4
- package/esm5/src/type.js +2 -2
- package/esm5/src/util/decorators.js +1 -1
- package/esm5/src/util.js +13 -1
- package/esm5/src/version.js +6 -3
- package/esm5/src/view/refs.js +1 -1
- package/esm5/src/view/services.js +7 -10
- package/esm5/src/zone/ng_zone.js +2 -2
- package/esm5/testing/src/async.js +2 -2
- package/esm5/testing/src/component_fixture.js +2 -2
- package/esm5/testing/src/fake_async.js +7 -7
- package/esm5/testing/src/fake_async_fallback.js +7 -7
- package/esm5/testing/src/metadata_override.js +1 -1
- package/esm5/testing/src/r3_test_bed.js +8 -7
- package/esm5/testing/src/test_bed.js +10 -8
- package/esm5/testing/src/test_bed_common.js +4 -4
- package/esm5/testing/src/test_compiler.js +3 -3
- package/fesm2015/core.js +2486 -1951
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +36 -32
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/core.js +1830 -1439
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +36 -33
- package/fesm5/testing.js.map +1 -1
- package/package.json +1 -2
- package/src/application_init.d.ts +4 -0
- package/src/application_module.d.ts +1 -1
- package/src/application_ref.d.ts +10 -8
- package/src/application_tokens.d.ts +6 -6
- package/src/change_detection/change_detection_util.d.ts +2 -0
- package/src/change_detection/change_detector_ref.d.ts +1 -0
- package/src/change_detection/constants.d.ts +1 -0
- package/src/change_detection/differs/default_iterable_differ.d.ts +1 -0
- package/src/change_detection/differs/iterable_differs.d.ts +8 -6
- package/src/change_detection/differs/keyvalue_differs.d.ts +5 -4
- package/src/change_detection/pipe_transform.d.ts +1 -1
- package/src/core_render3_private_export.d.ts +7 -5
- package/src/debug/debug_node.d.ts +5 -5
- package/src/di/defs.d.ts +4 -4
- package/src/di/forward_ref.d.ts +3 -3
- package/src/di/injectable.d.ts +10 -7
- package/src/di/injection_token.d.ts +2 -0
- package/src/di/injector.d.ts +5 -3
- package/src/di/metadata.d.ts +24 -1
- package/src/di/provider.d.ts +19 -5
- package/src/di/r3_injector.d.ts +1 -1
- package/src/di/reflective_injector.d.ts +1 -1
- package/src/di/reflective_key.d.ts +2 -0
- package/src/di/reflective_provider.d.ts +2 -2
- package/src/error_handler.d.ts +2 -0
- package/src/event_emitter.d.ts +1 -0
- package/src/i18n/tokens.d.ts +4 -4
- package/src/is_dev_mode.d.ts +3 -1
- package/src/ivy_switch/runtime/ivy_switch_on.d.ts +2 -1
- package/src/ivy_switch/runtime/legacy.d.ts +3 -0
- package/src/linker/compiler.d.ts +5 -4
- package/src/linker/component_factory.d.ts +5 -1
- package/src/linker/component_factory_resolver.d.ts +3 -0
- package/src/linker/element_ref.d.ts +1 -1
- package/src/linker/ng_module_factory.d.ts +2 -2
- package/src/linker/ng_module_factory_loader.d.ts +3 -2
- package/src/linker/query_list.d.ts +2 -0
- package/src/linker/system_js_ng_module_factory_loader.d.ts +2 -2
- package/src/linker/template_ref.d.ts +1 -0
- package/src/linker/view_container_ref.d.ts +1 -0
- package/src/linker/view_ref.d.ts +3 -1
- package/src/metadata/di.d.ts +13 -5
- package/src/metadata/directives.d.ts +19 -6
- package/src/metadata/lifecycle_hooks.d.ts +9 -4
- package/src/metadata/ng_module.d.ts +7 -7
- package/src/metadata/view.d.ts +3 -0
- package/src/platform_core_providers.d.ts +1 -1
- package/src/profile/profile.d.ts +4 -4
- package/src/profile/wtf_impl.d.ts +1 -1
- package/src/r3_symbols.d.ts +1 -1
- package/src/render/api.d.ts +10 -7
- package/src/render3/component.d.ts +14 -3
- package/src/render3/context_discovery.d.ts +6 -58
- package/src/render3/definition.d.ts +0 -4
- package/src/render3/di.d.ts +1 -3
- package/src/render3/discovery_utils.d.ts +7 -1
- package/src/render3/i18n.d.ts +4 -0
- package/src/render3/index.d.ts +2 -2
- package/src/render3/instructions.d.ts +43 -50
- package/src/render3/interfaces/container.d.ts +36 -22
- package/src/render3/interfaces/context.d.ts +52 -0
- package/src/render3/interfaces/definition.d.ts +8 -3
- package/src/render3/interfaces/i18n.d.ts +326 -0
- package/src/render3/interfaces/node.d.ts +12 -89
- package/src/render3/interfaces/player.d.ts +58 -4
- package/src/render3/interfaces/styling.d.ts +17 -15
- package/src/render3/interfaces/view.d.ts +28 -28
- package/src/render3/jit/compiler_facade.d.ts +3 -0
- package/src/render3/jit/compiler_facade_interface.d.ts +131 -0
- package/src/render3/jit/directive.d.ts +3 -0
- package/src/render3/jit/util.d.ts +3 -3
- package/src/render3/node_manipulation.d.ts +21 -22
- package/src/render3/players.d.ts +32 -0
- package/src/render3/styling/class_and_style_bindings.d.ts +31 -24
- package/src/render3/styling/player_factory.d.ts +31 -0
- package/src/render3/styling/util.d.ts +31 -9
- package/src/render3/util.d.ts +32 -15
- package/src/render3/view_engine_compatibility.d.ts +3 -0
- package/src/sanitization/security.d.ts +2 -2
- package/src/testability/testability.d.ts +5 -6
- package/src/type.d.ts +6 -1
- package/src/util/decorators.d.ts +1 -0
- package/src/util.d.ts +10 -0
- package/src/version.d.ts +4 -1
- package/src/view/services.d.ts +2 -2
- package/src/zone/ng_zone.d.ts +1 -1
- package/testing/src/async.d.ts +1 -1
- package/testing/src/component_fixture.d.ts +1 -1
- package/testing/src/fake_async.d.ts +6 -6
- package/testing/src/fake_async_fallback.d.ts +6 -6
- package/testing/src/metadata_override.d.ts +1 -1
- package/testing/src/r3_test_bed.d.ts +4 -4
- package/testing/src/test_bed.d.ts +12 -10
- package/testing/src/test_bed_common.d.ts +6 -6
- package/testing/src/test_compiler.d.ts +2 -2
- package/testing/testing.metadata.json +1 -1
- package/esm2015/src/render3/player.js +0 -51
- package/esm5/src/render3/player.js +0 -39
- package/src/render3/player.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/core",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3",
|
|
4
4
|
"description": "Angular - the core framework",
|
|
5
5
|
"main": "./bundles/core.umd.js",
|
|
6
6
|
"module": "./fesm5/core.js",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"tslib": "^1.9.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/compiler": "7.0.0-rc.1",
|
|
20
19
|
"rxjs": "^6.0.0",
|
|
21
20
|
"zone.js": "~0.8.26"
|
|
22
21
|
},
|
|
@@ -8,10 +8,14 @@
|
|
|
8
8
|
import { InjectionToken } from './di';
|
|
9
9
|
/**
|
|
10
10
|
* A function that will be executed when an application is initialized.
|
|
11
|
+
*
|
|
12
|
+
* @publicApi
|
|
11
13
|
*/
|
|
12
14
|
export declare const APP_INITIALIZER: InjectionToken<(() => void)[]>;
|
|
13
15
|
/**
|
|
14
16
|
* A class that reflects the state of running {@link APP_INITIALIZER}s.
|
|
17
|
+
*
|
|
18
|
+
* @publicApi
|
|
15
19
|
*/
|
|
16
20
|
export declare class ApplicationInitStatus {
|
|
17
21
|
private appInits;
|
|
@@ -24,7 +24,7 @@ export declare const APPLICATION_MODULE_PROVIDERS: StaticProvider[];
|
|
|
24
24
|
* Re-exported by `BrowserModule`, which is included automatically in the root
|
|
25
25
|
* `AppModule` when you create a new app with the CLI `new` command.
|
|
26
26
|
*
|
|
27
|
-
* @
|
|
27
|
+
* @publicApi
|
|
28
28
|
*/
|
|
29
29
|
export declare class ApplicationModule {
|
|
30
30
|
constructor(appRef: ApplicationRef);
|
package/src/application_ref.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const ALLOW_MULTIPLE_PLATFORMS: InjectionToken<boolean>;
|
|
|
18
18
|
/**
|
|
19
19
|
* A token for third-party components that can register themselves with NgProbe.
|
|
20
20
|
*
|
|
21
|
-
* @
|
|
21
|
+
* @publicApi
|
|
22
22
|
*/
|
|
23
23
|
export declare class NgProbeToken {
|
|
24
24
|
name: string;
|
|
@@ -29,31 +29,31 @@ export declare class NgProbeToken {
|
|
|
29
29
|
* Creates a platform.
|
|
30
30
|
* Platforms have to be eagerly created via this function.
|
|
31
31
|
*
|
|
32
|
-
* @
|
|
32
|
+
* @publicApi
|
|
33
33
|
*/
|
|
34
34
|
export declare function createPlatform(injector: Injector): PlatformRef;
|
|
35
35
|
/**
|
|
36
36
|
* Creates a factory for a platform
|
|
37
37
|
*
|
|
38
|
-
* @
|
|
38
|
+
* @publicApi
|
|
39
39
|
*/
|
|
40
40
|
export declare function createPlatformFactory(parentPlatformFactory: ((extraProviders?: StaticProvider[]) => PlatformRef) | null, name: string, providers?: StaticProvider[]): (extraProviders?: StaticProvider[]) => PlatformRef;
|
|
41
41
|
/**
|
|
42
42
|
* Checks that there currently is a platform which contains the given token as a provider.
|
|
43
43
|
*
|
|
44
|
-
* @
|
|
44
|
+
* @publicApi
|
|
45
45
|
*/
|
|
46
46
|
export declare function assertPlatform(requiredToken: any): PlatformRef;
|
|
47
47
|
/**
|
|
48
48
|
* Destroy the existing platform.
|
|
49
49
|
*
|
|
50
|
-
* @
|
|
50
|
+
* @publicApi
|
|
51
51
|
*/
|
|
52
52
|
export declare function destroyPlatform(): void;
|
|
53
53
|
/**
|
|
54
54
|
* Returns the current platform.
|
|
55
55
|
*
|
|
56
|
-
* @
|
|
56
|
+
* @publicApi
|
|
57
57
|
*/
|
|
58
58
|
export declare function getPlatform(): PlatformRef | null;
|
|
59
59
|
/**
|
|
@@ -78,6 +78,8 @@ export interface BootstrapOptions {
|
|
|
78
78
|
*
|
|
79
79
|
* A page's platform is initialized implicitly when a platform is created via a platform factory
|
|
80
80
|
* (e.g. {@link platformBrowser}), or explicitly by calling the {@link createPlatform} function.
|
|
81
|
+
*
|
|
82
|
+
* @publicApi
|
|
81
83
|
*/
|
|
82
84
|
export declare class PlatformRef {
|
|
83
85
|
private _injector;
|
|
@@ -105,8 +107,6 @@ export declare class PlatformRef {
|
|
|
105
107
|
*
|
|
106
108
|
* let moduleRef = platformBrowser().bootstrapModuleFactory(MyModuleNgFactory);
|
|
107
109
|
* ```
|
|
108
|
-
*
|
|
109
|
-
* @experimental APIs related to application bootstrap are currently under review.
|
|
110
110
|
*/
|
|
111
111
|
bootstrapModuleFactory<M>(moduleFactory: NgModuleFactory<M>, options?: BootstrapOptions): Promise<NgModuleRef<M>>;
|
|
112
112
|
/**
|
|
@@ -144,6 +144,8 @@ export declare class PlatformRef {
|
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
* A reference to an Angular application running on a page.
|
|
147
|
+
*
|
|
148
|
+
* @publicApi
|
|
147
149
|
*/
|
|
148
150
|
export declare class ApplicationRef {
|
|
149
151
|
private _zone;
|
|
@@ -15,13 +15,13 @@ import { ComponentRef } from './linker/component_factory';
|
|
|
15
15
|
* If you need to avoid randomly generated value to be used as an application id, you can provide
|
|
16
16
|
* a custom value via a DI provider <!-- TODO: provider --> configuring the root {@link Injector}
|
|
17
17
|
* using this token.
|
|
18
|
-
* @
|
|
18
|
+
* @publicApi
|
|
19
19
|
*/
|
|
20
20
|
export declare const APP_ID: InjectionToken<string>;
|
|
21
21
|
export declare function _appIdRandomProviderFactory(): string;
|
|
22
22
|
/**
|
|
23
23
|
* Providers that will generate a random APP_ID_TOKEN.
|
|
24
|
-
* @
|
|
24
|
+
* @publicApi
|
|
25
25
|
*/
|
|
26
26
|
export declare const APP_ID_RANDOM_PROVIDER: {
|
|
27
27
|
provide: InjectionToken<string>;
|
|
@@ -30,12 +30,12 @@ export declare const APP_ID_RANDOM_PROVIDER: {
|
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* A function that will be executed when a platform is initialized.
|
|
33
|
-
* @
|
|
33
|
+
* @publicApi
|
|
34
34
|
*/
|
|
35
35
|
export declare const PLATFORM_INITIALIZER: InjectionToken<(() => void)[]>;
|
|
36
36
|
/**
|
|
37
37
|
* A token that indicates an opaque platform id.
|
|
38
|
-
* @
|
|
38
|
+
* @publicApi
|
|
39
39
|
*/
|
|
40
40
|
export declare const PLATFORM_ID: InjectionToken<Object>;
|
|
41
41
|
/**
|
|
@@ -44,11 +44,11 @@ export declare const PLATFORM_ID: InjectionToken<Object>;
|
|
|
44
44
|
*
|
|
45
45
|
* `(componentRef: ComponentRef) => void`.
|
|
46
46
|
*
|
|
47
|
-
* @
|
|
47
|
+
* @publicApi
|
|
48
48
|
*/
|
|
49
49
|
export declare const APP_BOOTSTRAP_LISTENER: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
|
|
50
50
|
/**
|
|
51
51
|
* A token which indicates the root directory of the application
|
|
52
|
-
* @
|
|
52
|
+
* @publicApi
|
|
53
53
|
*/
|
|
54
54
|
export declare const PACKAGE_ROOT_URL: InjectionToken<string>;
|
|
@@ -24,6 +24,7 @@ export declare function devModeEqual(a: any, b: any): boolean;
|
|
|
24
24
|
* }
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
|
+
* @publicApi
|
|
27
28
|
*/
|
|
28
29
|
export declare class WrappedValue {
|
|
29
30
|
/** @deprecated from 5.3, use `unwrap()` instead - will switch to protected */
|
|
@@ -42,6 +43,7 @@ export declare class WrappedValue {
|
|
|
42
43
|
/**
|
|
43
44
|
* Represents a basic change from a previous to a new value.
|
|
44
45
|
*
|
|
46
|
+
* @publicApi
|
|
45
47
|
*/
|
|
46
48
|
export declare class SimpleChange {
|
|
47
49
|
previousValue: any;
|
|
@@ -13,6 +13,7 @@ export declare class DefaultIterableDifferFactory implements IterableDifferFacto
|
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* @deprecated v4.0.0 - Should not be part of public API.
|
|
16
|
+
* @publicApi
|
|
16
17
|
*/
|
|
17
18
|
export declare class DefaultIterableDiffer<V> implements IterableDiffer<V>, IterableChanges<V> {
|
|
18
19
|
readonly length: number;
|
|
@@ -9,14 +9,14 @@ import { StaticProvider } from '../../di/provider';
|
|
|
9
9
|
/**
|
|
10
10
|
* A type describing supported iterable types.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* @publicApi
|
|
13
13
|
*/
|
|
14
14
|
export declare type NgIterable<T> = Array<T> | Iterable<T>;
|
|
15
15
|
/**
|
|
16
16
|
* A strategy for tracking changes over time to an iterable. Used by {@link NgForOf} to
|
|
17
17
|
* respond to changes in an iterable by effecting equivalent changes in the DOM.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
19
|
+
* @publicApi
|
|
20
20
|
*/
|
|
21
21
|
export interface IterableDiffer<V> {
|
|
22
22
|
/**
|
|
@@ -32,7 +32,7 @@ export interface IterableDiffer<V> {
|
|
|
32
32
|
* An object describing the changes in the `Iterable` collection since last time
|
|
33
33
|
* `IterableDiffer#diff()` was invoked.
|
|
34
34
|
*
|
|
35
|
-
*
|
|
35
|
+
* @publicApi
|
|
36
36
|
*/
|
|
37
37
|
export interface IterableChanges<V> {
|
|
38
38
|
/**
|
|
@@ -75,7 +75,7 @@ export interface IterableChanges<V> {
|
|
|
75
75
|
/**
|
|
76
76
|
* Record representing the item change information.
|
|
77
77
|
*
|
|
78
|
-
*
|
|
78
|
+
* @publicApi
|
|
79
79
|
*/
|
|
80
80
|
export interface IterableChangeRecord<V> {
|
|
81
81
|
/** Current index of the item in `Iterable` or null if removed. */
|
|
@@ -89,6 +89,7 @@ export interface IterableChangeRecord<V> {
|
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* @deprecated v4.0.0 - Use IterableChangeRecord instead.
|
|
92
|
+
* @publicApi
|
|
92
93
|
*/
|
|
93
94
|
export interface CollectionChangeRecord<V> extends IterableChangeRecord<V> {
|
|
94
95
|
}
|
|
@@ -96,7 +97,7 @@ export interface CollectionChangeRecord<V> extends IterableChangeRecord<V> {
|
|
|
96
97
|
* An optional function passed into {@link NgForOf} that defines how to track
|
|
97
98
|
* items in an iterable (e.g. fby index or id)
|
|
98
99
|
*
|
|
99
|
-
*
|
|
100
|
+
* @publicApi
|
|
100
101
|
*/
|
|
101
102
|
export interface TrackByFunction<T> {
|
|
102
103
|
(index: number, item: T): any;
|
|
@@ -104,7 +105,7 @@ export interface TrackByFunction<T> {
|
|
|
104
105
|
/**
|
|
105
106
|
* Provides a factory for {@link IterableDiffer}.
|
|
106
107
|
*
|
|
107
|
-
*
|
|
108
|
+
* @publicApi
|
|
108
109
|
*/
|
|
109
110
|
export interface IterableDifferFactory {
|
|
110
111
|
supports(objects: any): boolean;
|
|
@@ -113,6 +114,7 @@ export interface IterableDifferFactory {
|
|
|
113
114
|
/**
|
|
114
115
|
* A repository of different iterable diffing strategies used by NgFor, NgClass, and others.
|
|
115
116
|
*
|
|
117
|
+
* @publicApi
|
|
116
118
|
*/
|
|
117
119
|
export declare class IterableDiffers {
|
|
118
120
|
static ngInjectableDef: never;
|
|
@@ -9,7 +9,7 @@ import { StaticProvider } from '../../di';
|
|
|
9
9
|
/**
|
|
10
10
|
* A differ that tracks changes made to an object over time.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* @publicApi
|
|
13
13
|
*/
|
|
14
14
|
export interface KeyValueDiffer<K, V> {
|
|
15
15
|
/**
|
|
@@ -35,7 +35,7 @@ export interface KeyValueDiffer<K, V> {
|
|
|
35
35
|
* An object describing the changes in the `Map` or `{[k:string]: string}` since last time
|
|
36
36
|
* `KeyValueDiffer#diff()` was invoked.
|
|
37
37
|
*
|
|
38
|
-
*
|
|
38
|
+
* @publicApi
|
|
39
39
|
*/
|
|
40
40
|
export interface KeyValueChanges<K, V> {
|
|
41
41
|
/**
|
|
@@ -64,7 +64,7 @@ export interface KeyValueChanges<K, V> {
|
|
|
64
64
|
/**
|
|
65
65
|
* Record representing the item change information.
|
|
66
66
|
*
|
|
67
|
-
*
|
|
67
|
+
* @publicApi
|
|
68
68
|
*/
|
|
69
69
|
export interface KeyValueChangeRecord<K, V> {
|
|
70
70
|
/**
|
|
@@ -83,7 +83,7 @@ export interface KeyValueChangeRecord<K, V> {
|
|
|
83
83
|
/**
|
|
84
84
|
* Provides a factory for {@link KeyValueDiffer}.
|
|
85
85
|
*
|
|
86
|
-
*
|
|
86
|
+
* @publicApi
|
|
87
87
|
*/
|
|
88
88
|
export interface KeyValueDifferFactory {
|
|
89
89
|
/**
|
|
@@ -98,6 +98,7 @@ export interface KeyValueDifferFactory {
|
|
|
98
98
|
/**
|
|
99
99
|
* A repository of different Map diffing strategies used by NgClass, NgStyle, and others.
|
|
100
100
|
*
|
|
101
|
+
* @publicApi
|
|
101
102
|
*/
|
|
102
103
|
export declare class KeyValueDiffers {
|
|
103
104
|
/**
|
|
@@ -5,15 +5,17 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
export { defineBase as ɵdefineBase, defineComponent as ɵdefineComponent, defineDirective as ɵdefineDirective, definePipe as ɵdefinePipe, defineNgModule as ɵdefineNgModule, detectChanges as ɵdetectChanges, renderComponent as ɵrenderComponent, ComponentType as ɵComponentType, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, DirectiveType as ɵDirectiveType, RenderFlags as ɵRenderFlags, directiveInject as ɵdirectiveInject,
|
|
8
|
+
export { defineBase as ɵdefineBase, defineComponent as ɵdefineComponent, defineDirective as ɵdefineDirective, definePipe as ɵdefinePipe, defineNgModule as ɵdefineNgModule, detectChanges as ɵdetectChanges, renderComponent as ɵrenderComponent, ComponentType as ɵComponentType, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, DirectiveType as ɵDirectiveType, RenderFlags as ɵRenderFlags, directiveInject as ɵdirectiveInject, injectAttribute as ɵinjectAttribute, getFactoryOf as ɵgetFactoryOf, getInheritedFactory as ɵgetInheritedFactory, templateRefExtractor as ɵtemplateRefExtractor, PublicFeature as ɵPublicFeature, InheritDefinitionFeature as ɵInheritDefinitionFeature, NgOnChangesFeature as ɵNgOnChangesFeature, NgModuleType as ɵNgModuleType, NgModuleRef as ɵRender3NgModuleRef, CssSelectorList as ɵCssSelectorList, markDirty as ɵmarkDirty, NgModuleFactory as ɵNgModuleFactory, NO_CHANGE as ɵNO_CHANGE, container as ɵcontainer, nextContext as ɵnextContext, elementStart as ɵelementStart, namespaceHTML as ɵnamespaceHTML, namespaceMathML as ɵnamespaceMathML, namespaceSVG as ɵnamespaceSVG, element as ɵelement, listener as ɵlistener, text as ɵtext, embeddedViewStart as ɵembeddedViewStart, query as ɵquery, registerContentQuery as ɵregisterContentQuery, projection as ɵprojection, bind as ɵbind, interpolation1 as ɵinterpolation1, interpolation2 as ɵinterpolation2, interpolation3 as ɵinterpolation3, interpolation4 as ɵinterpolation4, interpolation5 as ɵinterpolation5, interpolation6 as ɵinterpolation6, interpolation7 as ɵinterpolation7, interpolation8 as ɵinterpolation8, interpolationV as ɵinterpolationV, pipeBind1 as ɵpipeBind1, pipeBind2 as ɵpipeBind2, pipeBind3 as ɵpipeBind3, pipeBind4 as ɵpipeBind4, pipeBindV as ɵpipeBindV, pureFunction0 as ɵpureFunction0, pureFunction1 as ɵpureFunction1, pureFunction2 as ɵpureFunction2, pureFunction3 as ɵpureFunction3, pureFunction4 as ɵpureFunction4, pureFunction5 as ɵpureFunction5, pureFunction6 as ɵpureFunction6, pureFunction7 as ɵpureFunction7, pureFunction8 as ɵpureFunction8, pureFunctionV as ɵpureFunctionV, getCurrentView as ɵgetCurrentView, restoreView as ɵrestoreView, containerRefreshStart as ɵcontainerRefreshStart, containerRefreshEnd as ɵcontainerRefreshEnd, queryRefresh as ɵqueryRefresh, loadQueryList as ɵloadQueryList, elementEnd as ɵelementEnd, elementProperty as ɵelementProperty, projectionDef as ɵprojectionDef, reference as ɵreference, enableBindings as ɵenableBindings, disableBindings as ɵdisableBindings, elementAttribute as ɵelementAttribute, elementStyling as ɵelementStyling, elementStylingMap as ɵelementStylingMap, elementStyleProp as ɵelementStyleProp, elementStylingApply as ɵelementStylingApply, elementClassProp as ɵelementClassProp, textBinding as ɵtextBinding, template as ɵtemplate, embeddedViewEnd as ɵembeddedViewEnd, store as ɵstore, load as ɵload, pipe as ɵpipe, BaseDef as ɵBaseDef, ComponentDef as ɵComponentDef, ComponentDefWithMeta as ɵComponentDefWithMeta, DirectiveDef as ɵDirectiveDef, DirectiveDefWithMeta as ɵDirectiveDefWithMeta, PipeDef as ɵPipeDef, PipeDefWithMeta as ɵPipeDefWithMeta, whenRendered as ɵwhenRendered, i18nAttribute as ɵi18nAttribute, i18nExp as ɵi18nExp, i18nStart as ɵi18nStart, i18nEnd as ɵi18nEnd, i18nApply as ɵi18nApply, i18nExpMapping as ɵi18nExpMapping, i18nInterpolation1 as ɵi18nInterpolation1, i18nInterpolation2 as ɵi18nInterpolation2, i18nInterpolation3 as ɵi18nInterpolation3, i18nInterpolation4 as ɵi18nInterpolation4, i18nInterpolation5 as ɵi18nInterpolation5, i18nInterpolation6 as ɵi18nInterpolation6, i18nInterpolation7 as ɵi18nInterpolation7, i18nInterpolation8 as ɵi18nInterpolation8, i18nInterpolationV as ɵi18nInterpolationV, i18nMapping as ɵi18nMapping, I18nInstruction as ɵI18nInstruction, I18nExpInstruction as ɵI18nExpInstruction, WRAP_RENDERER_FACTORY2 as ɵWRAP_RENDERER_FACTORY2 } from './render3/index';
|
|
9
9
|
export { Render3DebugRendererFactory2 as ɵRender3DebugRendererFactory2 } from './render3/debug';
|
|
10
10
|
export { R3_COMPILE_NGMODULE_DEFS as ɵcompileNgModuleDefs, R3_PATCH_COMPONENT_DEF_WTIH_SCOPE as ɵpatchComponentDefWithScope, R3_COMPILE_COMPONENT as ɵcompileComponent, R3_COMPILE_DIRECTIVE as ɵcompileDirective, R3_COMPILE_PIPE as ɵcompilePipe, } from './ivy_switch/compiler/ivy_switch_on';
|
|
11
11
|
export { NgModuleDef as ɵNgModuleDef, NgModuleDefWithMeta as ɵNgModuleDefWithMeta, NgModuleTransitiveScopes as ɵNgModuleTransitiveScopes, } from './metadata/ng_module';
|
|
12
12
|
export { sanitizeHtml as ɵsanitizeHtml, sanitizeStyle as ɵsanitizeStyle, sanitizeUrl as ɵsanitizeUrl, sanitizeResourceUrl as ɵsanitizeResourceUrl, } from './sanitization/sanitization';
|
|
13
13
|
export { bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, } from './sanitization/bypass';
|
|
14
|
-
export {
|
|
15
|
-
export { Player as ɵPlayer, PlayState as ɵPlayState, PlayerHandler as ɵPlayerHandler, } from './render3/interfaces/player';
|
|
16
|
-
export {
|
|
14
|
+
export { getContext as ɵgetContext } from './render3/context_discovery';
|
|
15
|
+
export { Player as ɵPlayer, PlayerFactory as ɵPlayerFactory, PlayState as ɵPlayState, PlayerHandler as ɵPlayerHandler, } from './render3/interfaces/player';
|
|
16
|
+
export { LContext as ɵLContext, } from './render3/interfaces/context';
|
|
17
|
+
export { bindPlayerFactory as ɵbindPlayerFactory, } from './render3/styling/player_factory';
|
|
18
|
+
export { addPlayer as ɵaddPlayer, getPlayers as ɵgetPlayers, } from './render3/players';
|
|
17
19
|
export { compileNgModuleFactory__POST_NGCC__ as ɵcompileNgModuleFactory__POST_NGCC__ } from './application_ref';
|
|
18
20
|
export { R3_COMPILE_COMPONENT__POST_NGCC__ as ɵR3_COMPILE_COMPONENT__POST_NGCC__, R3_COMPILE_DIRECTIVE__POST_NGCC__ as ɵR3_COMPILE_DIRECTIVE__POST_NGCC__, R3_COMPILE_INJECTABLE__POST_NGCC__ as ɵR3_COMPILE_INJECTABLE__POST_NGCC__, R3_COMPILE_NGMODULE__POST_NGCC__ as ɵR3_COMPILE_NGMODULE__POST_NGCC__, R3_COMPILE_PIPE__POST_NGCC__ as ɵR3_COMPILE_PIPE__POST_NGCC__, ivyEnable__POST_NGCC__ as ɵivyEnable__POST_NGCC__, } from './ivy_switch/compiler/legacy';
|
|
19
|
-
export { R3_ELEMENT_REF_FACTORY__POST_NGCC__ as ɵR3_ELEMENT_REF_FACTORY__POST_NGCC__, R3_TEMPLATE_REF_FACTORY__POST_NGCC__ as ɵR3_TEMPLATE_REF_FACTORY__POST_NGCC__, R3_CHANGE_DETECTOR_REF_FACTORY__POST_NGCC__ as ɵR3_CHANGE_DETECTOR_REF_FACTORY__POST_NGCC__, R3_VIEW_CONTAINER_REF_FACTORY__POST_NGCC__ as ɵR3_VIEW_CONTAINER_REF_FACTORY__POST_NGCC__, } from './ivy_switch/runtime/legacy';
|
|
21
|
+
export { R3_ELEMENT_REF_FACTORY__POST_NGCC__ as ɵR3_ELEMENT_REF_FACTORY__POST_NGCC__, R3_TEMPLATE_REF_FACTORY__POST_NGCC__ as ɵR3_TEMPLATE_REF_FACTORY__POST_NGCC__, R3_CHANGE_DETECTOR_REF_FACTORY__POST_NGCC__ as ɵR3_CHANGE_DETECTOR_REF_FACTORY__POST_NGCC__, R3_VIEW_CONTAINER_REF_FACTORY__POST_NGCC__ as ɵR3_VIEW_CONTAINER_REF_FACTORY__POST_NGCC__, R3_RENDERER2_FACTORY__POST_NGCC__ as ɵR3_RENDERER2_FACTORY__POST_NGCC__, } from './ivy_switch/runtime/legacy';
|
|
@@ -13,7 +13,7 @@ export declare class EventListener {
|
|
|
13
13
|
constructor(name: string, callback: Function);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* @
|
|
16
|
+
* @publicApi
|
|
17
17
|
*/
|
|
18
18
|
export declare class DebugNode {
|
|
19
19
|
nativeNode: any;
|
|
@@ -30,7 +30,7 @@ export declare class DebugNode {
|
|
|
30
30
|
readonly providerTokens: any[];
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* @
|
|
33
|
+
* @publicApi
|
|
34
34
|
*/
|
|
35
35
|
export declare class DebugElement extends DebugNode {
|
|
36
36
|
name: string;
|
|
@@ -60,11 +60,11 @@ export declare class DebugElement extends DebugNode {
|
|
|
60
60
|
triggerEventHandler(eventName: string, eventObj: any): void;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* @
|
|
63
|
+
* @publicApi
|
|
64
64
|
*/
|
|
65
65
|
export declare function asNativeElements(debugEls: DebugElement[]): any;
|
|
66
66
|
/**
|
|
67
|
-
* @
|
|
67
|
+
* @publicApi
|
|
68
68
|
*/
|
|
69
69
|
export declare function getDebugNode(nativeNode: any): DebugNode | null;
|
|
70
70
|
export declare function getAllDebugNodes(): DebugNode[];
|
|
@@ -74,7 +74,7 @@ export declare function removeDebugNodeFromIndex(node: DebugNode): void;
|
|
|
74
74
|
* A boolean-valued function over a value, possibly including context information
|
|
75
75
|
* regarding that value's position in an array.
|
|
76
76
|
*
|
|
77
|
-
* @
|
|
77
|
+
* @publicApi
|
|
78
78
|
*/
|
|
79
79
|
export interface Predicate<T> {
|
|
80
80
|
(value: T): boolean;
|
package/src/di/defs.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export interface InjectorDef<T> {
|
|
|
59
59
|
* `InjectableDefType`s contain their own Dependency Injection metadata and are usable in an
|
|
60
60
|
* `InjectorDef`-based `StaticInjector.
|
|
61
61
|
*
|
|
62
|
-
* @
|
|
62
|
+
* @publicApi
|
|
63
63
|
*/
|
|
64
64
|
export interface InjectableType<T> extends Type<T> {
|
|
65
65
|
/**
|
|
@@ -72,7 +72,7 @@ export interface InjectableType<T> extends Type<T> {
|
|
|
72
72
|
*
|
|
73
73
|
* `InjectorDefTypes` can be used to configure a `StaticInjector`.
|
|
74
74
|
*
|
|
75
|
-
* @
|
|
75
|
+
* @publicApi
|
|
76
76
|
*/
|
|
77
77
|
export interface InjectorType<T> extends Type<T> {
|
|
78
78
|
/**
|
|
@@ -106,7 +106,7 @@ export interface InjectorTypeWithProviders<T> {
|
|
|
106
106
|
* * `factory` gives the zero argument function which will create an instance of the injectable.
|
|
107
107
|
* The factory can call `inject` to access the `Injector` and request injection of dependencies.
|
|
108
108
|
*
|
|
109
|
-
* @
|
|
109
|
+
* @publicApi
|
|
110
110
|
*/
|
|
111
111
|
export declare function defineInjectable<T>(opts: {
|
|
112
112
|
providedIn?: Type<any> | 'root' | 'any' | null;
|
|
@@ -130,7 +130,7 @@ export declare function defineInjectable<T>(opts: {
|
|
|
130
130
|
* whose providers will also be added to the injector. Locally provided types will override
|
|
131
131
|
* providers from imports.
|
|
132
132
|
*
|
|
133
|
-
* @
|
|
133
|
+
* @publicApi
|
|
134
134
|
*/
|
|
135
135
|
export declare function defineInjector(options: {
|
|
136
136
|
factory: () => any;
|
package/src/di/forward_ref.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { Type } from '../type';
|
|
|
13
13
|
* ### Example
|
|
14
14
|
*
|
|
15
15
|
* {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref_fn'}
|
|
16
|
-
* @
|
|
16
|
+
* @publicApi
|
|
17
17
|
*/
|
|
18
18
|
export interface ForwardRefFn {
|
|
19
19
|
(): any;
|
|
@@ -28,7 +28,7 @@ export interface ForwardRefFn {
|
|
|
28
28
|
* @usageNotes
|
|
29
29
|
* ### Example
|
|
30
30
|
* {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
|
|
31
|
-
* @
|
|
31
|
+
* @publicApi
|
|
32
32
|
*/
|
|
33
33
|
export declare function forwardRef(forwardRefFn: ForwardRefFn): Type<any>;
|
|
34
34
|
/**
|
|
@@ -42,6 +42,6 @@ export declare function forwardRef(forwardRefFn: ForwardRefFn): Type<any>;
|
|
|
42
42
|
* {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
|
|
43
43
|
*
|
|
44
44
|
* @see `forwardRef`
|
|
45
|
-
* @
|
|
45
|
+
* @publicApi
|
|
46
46
|
*/
|
|
47
47
|
export declare function resolveForwardRef(type: any): any;
|
package/src/di/injectable.d.ts
CHANGED
|
@@ -11,11 +11,13 @@ import { ClassSansProvider, ConstructorSansProvider, ExistingSansProvider, Facto
|
|
|
11
11
|
/**
|
|
12
12
|
* Injectable providers used in `@Injectable` decorator.
|
|
13
13
|
*
|
|
14
|
-
* @
|
|
14
|
+
* @publicApi
|
|
15
15
|
*/
|
|
16
16
|
export declare type InjectableProvider = ValueSansProvider | ExistingSansProvider | StaticClassSansProvider | ConstructorSansProvider | FactorySansProvider | ClassSansProvider;
|
|
17
17
|
/**
|
|
18
18
|
* Type of the Injectable decorator / constructor function.
|
|
19
|
+
*
|
|
20
|
+
* @publicApi
|
|
19
21
|
*/
|
|
20
22
|
export interface InjectableDecorator {
|
|
21
23
|
/**
|
|
@@ -46,21 +48,22 @@ export interface InjectableDecorator {
|
|
|
46
48
|
/**
|
|
47
49
|
* Type of the Injectable metadata.
|
|
48
50
|
*
|
|
49
|
-
* @
|
|
51
|
+
* @publicApi
|
|
50
52
|
*/
|
|
51
53
|
export interface Injectable {
|
|
52
54
|
providedIn?: Type<any> | 'root' | null;
|
|
53
55
|
}
|
|
54
56
|
/**
|
|
55
|
-
* Injectable decorator and metadata.
|
|
56
|
-
*
|
|
57
|
-
* @Annotation
|
|
58
|
-
|
|
57
|
+
* Injectable decorator and metadata.
|
|
58
|
+
*
|
|
59
|
+
* @Annotation
|
|
60
|
+
* @publicApi
|
|
61
|
+
*/
|
|
59
62
|
export declare const Injectable: InjectableDecorator;
|
|
60
63
|
/**
|
|
61
64
|
* Type representing injectable service.
|
|
62
65
|
*
|
|
63
|
-
* @
|
|
66
|
+
* @publicApi
|
|
64
67
|
*/
|
|
65
68
|
export interface InjectableType<T> extends Type<T> {
|
|
66
69
|
ngInjectableDef: InjectableDef<T>;
|
package/src/di/injector.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const THROW_IF_NOT_FOUND: Object;
|
|
|
16
16
|
* Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a
|
|
17
17
|
* project.
|
|
18
18
|
*
|
|
19
|
-
* @
|
|
19
|
+
* @publicApi
|
|
20
20
|
*/
|
|
21
21
|
export declare const INJECTOR: InjectionToken<Injector>;
|
|
22
22
|
export declare class NullInjector implements Injector {
|
|
@@ -36,7 +36,7 @@ export declare class NullInjector implements Injector {
|
|
|
36
36
|
*
|
|
37
37
|
* {@example core/di/ts/injector_spec.ts region='injectInjector'}
|
|
38
38
|
*
|
|
39
|
-
*
|
|
39
|
+
* @publicApi
|
|
40
40
|
*/
|
|
41
41
|
export declare abstract class Injector {
|
|
42
42
|
static THROW_IF_NOT_FOUND: Object;
|
|
@@ -75,6 +75,8 @@ export declare class StaticInjector implements Injector {
|
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* Injection flags for DI.
|
|
78
|
+
*
|
|
79
|
+
* @publicApi
|
|
78
80
|
*/
|
|
79
81
|
export declare const enum InjectFlags {
|
|
80
82
|
Default = 0,
|
|
@@ -106,7 +108,7 @@ export declare function setCurrentInjector(injector: Injector | null | undefined
|
|
|
106
108
|
* of providing an additional array of dependencies as was common to do with `useFactory` providers.
|
|
107
109
|
* `inject` is faster and more type-safe.
|
|
108
110
|
*
|
|
109
|
-
* @
|
|
111
|
+
* @publicApi
|
|
110
112
|
*/
|
|
111
113
|
export declare function inject<T>(token: Type<T> | InjectionToken<T>): T;
|
|
112
114
|
export declare function inject<T>(token: Type<T> | InjectionToken<T>, flags?: InjectFlags): T | null;
|
package/src/di/metadata.d.ts
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* Type of the Inject decorator / constructor function.
|
|
10
|
+
*
|
|
11
|
+
* @publicApi
|
|
10
12
|
*/
|
|
11
13
|
export interface InjectDecorator {
|
|
12
14
|
/**
|
|
@@ -31,6 +33,8 @@ export interface InjectDecorator {
|
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
33
35
|
* Type of the Inject metadata.
|
|
36
|
+
*
|
|
37
|
+
* @publicApi
|
|
34
38
|
*/
|
|
35
39
|
export interface Inject {
|
|
36
40
|
/**
|
|
@@ -42,10 +46,13 @@ export interface Inject {
|
|
|
42
46
|
* Inject decorator and metadata.
|
|
43
47
|
*
|
|
44
48
|
* @Annotation
|
|
49
|
+
* @publicApi
|
|
45
50
|
*/
|
|
46
51
|
export declare const Inject: InjectDecorator;
|
|
47
52
|
/**
|
|
48
53
|
* Type of the Optional decorator / constructor function.
|
|
54
|
+
*
|
|
55
|
+
* @publicApi
|
|
49
56
|
*/
|
|
50
57
|
export interface OptionalDecorator {
|
|
51
58
|
/**
|
|
@@ -63,6 +70,8 @@ export interface OptionalDecorator {
|
|
|
63
70
|
}
|
|
64
71
|
/**
|
|
65
72
|
* Type of the Optional metadata.
|
|
73
|
+
*
|
|
74
|
+
* @publicApi
|
|
66
75
|
*/
|
|
67
76
|
export interface Optional {
|
|
68
77
|
}
|
|
@@ -70,10 +79,13 @@ export interface Optional {
|
|
|
70
79
|
* Optional decorator and metadata.
|
|
71
80
|
*
|
|
72
81
|
* @Annotation
|
|
82
|
+
* @publicApi
|
|
73
83
|
*/
|
|
74
84
|
export declare const Optional: OptionalDecorator;
|
|
75
85
|
/**
|
|
76
86
|
* Type of the Self decorator / constructor function.
|
|
87
|
+
*
|
|
88
|
+
* @publicApi
|
|
77
89
|
*/
|
|
78
90
|
export interface SelfDecorator {
|
|
79
91
|
/**
|
|
@@ -95,6 +107,8 @@ export interface SelfDecorator {
|
|
|
95
107
|
}
|
|
96
108
|
/**
|
|
97
109
|
* Type of the Self metadata.
|
|
110
|
+
*
|
|
111
|
+
* @publicApi
|
|
98
112
|
*/
|
|
99
113
|
export interface Self {
|
|
100
114
|
}
|
|
@@ -102,10 +116,13 @@ export interface Self {
|
|
|
102
116
|
* Self decorator and metadata.
|
|
103
117
|
*
|
|
104
118
|
* @Annotation
|
|
119
|
+
* @publicApi
|
|
105
120
|
*/
|
|
106
121
|
export declare const Self: SelfDecorator;
|
|
107
122
|
/**
|
|
108
123
|
* Type of the SkipSelf decorator / constructor function.
|
|
124
|
+
*
|
|
125
|
+
* @publicApi
|
|
109
126
|
*/
|
|
110
127
|
export interface SkipSelfDecorator {
|
|
111
128
|
/**
|
|
@@ -127,7 +144,7 @@ export interface SkipSelfDecorator {
|
|
|
127
144
|
/**
|
|
128
145
|
* Type of the SkipSelf metadata.
|
|
129
146
|
*
|
|
130
|
-
*
|
|
147
|
+
* @publicApi
|
|
131
148
|
*/
|
|
132
149
|
export interface SkipSelf {
|
|
133
150
|
}
|
|
@@ -135,10 +152,13 @@ export interface SkipSelf {
|
|
|
135
152
|
* SkipSelf decorator and metadata.
|
|
136
153
|
*
|
|
137
154
|
* @Annotation
|
|
155
|
+
* @publicApi
|
|
138
156
|
*/
|
|
139
157
|
export declare const SkipSelf: SkipSelfDecorator;
|
|
140
158
|
/**
|
|
141
159
|
* Type of the Host decorator / constructor function.
|
|
160
|
+
*
|
|
161
|
+
* @publicApi
|
|
142
162
|
*/
|
|
143
163
|
export interface HostDecorator {
|
|
144
164
|
/**
|
|
@@ -157,6 +177,8 @@ export interface HostDecorator {
|
|
|
157
177
|
}
|
|
158
178
|
/**
|
|
159
179
|
* Type of the Host metadata.
|
|
180
|
+
*
|
|
181
|
+
* @publicApi
|
|
160
182
|
*/
|
|
161
183
|
export interface Host {
|
|
162
184
|
}
|
|
@@ -164,5 +186,6 @@ export interface Host {
|
|
|
164
186
|
* Host decorator and metadata.
|
|
165
187
|
*
|
|
166
188
|
* @Annotation
|
|
189
|
+
* @publicApi
|
|
167
190
|
*/
|
|
168
191
|
export declare const Host: HostDecorator;
|