• Overview
@angular/ssr

provideServerRouting

function

Sets up the necessary providers for configuring server routes. This function accepts an array of server routes and optional configuration options, returning an EnvironmentProviders object that encapsulates the server routes and configuration settings.

API

  
    function provideServerRouting(  routes: ServerRoute[],  ...features: ServerRoutesFeature<ServerRoutesFeatureKind>[]): EnvironmentProviders;
  
  

provideServerRouting

Sets up the necessary providers for configuring server routes. This function accepts an array of server routes and optional configuration options, returning an EnvironmentProviders object that encapsulates the server routes and configuration settings.

@paramroutesServerRoute[]
  • An array of server routes to be provided.
@paramfeaturesServerRoutesFeature<ServerRoutesFeatureKind>[]
  • (Optional) server routes features.
Jump to details