-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Migrate HttpClientModule to provideHttpClient with ng g @angular/core:standalone #48948
Copy link
Copy link
Closed
Closed
Copy link
Labels
area: common/httpIssues related to HTTP and HTTP ClientIssues related to HTTP and HTTP Clientarea: migrationsIssues related to `ng update`/`ng generate` migrationsIssues related to `ng update`/`ng generate` migrationscross-cutting: standaloneIssues related to the NgModule-less worldIssues related to the NgModule-less world
Milestone
Description
Which @angular/* package(s) are relevant/related to the feature request?
core
Description
Currently, a module importing HttpClientModule is migrated to importProvidersFrom(HttpClientModule).
Proposed solution
It would be nice to migrate it to provideHttpClient(), and, ideally, to add withInterceptorsFromDi() if class-based interceptors are registered
Alternatives considered
Manually migrate the importProvidersFrom(HttpClientModule) to provideHttpClient()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: common/httpIssues related to HTTP and HTTP ClientIssues related to HTTP and HTTP Clientarea: migrationsIssues related to `ng update`/`ng generate` migrationsIssues related to `ng update`/`ng generate` migrationscross-cutting: standaloneIssues related to the NgModule-less worldIssues related to the NgModule-less world