I need to make an app that lets the user select their country then based on that select their city. I have a list of countries and cities. Once the user selects their country they can select their city and it works but for some contries containing over 1000 city options the select takes a very long time to load and the browser freezes completely.
Are there any solutions? Here is the template
<select name="country" formControlName="country">
<option *ngFor="let country of countries" value="{{ country.ISOCode }}">
{{ country.Name }}
</option>
</select>
<br />
<label for="city">City of Birth</label>
<select name="city" formControlName="city">
<option *ngFor="let city of cities" value="{{ city.Name }}">
{{ city.Name }}
</option>
</select>```