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
track by
::string
value
This will work:
$scope.data = { availableOptions: [ {id: 1, name: 'Option A'}, {id: 2, name: 'Option B'}, {id: 3, name: 'Option C'} ], selectedOption: {id: 2, name: 'Option B'} };
http://plnkr.co/edit/yOPa3hb2nSgkpOfu8NbT?p=preview