docs(common): mark platform-browser and platform-browser-dynamic apis stable
This commit is contained in:
parent
1f5a5895e5
commit
c03e25a7b7
|
@ -6,11 +6,10 @@
|
|||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {ResourceLoader, analyzeAppProvidersForDeprecatedConfiguration, platformCoreDynamic} from '@angular/compiler';
|
||||
import {ApplicationRef, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, CompilerFactory, CompilerOptions, ComponentRef, NgModule, PlatformRef, Provider, Type, createPlatformFactory} from '@angular/core';
|
||||
import {BrowserModule, WORKER_SCRIPT, WorkerAppModule, platformWorkerUi} from '@angular/platform-browser';
|
||||
import {ResourceLoader, platformCoreDynamic} from '@angular/compiler';
|
||||
import {COMPILER_OPTIONS, PlatformRef, Provider, createPlatformFactory} from '@angular/core';
|
||||
import {WORKER_SCRIPT, platformWorkerUi} from '@angular/platform-browser';
|
||||
|
||||
import {Console} from './core_private';
|
||||
import {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './src/platform_providers';
|
||||
import {CachedResourceLoader} from './src/resource_loader/resource_loader_cache';
|
||||
import {ResourceLoaderImpl} from './src/resource_loader/resource_loader_impl';
|
||||
|
@ -24,7 +23,7 @@ export const RESOURCE_CACHE_PROVIDER: Provider[] =
|
|||
[{provide: ResourceLoader, useClass: CachedResourceLoader}];
|
||||
|
||||
/**
|
||||
* @experimental API related to bootstrapping are still under review.
|
||||
* @stable
|
||||
*/
|
||||
export const platformBrowserDynamic = createPlatformFactory(
|
||||
platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
|
||||
|
@ -32,7 +31,7 @@ export const platformBrowserDynamic = createPlatformFactory(
|
|||
/**
|
||||
* Bootstraps the worker ui.
|
||||
*
|
||||
* @experimental
|
||||
* @experimental WebWorker support is currently experimental
|
||||
*/
|
||||
export function bootstrapWorkerUi(
|
||||
workerScriptUri: string, customProviders: Provider[] = []): Promise<PlatformRef> {
|
||||
|
@ -45,7 +44,7 @@ export function bootstrapWorkerUi(
|
|||
}
|
||||
|
||||
/**
|
||||
* @experimental API related to bootstrapping are still under review.
|
||||
* @experimental WebWorker support is currently experimental
|
||||
*/
|
||||
export const platformWorkerAppDynamic = createPlatformFactory(
|
||||
platformCoreDynamic, 'workerAppDynamic', [{
|
||||
|
|
|
@ -17,7 +17,7 @@ import {DOMTestComponentRenderer} from './testing/dom_test_component_renderer';
|
|||
export * from './private_export_testing'
|
||||
|
||||
/**
|
||||
* @experimental API related to bootstrapping are still under review.
|
||||
* @stable
|
||||
*/
|
||||
export const platformBrowserDynamicTesting = createPlatformFactory(
|
||||
platformCoreDynamicTesting, 'browserDynamicTesting',
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
export {BROWSER_SANITIZATION_PROVIDERS, BrowserModule, platformBrowser} from './src/browser';
|
||||
export {BrowserModule, platformBrowser} from './src/browser';
|
||||
export {BrowserPlatformLocation} from './src/browser/location/browser_platform_location';
|
||||
export {Title} from './src/browser/title';
|
||||
export {disableDebugTools, enableDebugTools} from './src/browser/tools/tools';
|
||||
|
|
|
@ -44,7 +44,7 @@ export const BROWSER_SANITIZATION_PROVIDERS: Array<any> = [
|
|||
];
|
||||
|
||||
/**
|
||||
* @experimental API related to bootstrapping are still under review.
|
||||
* @stable
|
||||
*/
|
||||
export const platformBrowser =
|
||||
createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);
|
||||
|
@ -73,7 +73,7 @@ export function _resolveDefaultAnimationDriver(): AnimationDriver {
|
|||
/**
|
||||
* The ng module for the browser.
|
||||
*
|
||||
* @experimental
|
||||
* @stable
|
||||
*/
|
||||
@NgModule({
|
||||
providers: [
|
||||
|
|
|
@ -26,7 +26,7 @@ const _TEST_BROWSER_PLATFORM_PROVIDERS: Provider[] =
|
|||
/**
|
||||
* Platform for testing
|
||||
*
|
||||
* @experimental API related to bootstrapping are still under review.
|
||||
* @stable
|
||||
*/
|
||||
export const platformBrowserTesting =
|
||||
createPlatformFactory(platformCore, 'browserTesting', _TEST_BROWSER_PLATFORM_PROVIDERS);
|
||||
|
@ -34,7 +34,7 @@ export const platformBrowserTesting =
|
|||
/**
|
||||
* NgModule for testing.
|
||||
*
|
||||
* @experimental
|
||||
* @stable
|
||||
*/
|
||||
@NgModule({
|
||||
exports: [BrowserModule],
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/** @experimental */
|
||||
export declare function bootstrapWorkerUi(workerScriptUri: string, customProviders?: Provider[]): Promise<PlatformRef>;
|
||||
|
||||
/** @experimental */
|
||||
/** @stable */
|
||||
export declare const platformBrowserDynamic: (extraProviders?: any[]) => PlatformRef;
|
||||
|
||||
/** @experimental */
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
export declare class BrowserDynamicTestingModule {
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
/** @stable */
|
||||
export declare const platformBrowserDynamicTesting: (extraProviders?: any[]) => PlatformRef;
|
||||
|
|
|
@ -4,10 +4,7 @@ export declare abstract class AnimationDriver {
|
|||
static NOOP: AnimationDriver;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare const BROWSER_SANITIZATION_PROVIDERS: Array<any>;
|
||||
|
||||
/** @experimental */
|
||||
/** @stable */
|
||||
export declare class BrowserModule {
|
||||
constructor(parentModule: BrowserModule);
|
||||
}
|
||||
|
@ -120,7 +117,7 @@ export declare class NgProbeToken {
|
|||
constructor(name: string, token: any);
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
/** @stable */
|
||||
export declare const platformBrowser: (extraProviders?: any[]) => PlatformRef;
|
||||
|
||||
/** @experimental */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/** @experimental */
|
||||
/** @stable */
|
||||
export declare class BrowserTestingModule {
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
/** @stable */
|
||||
export declare const platformBrowserTesting: (extraProviders?: any[]) => PlatformRef;
|
||||
|
|
Loading…
Reference in New Issue