I have an array
$scope.items= [
{ name: "Name1", email: "email1", password: "pas1" },
{ name: "Name2", email: "email2", password: "pas2" }
];
I want to display email value in a select tag. I am using following code but its not working. I want first item as 'Select' :
<select id="idItem">
<option value="-1" selected="selected">Select</option>
<option ng-repeat="o.email as o.email for o in items" value="{{o.email}}"> {{o.email}}
</option>
</select>
Also user can select multiple items. When user selects multiple emails from select box, message box should popup displaying Name and password of selected users.
o.email for o in itemsthis could be your ng-repeat. And you don't need to add extra option tag for showing select, you can use a placeholder