• Overview
@angular/core

REQUEST_CONTEXT

constant
stable

Injection token for additional request context.

API

    
      const REQUEST_CONTEXT: InjectionToken<unknown>;
    
    

Description

Injection token for additional request context.

Use this token to pass custom metadata or context related to the current request in server-side rendering.

Usage Notes

This token is only available during server-side rendering and will be null in other contexts.

Jump to details