provideServerRendering
Sets up providers necessary to enable server rendering functionality for the application.
provideServerRendering(): EnvironmentProviders
Parameters
There are no parameters.
Returns
EnvironmentProviders
: A set of providers to setup the server.
Usage notes
Basic example of how you can add server support to your application:
bootstrapApplication(AppComponent, {
providers: [provideServerRendering()]
});