A technique of getting data from a an API is to declare it like this in the service:
getItems$ = this.httpClient.get<Item[]>(this.url);
then either subscribe to it or utilize async in the consuming component.
How would you do this if the get call requires parameters like get by id?
EDIT: The above is an example of a declarative approach to working with RxJS streams. The getItems$ is a property.
So the question is, when using a declarative approach with a property defining the stream instead of calling a getItems(itemId) method, how to you pass in parameters?