docs: update platform-browser-dynamic to use `@publicApi` tags (#26595)
PR Close #26595
This commit is contained in:
parent
3511f08a81
commit
f1e3d5125d
|
@ -23,5 +23,8 @@ export {JitCompilerFactory} from './compiler_factory';
|
||||||
export const RESOURCE_CACHE_PROVIDER: Provider[] =
|
export const RESOURCE_CACHE_PROVIDER: Provider[] =
|
||||||
[{provide: ResourceLoader, useClass: CachedResourceLoader, deps: []}];
|
[{provide: ResourceLoader, useClass: CachedResourceLoader, deps: []}];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @publicApi
|
||||||
|
*/
|
||||||
export const platformBrowserDynamic = createPlatformFactory(
|
export const platformBrowserDynamic = createPlatformFactory(
|
||||||
platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
|
platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
|
||||||
|
|
|
@ -14,6 +14,9 @@ import {ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS as INTERNAL_BROWSER_PLATFORM_PROVI
|
||||||
|
|
||||||
import {ResourceLoaderImpl} from './resource_loader/resource_loader_impl';
|
import {ResourceLoaderImpl} from './resource_loader/resource_loader_impl';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @publicApi
|
||||||
|
*/
|
||||||
export const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[] = [
|
export const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[] = [
|
||||||
INTERNAL_BROWSER_PLATFORM_PROVIDERS,
|
INTERNAL_BROWSER_PLATFORM_PROVIDERS,
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,6 +15,8 @@ import {ɵglobal as global} from '@angular/core';
|
||||||
*
|
*
|
||||||
* The template cache needs to be built and loaded into window.$templateCache
|
* The template cache needs to be built and loaded into window.$templateCache
|
||||||
* via a separate mechanism.
|
* via a separate mechanism.
|
||||||
|
*
|
||||||
|
* @publicApi
|
||||||
*/
|
*/
|
||||||
export class CachedResourceLoader extends ResourceLoader {
|
export class CachedResourceLoader extends ResourceLoader {
|
||||||
private _cache: {[url: string]: string};
|
private _cache: {[url: string]: string};
|
||||||
|
|
|
@ -14,4 +14,7 @@
|
||||||
|
|
||||||
import {Version} from '@angular/core';
|
import {Version} from '@angular/core';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @publicApi
|
||||||
|
*/
|
||||||
export const VERSION = new Version('0.0.0-PLACEHOLDER');
|
export const VERSION = new Version('0.0.0-PLACEHOLDER');
|
||||||
|
|
|
@ -16,6 +16,9 @@ import {platformCoreDynamicTesting} from './platform_core_dynamic_testing';
|
||||||
|
|
||||||
export * from './private_export_testing';
|
export * from './private_export_testing';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @publicApi
|
||||||
|
*/
|
||||||
export const platformBrowserDynamicTesting = createPlatformFactory(
|
export const platformBrowserDynamicTesting = createPlatformFactory(
|
||||||
platformCoreDynamicTesting, 'browserDynamicTesting',
|
platformCoreDynamicTesting, 'browserDynamicTesting',
|
||||||
INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
|
INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
|
||||||
|
@ -23,7 +26,7 @@ export const platformBrowserDynamicTesting = createPlatformFactory(
|
||||||
/**
|
/**
|
||||||
* NgModule for testing.
|
* NgModule for testing.
|
||||||
*
|
*
|
||||||
*
|
* @publicApi
|
||||||
*/
|
*/
|
||||||
@NgModule({
|
@NgModule({
|
||||||
exports: [BrowserTestingModule],
|
exports: [BrowserTestingModule],
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
/** @experimental */
|
|
||||||
export declare class JitCompilerFactory implements CompilerFactory {
|
export declare class JitCompilerFactory implements CompilerFactory {
|
||||||
createCompiler(options?: CompilerOptions[]): Compiler;
|
createCompiler(options?: CompilerOptions[]): Compiler;
|
||||||
}
|
}
|
||||||
|
|
||||||
export declare const platformBrowserDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
export declare const platformBrowserDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
||||||
|
|
||||||
/** @experimental */
|
|
||||||
export declare const RESOURCE_CACHE_PROVIDER: Provider[];
|
export declare const RESOURCE_CACHE_PROVIDER: Provider[];
|
||||||
|
|
||||||
export declare const VERSION: Version;
|
export declare const VERSION: Version;
|
||||||
|
|
Loading…
Reference in New Issue