provideServerRendering
function
stable
Sets up providers necessary to enable server rendering functionality for the application.
API
function provideServerRendering(
options?: { maxResponseBodySize: number } | undefined,
): EnvironmentProviders;@paramoptions
{ maxResponseBodySize: number; } | undefinedAn object to configure the server providers. Currently supports the following options:
maxResponseBodySize: The maximum allowed response body size when using the Fetch API.
Usage Notes
Basic example of how you can add server support to your application:
bootstrapApplication(AppComponent, {
providers: [provideServerRendering()]
});
Jump to details