The vast majority of web applications nowadays use XMLHttpRequest (XHR) requests, and applications made with Angular are no different. For that, we have the HTTPClient module that replaced the old HTTP module in previous versions.
In this session, we will understand how to use XHR requests inside our Angular services.
It is highly recommended that you use Angular services to handle requests of this type so that the code of the component is more organized and easy to maintain.
You can read more about XHR requests at https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest.