I have the following select:
<select class="form-control" id="selSigningAuthorityDisplayName"
ng-model="selectedUser.SigningAuthority"
ng-options="signingAuthority as signingAuthority.SigningAuthorityDisplayName for signingAuthority in signingAuthorityList track by signingAuthority.SigningAuthoritySystemName">
</select>
This works perfectly when I'm editing an existing user profile and the selectedUser.SigningAuthority
object is populated. The drop down defaults to the value of SigningAuthority
as expected. But when I try to add a new user profile and selectedUser.SigingingAuthority
is null
I want the drop down list to default to a specific value. How do I tell angular to select a specific default value when selectedUser.SigningAuthority
is null?