@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/fesm2015/testing.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
|
*/
|
|
@@ -9173,8 +9173,38 @@ const INJECTOR_DEF_TYPES = new InjectionToken('INJECTOR_DEF_TYPES');
|
|
|
9173
9173
|
* another environment injector (such as a route injector). They should not be used in component
|
|
9174
9174
|
* providers.
|
|
9175
9175
|
*
|
|
9176
|
-
*
|
|
9176
|
+
* More information about standalone components can be found in [this
|
|
9177
|
+
* guide](guide/standalone-components).
|
|
9178
|
+
*
|
|
9179
|
+
* @usageNotes
|
|
9180
|
+
* The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:
|
|
9181
|
+
*
|
|
9182
|
+
* ```typescript
|
|
9183
|
+
* await bootstrapApplication(RootComponent, {
|
|
9184
|
+
* providers: [
|
|
9185
|
+
* importProvidersFrom(NgModuleOne, NgModuleTwo)
|
|
9186
|
+
* ]
|
|
9187
|
+
* });
|
|
9188
|
+
* ```
|
|
9189
|
+
*
|
|
9190
|
+
* You can also use the `importProvidersFrom` results in the `providers` field of a route, when a
|
|
9191
|
+
* standalone component is used:
|
|
9192
|
+
*
|
|
9193
|
+
* ```typescript
|
|
9194
|
+
* export const ROUTES: Route[] = [
|
|
9195
|
+
* {
|
|
9196
|
+
* path: 'foo',
|
|
9197
|
+
* providers: [
|
|
9198
|
+
* importProvidersFrom(NgModuleOne, NgModuleTwo)
|
|
9199
|
+
* ],
|
|
9200
|
+
* component: YourStandaloneComponent
|
|
9201
|
+
* }
|
|
9202
|
+
* ];
|
|
9203
|
+
* ```
|
|
9204
|
+
*
|
|
9205
|
+
* @returns Collected providers from the specified list of types.
|
|
9177
9206
|
* @publicApi
|
|
9207
|
+
* @developerPreview
|
|
9178
9208
|
*/
|
|
9179
9209
|
function importProvidersFrom(...sources) {
|
|
9180
9210
|
return { ɵproviders: internalImportProvidersFrom(true, sources) };
|
|
@@ -9452,6 +9482,8 @@ function getNullInjector() {
|
|
|
9452
9482
|
/**
|
|
9453
9483
|
* An `Injector` that's part of the environment injector hierarchy, which exists outside of the
|
|
9454
9484
|
* component tree.
|
|
9485
|
+
*
|
|
9486
|
+
* @developerPreview
|
|
9455
9487
|
*/
|
|
9456
9488
|
class EnvironmentInjector {
|
|
9457
9489
|
}
|
|
@@ -22057,7 +22089,7 @@ class Version {
|
|
|
22057
22089
|
/**
|
|
22058
22090
|
* @publicApi
|
|
22059
22091
|
*/
|
|
22060
|
-
const VERSION = new Version('14.0.0
|
|
22092
|
+
const VERSION = new Version('14.0.0');
|
|
22061
22093
|
|
|
22062
22094
|
/**
|
|
22063
22095
|
* @license
|
|
@@ -22729,6 +22761,7 @@ class EnvironmentNgModuleRefAdapter extends NgModuleRef$1 {
|
|
|
22729
22761
|
* Create a new environment injector.
|
|
22730
22762
|
*
|
|
22731
22763
|
* @publicApi
|
|
22764
|
+
* @developerPreview
|
|
22732
22765
|
*/
|
|
22733
22766
|
function createEnvironmentInjector(providers, parent = null, debugName = null) {
|
|
22734
22767
|
const adapter = new EnvironmentNgModuleRefAdapter(providers, parent, debugName);
|