@angular/core 14.0.0-rc.3 → 14.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/esm2020/src/di/interface/provider.mjs +1 -1
- package/esm2020/src/di/provider_collection.mjs +32 -2
- package/esm2020/src/di/r3_injector.mjs +3 -1
- package/esm2020/src/metadata/directives.mjs +1 -1
- package/esm2020/src/render3/ng_module_ref.mjs +2 -1
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/fesm2015/core.mjs +36 -3
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +36 -3
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +36 -3
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +36 -3
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +42 -2
- package/package.json +1 -1
- package/testing/index.d.ts +1 -1
package/fesm2020/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0
|
|
2
|
+
* @license Angular v14.0.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -8873,8 +8873,38 @@ const INJECTOR_DEF_TYPES = new InjectionToken('INJECTOR_DEF_TYPES');
|
|
|
8873
8873
|
* another environment injector (such as a route injector). They should not be used in component
|
|
8874
8874
|
* providers.
|
|
8875
8875
|
*
|
|
8876
|
-
*
|
|
8876
|
+
* More information about standalone components can be found in [this
|
|
8877
|
+
* guide](guide/standalone-components).
|
|
8878
|
+
*
|
|
8879
|
+
* @usageNotes
|
|
8880
|
+
* The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:
|
|
8881
|
+
*
|
|
8882
|
+
* ```typescript
|
|
8883
|
+
* await bootstrapApplication(RootComponent, {
|
|
8884
|
+
* providers: [
|
|
8885
|
+
* importProvidersFrom(NgModuleOne, NgModuleTwo)
|
|
8886
|
+
* ]
|
|
8887
|
+
* });
|
|
8888
|
+
* ```
|
|
8889
|
+
*
|
|
8890
|
+
* You can also use the `importProvidersFrom` results in the `providers` field of a route, when a
|
|
8891
|
+
* standalone component is used:
|
|
8892
|
+
*
|
|
8893
|
+
* ```typescript
|
|
8894
|
+
* export const ROUTES: Route[] = [
|
|
8895
|
+
* {
|
|
8896
|
+
* path: 'foo',
|
|
8897
|
+
* providers: [
|
|
8898
|
+
* importProvidersFrom(NgModuleOne, NgModuleTwo)
|
|
8899
|
+
* ],
|
|
8900
|
+
* component: YourStandaloneComponent
|
|
8901
|
+
* }
|
|
8902
|
+
* ];
|
|
8903
|
+
* ```
|
|
8904
|
+
*
|
|
8905
|
+
* @returns Collected providers from the specified list of types.
|
|
8877
8906
|
* @publicApi
|
|
8907
|
+
* @developerPreview
|
|
8878
8908
|
*/
|
|
8879
8909
|
function importProvidersFrom(...sources) {
|
|
8880
8910
|
return { ɵproviders: internalImportProvidersFrom(true, sources) };
|
|
@@ -9152,6 +9182,8 @@ function getNullInjector() {
|
|
|
9152
9182
|
/**
|
|
9153
9183
|
* An `Injector` that's part of the environment injector hierarchy, which exists outside of the
|
|
9154
9184
|
* component tree.
|
|
9185
|
+
*
|
|
9186
|
+
* @developerPreview
|
|
9155
9187
|
*/
|
|
9156
9188
|
class EnvironmentInjector {
|
|
9157
9189
|
}
|
|
@@ -21755,7 +21787,7 @@ class Version {
|
|
|
21755
21787
|
/**
|
|
21756
21788
|
* @publicApi
|
|
21757
21789
|
*/
|
|
21758
|
-
const VERSION = new Version('14.0.0
|
|
21790
|
+
const VERSION = new Version('14.0.0');
|
|
21759
21791
|
|
|
21760
21792
|
/**
|
|
21761
21793
|
* @license
|
|
@@ -22427,6 +22459,7 @@ class EnvironmentNgModuleRefAdapter extends NgModuleRef$1 {
|
|
|
22427
22459
|
* Create a new environment injector.
|
|
22428
22460
|
*
|
|
22429
22461
|
* @publicApi
|
|
22462
|
+
* @developerPreview
|
|
22430
22463
|
*/
|
|
22431
22464
|
function createEnvironmentInjector(providers, parent = null, debugName = null) {
|
|
22432
22465
|
const adapter = new EnvironmentNgModuleRefAdapter(providers, parent, debugName);
|