@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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.0-rc.3
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
- * @returns The collected providers from the specified list of types.
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-rc.3');
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);