What method of HttpClient would you use to send a GET request?
- delete()
- get()
- post()
- put()
To send a GET request using HttpClient, you would use the get() method. This method is used to perform HTTP GET requests to retrieve data from a specified URL.
Loading...
Related Quiz
- When creating a custom attribute directive, which decorator is used to define its metadata?
- Your application has a module that is loaded lazily, and you want to ensure that this module is only loaded for administrators. How would you implement this restriction?
- During testing, you notice that a component's view is not updating after changing a property. What might you consider doing to address this?
- You've been tasked with implementing a feature where a form field should be conditionally required based on the value of another field. Which approach would you take in Angular's Reactive Forms?
- How does Akita differ in its approach to state management compared to NgRx?