@angular/platform-browser 14.0.0-rc.2 → 14.0.1

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.2
2
+ * @license Angular v14.0.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -235,13 +235,13 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
235
235
  */
236
236
  class BrowserTestingModule {
237
237
  }
238
- BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.2", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
239
- BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-rc.2", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
240
- BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-rc.2", ngImport: i0, type: BrowserTestingModule, providers: [
238
+ BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
239
+ BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.1", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
240
+ BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: BrowserTestingModule, providers: [
241
241
  { provide: APP_ID, useValue: 'a' },
242
242
  { provide: NgZone, useFactory: createNgZone },
243
243
  ], imports: [BrowserModule] });
244
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.2", ngImport: i0, type: BrowserTestingModule, decorators: [{
244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.1", ngImport: i0, type: BrowserTestingModule, decorators: [{
245
245
  type: NgModule,
246
246
  args: [{
247
247
  exports: [BrowserModule],
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.0-rc.2
2
+ * @license Angular v14.0.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -37,6 +37,7 @@ import { ɵgetDOM } from '@angular/common';
37
37
  /**
38
38
  * Set of config options available during the bootstrap operation via `bootstrapApplication` call.
39
39
  *
40
+ * @developerPreview
40
41
  * @publicApi
41
42
  */
42
43
  export declare interface ApplicationConfig {
@@ -47,9 +48,12 @@ export declare interface ApplicationConfig {
47
48
  }
48
49
 
49
50
  /**
50
- * Bootstraps an instance of an Angular application and renders a root component.
51
+ * Bootstraps an instance of an Angular application and renders a standalone component as the
52
+ * application's root component. More information about standalone components can be found in [this
53
+ * guide](guide/standalone-components).
51
54
  *
52
- * Note: the root component passed into this function *must* be a standalone one (should have the
55
+ * @usageNotes
56
+ * The root component passed into this function *must* be a standalone one (should have the
53
57
  * `standalone: true` flag in the `@Component` decorator config).
54
58
  *
55
59
  * ```typescript
@@ -62,23 +66,46 @@ export declare interface ApplicationConfig {
62
66
  * const appRef: ApplicationRef = await bootstrapApplication(RootComponent);
63
67
  * ```
64
68
  *
65
- * Note: this bootstrap method doesn't include [Testability](api/core/Testability) by default.
66
- * You can add [Testability](api/core/Testability) by getting the list of necessary providers
67
- * using `provideProtractorTestingSupport()` function and add them into the `options.providers`
68
- * array. Example:
69
+ * You can add the list of providers that should be available in the application injector by
70
+ * specifying the `providers` field in an object passed as the second argument:
71
+ *
72
+ * ```typescript
73
+ * await bootstrapApplication(RootComponent, {
74
+ * providers: [
75
+ * {provide: BACKEND_URL, useValue: 'https://yourdomain.com/api'}
76
+ * ]
77
+ * });
78
+ * ```
79
+ *
80
+ * The `importProvidersFrom` helper method can be used to collect all providers from any
81
+ * existing NgModule (and transitively from all NgModules that it imports):
82
+ *
83
+ * ```typescript
84
+ * await bootstrapApplication(RootComponent, {
85
+ * providers: [
86
+ * importProvidersFrom(SomeNgModule)
87
+ * ]
88
+ * });
89
+ * ```
90
+ *
91
+ * Note: the `bootstrapApplication` method doesn't include [Testability](api/core/Testability) by
92
+ * default. You can add [Testability](api/core/Testability) by getting the list of necessary
93
+ * providers using `provideProtractorTestingSupport()` function and adding them into the `providers`
94
+ * array, for example:
69
95
  *
70
96
  * ```typescript
71
97
  * import {provideProtractorTestingSupport} from '@angular/platform-browser';
72
98
  *
73
- * await bootstrapApplication(RootComponent, providers: [provideProtractorTestingSupport()]);
99
+ * await bootstrapApplication(RootComponent, {providers: [provideProtractorTestingSupport()]});
74
100
  * ```
75
101
  *
76
- * @param rootComponent A reference to a Standalone Component that should be rendered.
77
- * @param options Additional configuration for the bootstrap operation, see `ApplicationConfig` for
102
+ * @param rootComponent A reference to a standalone component that should be rendered.
103
+ * @param options Extra configuration for the bootstrap operation, see `ApplicationConfig` for
78
104
  * additional info.
79
105
  * @returns A promise that returns an `ApplicationRef` instance once resolved.
80
106
  *
81
107
  * @publicApi
108
+ * @developerPreview
82
109
  */
83
110
  export declare function bootstrapApplication(rootComponent: Type<unknown>, options?: ApplicationConfig): Promise<ApplicationRef>;
84
111
 
@@ -582,6 +609,7 @@ export declare const platformBrowser: (extraProviders?: StaticProvider[]) => Pla
582
609
  * @returns An array of providers required to setup Testability for an application and make it
583
610
  * available for testing using Protractor.
584
611
  *
612
+ * @developerPreview
585
613
  * @publicApi
586
614
  */
587
615
  export declare function provideProtractorTestingSupport(): Provider[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/platform-browser",
3
- "version": "14.0.0-rc.2",
3
+ "version": "14.0.1",
4
4
  "description": "Angular - library for using Angular in a web browser",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -11,9 +11,9 @@
11
11
  "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/animations": "14.0.0-rc.2",
15
- "@angular/core": "14.0.0-rc.2",
16
- "@angular/common": "14.0.0-rc.2"
14
+ "@angular/animations": "14.0.1",
15
+ "@angular/core": "14.0.1",
16
+ "@angular/common": "14.0.1"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "@angular/animations": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.0-rc.2
2
+ * @license Angular v14.0.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */