Which module should you import to use the HttpClient in an Angular application?

  • @angular/common/http
  • @angular/core
  • @angular/forms
  • @angular/router
To use the HttpClient in an Angular application, you should import the @angular/common/http module. This module provides the HttpClient service for making HTTP requests.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *