Coding task · Angular course · Module 9: HttpClient
Practice: Fetching Data
Angular's HTTP client is injected with inject() and imported from @angular/common/http. Its methods return an Observable, and the response type goes in angle brackets before the URL. The request only leaves when someone subscribes.
Task
Complete the service that fetches a list of samurai from the API.