I have select element which should list available currencies. Default currency should have prefix "Default" before its name. For some reason, that prefix is showing for all currencies in the list.
Test HTML:
<div ng-app="testApp">
<div ng-controller="MainCtrl">
<select>
<option ng-repeat="rate in rates track by $index">
<span ng-if="rate.is_default">Default</span>
<span>{{rate.name}}</span>
</option>
</select>
</div>
</div>
TEST JS:
var app = angular.module("testApp", []);
app.controller("MainCtrl", function($scope){
$scope.rates = [
{ 'name': 'dolar', 'is_default': true},
{ 'name': 'pound', 'is_default': false},
{ 'name': 'euro', 'is_default': false}
];
});