Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

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()]
});