• Overview
@angular/ssr

AngularAppEngine

Class

Angular server application engine. Manages Angular server applications (including localized ones), handles rendering requests, and optionally transforms index HTML before rendering.

  
    class AngularAppEngine {}
  
  

handle

Promise<Response | null>

Handles an incoming HTTP request by serving prerendered content, performing server-side rendering, or delivering a static file for client-side rendered routes based on the RenderMode setting.

@paramrequestRequest
  • The HTTP request to handle.
@paramrequestContextunknown
  • Optional context for rendering, such as metadata associated with the request.
@returnsPromise<Response | null>
Usage notes

A request to https://www.example.com/page/index.html will serve or render the Angular route corresponding to https://www.example.com/page.

Jump to details