Coding task · Angular course · Module 9: HttpClient
Practice: Query params and Headers
HttpParams builds the query string, and the headers are assembled by a class from the same package (both are immutable: set() returns a new object). Both sets go into the options object, which is the second argument of get(), because a GET has no body. When an object field and a variable share the same name, writing it once is enough.
Task
Complete the search method so that it sends the query parameters (q, page) and a custom header.