I have an array
$scope.items= [
{ name: "Jon Snow", email: "jon@example.com", password: "WinterIsComing" },
{ name: "Daenerys Targaryen", email: "daenerys@example.com", password: "FireAndBlood" }
];
Now, I am trying to show the email value in a dropdown menu. However, my current code is not functioning as expected. Ideally, I would like the first option to display '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>
Additionally, the user should be able to select multiple items from the dropdown menu. Upon selecting multiple emails, a confirmation box should appear showing the Name and password of the chosen users.