• 개요
@angular/common/http

withInterceptorsFromDi

함수

Includes class-based interceptors configured using a multi-provider in the current injector into the configured HttpClient instance.

API

function withInterceptorsFromDi(): HttpFeature<HttpFeatureKind.LegacyInterceptors>;

설명

Includes class-based interceptors configured using a multi-provider in the current injector into the configured HttpClient instance.

Prefer withInterceptors and functional interceptors instead, as support for DI-provided interceptors may be phased out in a later release.

상세 내용으로 이동