andriangungon
9/12/2018 - 3:08 AM

select option selected

ticketStatus = ['new', 'in progress', 'reopened', 'resolved'];
<select class="form-control" [(ngModel)]="ticket.status" class="form-control form-control-sm">
                      <option *ngFor="let stat of status" [ngValue]="stat" [selected]="stat === ticket.status">{{ stat|titlecase }}</option>                  
                    </select>