How can I properly refresh a component's display in ng2 based on dropdown selection? Within my application, there is a users.component and a users.service responsible for searching for users based on a provided request object.
Within the users component html template, we have a Region dropdown. When a site user selects a region from the dropdown, the component should display a list of users belonging to that selected region.
What is the correct method for passing the request object to the users.service? The users.service should not create the request object but rather accept it. In traditional JavaScript, I would typically bind to the click event of the dropdown to call a function like refreshDisplay(), which then retrieves the selected value, constructs a request object, and initiates an AJAX call using the request object.