I created an AngularJS select menu that is currently functioning correctly:
<select
name="s1"
id="s1"
multiple="multiple"
data-native-menu="false"
data-role="none"
ng-model="userlistSelect"
ng-options="u.userId as u.firstName for u in member.getList()">
</select>
Here is my controller code:
$scope.member = items;
Is there a way to handle the situation where if firstName
is not available, then display emailID
instead?