I've something like below. I am binding countries to a dropdown.
I selected Country value India
. But below switch default is calling.
<select class="form-control" data-ng-model="selectedCountry" data-ng-options="country as country.name for country in countries">
<option value="">Select Country</option>
</select>
-
<div class="animate-switch-container" data-ng-switch on="{{selectedCountry.name}}">
<div class="animate-switch" data-ng-switch-when="USA">
USA
</div>
<div class="animate-switch" data-ng-switch-when="India">
India
</div>
<div class="animate-switch" data-ng-switch-default>
Other Country
</div>
I also tried with data-ng-switch-when="'India'"
Any solution please?