2021-06-28 19:54:20 +02:00
|
|
|
## API Report File for "@angular/platform-server"
|
|
|
|
|
|
|
|
|
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
|
|
|
|
|
|
|
|
```ts
|
|
|
|
|
|
2023-02-28 11:43:35 +00:00
|
|
|
import { ApplicationRef } from '@angular/core';
|
2022-10-05 12:14:41 -07:00
|
|
|
import { EnvironmentProviders } from '@angular/core';
|
2021-09-19 20:38:34 +02:00
|
|
|
import * as i0 from '@angular/core';
|
|
|
|
|
import * as i1 from '@angular/common/http';
|
|
|
|
|
import * as i2 from '@angular/platform-browser/animations';
|
|
|
|
|
import * as i3 from '@angular/platform-browser';
|
2021-06-28 19:54:20 +02:00
|
|
|
import { InjectionToken } from '@angular/core';
|
|
|
|
|
import { PlatformRef } from '@angular/core';
|
2022-04-26 19:34:19 -07:00
|
|
|
import { Provider } from '@angular/core';
|
2021-06-28 19:54:20 +02:00
|
|
|
import { StaticProvider } from '@angular/core';
|
|
|
|
|
import { Type } from '@angular/core';
|
|
|
|
|
import { Version } from '@angular/core';
|
|
|
|
|
|
|
|
|
|
// @public
|
|
|
|
|
export const BEFORE_APP_SERIALIZED: InjectionToken<(() => void | Promise<void>)[]>;
|
|
|
|
|
|
|
|
|
|
// @public
|
|
|
|
|
export const INITIAL_CONFIG: InjectionToken<PlatformConfig>;
|
|
|
|
|
|
|
|
|
|
// @public
|
|
|
|
|
export interface PlatformConfig {
|
2023-03-23 11:37:42 +00:00
|
|
|
// @deprecated
|
2021-06-28 19:54:20 +02:00
|
|
|
baseUrl?: string;
|
|
|
|
|
document?: string;
|
|
|
|
|
url?: string;
|
2023-03-23 11:37:42 +00:00
|
|
|
// @deprecated
|
2021-06-28 19:54:20 +02:00
|
|
|
useAbsoluteUrl?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @public
|
|
|
|
|
export const platformDynamicServer: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
|
|
|
|
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
export const platformServer: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
|
|
|
|
|
|
|
|
|
// @public
|
|
|
|
|
export class PlatformState {
|
|
|
|
|
constructor(_doc: any);
|
|
|
|
|
getDocument(): any;
|
|
|
|
|
renderToString(): string;
|
2021-09-19 20:38:34 +02:00
|
|
|
// (undocumented)
|
|
|
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformState, never>;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
static ɵprov: i0.ɵɵInjectableDeclaration<PlatformState>;
|
2021-06-28 19:54:20 +02:00
|
|
|
}
|
|
|
|
|
|
2023-03-09 14:11:40 +00:00
|
|
|
// @public
|
2023-04-03 15:02:23 +00:00
|
|
|
export function provideServerRendering(): EnvironmentProviders;
|
2023-03-09 14:11:40 +00:00
|
|
|
|
2023-02-28 11:43:35 +00:00
|
|
|
// @public
|
|
|
|
|
export function renderApplication<T>(bootstrap: () => Promise<ApplicationRef>, options: {
|
|
|
|
|
document?: string | Document;
|
|
|
|
|
url?: string;
|
|
|
|
|
platformProviders?: Provider[];
|
|
|
|
|
}): Promise<string>;
|
|
|
|
|
|
2021-06-28 19:54:20 +02:00
|
|
|
// @public
|
2022-08-09 17:25:23 -07:00
|
|
|
export function renderModule<T>(moduleType: Type<T>, options: {
|
2022-08-03 14:19:40 -07:00
|
|
|
document?: string | Document;
|
2021-06-28 19:54:20 +02:00
|
|
|
url?: string;
|
|
|
|
|
extraProviders?: StaticProvider[];
|
|
|
|
|
}): Promise<string>;
|
|
|
|
|
|
|
|
|
|
// @public
|
|
|
|
|
export class ServerModule {
|
2021-09-19 20:38:34 +02:00
|
|
|
// (undocumented)
|
|
|
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<ServerModule, never>;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
static ɵinj: i0.ɵɵInjectorDeclaration<ServerModule>;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
static ɵmod: i0.ɵɵNgModuleDeclaration<ServerModule, never, [typeof i1.HttpClientModule, typeof i2.NoopAnimationsModule], [typeof i3.BrowserModule]>;
|
2021-06-28 19:54:20 +02:00
|
|
|
}
|
|
|
|
|
|
2022-07-19 18:38:46 -07:00
|
|
|
// @public @deprecated
|
2021-06-28 19:54:20 +02:00
|
|
|
export class ServerTransferStateModule {
|
2021-09-19 20:38:34 +02:00
|
|
|
// (undocumented)
|
|
|
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<ServerTransferStateModule, never>;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
static ɵinj: i0.ɵɵInjectorDeclaration<ServerTransferStateModule>;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
static ɵmod: i0.ɵɵNgModuleDeclaration<ServerTransferStateModule, never, never, never>;
|
2021-06-28 19:54:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
export const VERSION: Version;
|
|
|
|
|
|
|
|
|
|
// (No @packageDocumentation comment for this package)
|
|
|
|
|
|
|
|
|
|
```
|