Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <select ng-options="item as value.name for (key, value) in countries track by key" ng-model="selected" >
- </select>
- $scope.countries = {
- "AFG":{"name":"Afghanistan"},
- "ALB":{"name":"Albania"}};
- $scope.countriesKeys=Object.keys($scope.countries);
- $scope.selected=????;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement