After reviewing the content on the official document at https://material.angular.io/components/autocomplete/examples
I have implemented Autocomplete in my code based on the example provided. However, I need additional functionality beyond simple integration. For instance, I need to implement autocomplete for country, state, and city, where selecting a country will dynamically change the options available for states, and selecting a state will do the same for cities.
Another concern I have is related to scalability - if my page contains multiple autocomplete fields, would I need to individually create filter functions for each one? Ideally, I would like to develop a generic solution that can be applied to all autocomplete components.
Your suggestions on how to approach these challenges would be greatly appreciated. Thank you.