mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
TransferState provides a shared store that is transferred from the server to client. To use it import BrowserTransferStateModule from the client app module and ServerTransferStateModule from the server app module and TransferState will be available as an Injectable object. PR Close #19134
49 lines
1.2 KiB
TypeScript
49 lines
1.2 KiB
TypeScript
/** @experimental */
|
|
export declare const BEFORE_APP_SERIALIZED: InjectionToken<(() => void)[]>;
|
|
|
|
/** @experimental */
|
|
export declare const INITIAL_CONFIG: InjectionToken<PlatformConfig>;
|
|
|
|
/** @experimental */
|
|
export interface PlatformConfig {
|
|
document?: string;
|
|
url?: string;
|
|
}
|
|
|
|
/** @experimental */
|
|
export declare const platformDynamicServer: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
|
|
|
/** @experimental */
|
|
export declare const platformServer: (extraProviders?: StaticProvider[] | undefined) => PlatformRef;
|
|
|
|
/** @experimental */
|
|
export declare class PlatformState {
|
|
constructor(_doc: any);
|
|
getDocument(): any;
|
|
renderToString(): string;
|
|
}
|
|
|
|
/** @experimental */
|
|
export declare function renderModule<T>(module: Type<T>, options: {
|
|
document?: string;
|
|
url?: string;
|
|
extraProviders?: StaticProvider[];
|
|
}): Promise<string>;
|
|
|
|
/** @experimental */
|
|
export declare function renderModuleFactory<T>(moduleFactory: NgModuleFactory<T>, options: {
|
|
document?: string;
|
|
url?: string;
|
|
extraProviders?: StaticProvider[];
|
|
}): Promise<string>;
|
|
|
|
/** @experimental */
|
|
export declare class ServerModule {
|
|
}
|
|
|
|
/** @experimental */
|
|
export declare class ServerTransferStateModule {
|
|
}
|
|
|
|
/** @stable */
|
|
export declare const VERSION: Version;
|