HttpClientModule • Angular 日本語版
NgModule
deprecated
Configures the dependency injector for HttpClient
with supporting services for XSRF. Automatically imported by HttpClientModule.
Deprecation warning
use provideHttpClient(withInterceptorsFromDi()) as providers instead
API
class HttpClientModule {}
Description
Configures the dependency injector for HttpClient
with supporting services for XSRF. Automatically imported by HttpClientModule.
You can add interceptors to the chain behind HttpClient by binding them to the
multiprovider for built-in DI token HTTP_INTERCEPTORS.