What is the proper way for binding data to cascade dropdown / autocomplete lists in Angular?
- 阅读更多 关于 What is the proper way for binding data to cascade dropdown / autocomplete lists in Angular?
问题 I use mat-autocomplete in several places in my project and fille them as shwon below on form loading: countries: CountryDto[] = []; cities: CityDto[] = []; getCountries() { this.demoService.getCountries().subscribe((list: CountryDto) => { this.countries = list; }); } getCities(countryId) { this.demoService.getCities(countryId).subscribe((list: CityDto) => { this.cities= list; }); } However, when I tried to use a second list as cascade, I cannot make the second one to fill according to the