How can I set the default value for an HTML element in angular2? The simplest way to go would be my following attempt. This does not work yet, could somebody help me please?
// extract from template
<div class="form-group">
<label for="status">Status: </label>
<select class="form-control" name="status" #status="ngModel" [(ngModel)]="statusValueToSet" required>
<option selected disabled>Choose here</option>
<option *ngFor="let status of statuses" [value]="status">{{status}}
</option>
</select>
</div>
// in the component class
statuses:string[] = ["New", "Accepted", "Invalid"];
statusValueToSetbeforehand not help?