When working with Angular 4.2, I used the Http service and made use of the get method by passing in a URLSearchParams object as the search parameter:
this.http.get(url, {headers: this.setHeaders(), search: params})
Now I am looking to upgrade to Angular 5 where http has been replaced by HttpClient as recommended by the Angular team. However, I encountered an error related to the 'search' key.
Can you provide guidance on how to migrate from Http to HttpClient service in my specific scenario?
Appreciate your assistance.