@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/index.d.ts CHANGED
@@ -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
  */
@@ -1029,6 +1029,8 @@ export declare interface Component extends Directive {
1029
1029
  *
1030
1030
  * More information about standalone components, directives and pipes can be found in [this
1031
1031
  * guide](guide/standalone-components).
1032
+ *
1033
+ * @developerPreview
1032
1034
  */
1033
1035
  standalone?: boolean;
1034
1036
  /**
@@ -1041,6 +1043,8 @@ export declare interface Component extends Directive {
1041
1043
  *
1042
1044
  * More information about standalone components, directives and pipes can be found in [this
1043
1045
  * guide](guide/standalone-components).
1046
+ *
1047
+ * @developerPreview
1044
1048
  */
1045
1049
  imports?: (Type<any> | any[])[];
1046
1050
  /**
@@ -1643,6 +1647,7 @@ declare interface CreateComponentOptions {
1643
1647
  * Create a new environment injector.
1644
1648
  *
1645
1649
  * @publicApi
1650
+ * @developerPreview
1646
1651
  */
1647
1652
  export declare function createEnvironmentInjector(providers: Array<Provider | ImportedNgModuleProviders>, parent?: EnvironmentInjector | null, debugName?: string | null): EnvironmentInjector;
1648
1653
 
@@ -2283,6 +2288,8 @@ export declare interface Directive {
2283
2288
  *
2284
2289
  * More information about standalone components, directives and pipes can be found in [this
2285
2290
  * guide](guide/standalone-components).
2291
+ *
2292
+ * @developerPreview
2286
2293
  */
2287
2294
  standalone?: boolean;
2288
2295
  }
@@ -2610,6 +2617,8 @@ export declare const ENVIRONMENT_INITIALIZER: InjectionToken<() => void>;
2610
2617
  /**
2611
2618
  * An `Injector` that's part of the environment injector hierarchy, which exists outside of the
2612
2619
  * component tree.
2620
+ *
2621
+ * @developerPreview
2613
2622
  */
2614
2623
  export declare abstract class EnvironmentInjector implements Injector {
2615
2624
  /**
@@ -3472,6 +3481,7 @@ declare const ID = 20;
3472
3481
  * @see `importProvidersFrom`
3473
3482
  *
3474
3483
  * @publicApi
3484
+ * @developerPreview
3475
3485
  */
3476
3486
  export declare interface ImportedNgModuleProviders {
3477
3487
  ɵproviders: Provider[];
@@ -3485,8 +3495,38 @@ export declare interface ImportedNgModuleProviders {
3485
3495
  * another environment injector (such as a route injector). They should not be used in component
3486
3496
  * providers.
3487
3497
  *
3488
- * @returns The collected providers from the specified list of types.
3498
+ * More information about standalone components can be found in [this
3499
+ * guide](guide/standalone-components).
3500
+ *
3501
+ * @usageNotes
3502
+ * The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:
3503
+ *
3504
+ * ```typescript
3505
+ * await bootstrapApplication(RootComponent, {
3506
+ * providers: [
3507
+ * importProvidersFrom(NgModuleOne, NgModuleTwo)
3508
+ * ]
3509
+ * });
3510
+ * ```
3511
+ *
3512
+ * You can also use the `importProvidersFrom` results in the `providers` field of a route, when a
3513
+ * standalone component is used:
3514
+ *
3515
+ * ```typescript
3516
+ * export const ROUTES: Route[] = [
3517
+ * {
3518
+ * path: 'foo',
3519
+ * providers: [
3520
+ * importProvidersFrom(NgModuleOne, NgModuleTwo)
3521
+ * ],
3522
+ * component: YourStandaloneComponent
3523
+ * }
3524
+ * ];
3525
+ * ```
3526
+ *
3527
+ * @returns Collected providers from the specified list of types.
3489
3528
  * @publicApi
3529
+ * @developerPreview
3490
3530
  */
3491
3531
  export declare function importProvidersFrom(...sources: ImportProvidersSource[]): ImportedNgModuleProviders;
3492
3532
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "14.0.0-rc.3",
3
+ "version": "14.0.0",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -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
  */