I am using track by to avoid strange values ::string that are appending to value but when i select by default dropdown , dropdown is not g
(function(angular) {
'use strict';
angular.module('defaultValueSelect', [])
.controller('ExampleController', ['$scope', function($scope) {
$scope.data = {
availableOptions: [
{id: '1', name: 'Option A'},
{id: '2', name: 'Option B'},
{id: '3', name: 'Option C'}
],
selectedOption: '2' //This sets the default value of the select in the ui
};
}]);
})(window.angular);
Example - example-select-with-default-values-production
option = {{data.selectedOption}}
Working snippet of your demo
Please change your tag as follows