SyntaxFix
Write A Post
Hire A Developer
Questions
This should work
<option *ngFor="let title of titleArray" [value]="title.Value" [attr.selected]="passenger.Title==title.Text ? true : null"> {{title.Text}} </option>
I'm not sure the attr. part is necessary.
attr.