• 개요
@angular/core

REQUEST

상수
안정화

Injection token representing the current HTTP request object.

API

    
      const REQUEST: InjectionToken<Request | null>;
    
    

설명

Injection token representing the current HTTP request object.

Use this token to access the current request when handling server-side rendering (SSR).

사용 시 참고사항

This token may be null in the following scenarios:

  • During the build processes.
  • When the application is rendered in the browser (client-side rendering).
  • When performing static site generation (SSG).
  • During route extraction in development (at the time of the request).
상세 내용으로 이동