I have a dependent dropdown I select a country. I need to be marked by default "manizales" if Colombia is selected and "Chicago" is marked if United States is selected (USA). I have tried many things, but do not know how to mark the first time a default option.
<select id="country" ng-model="selectedCountry" ng-options="country.id as country.name for country in countries track by country.id">
<option value="">Choose</option>
</select>Departement:
<select id="state"
ng-model="selectedState" ng-options="state.id as state.dep for state in ((countries | filter:{'id':selectedCountry})[0].states) track by state.id">
<option value="">Choose</option>
</select>
maybe I did not understand me. I need a country when the first dropdown is loaded appears, for example Colombia, and that once this marked by "manizales" defect