struggling a bit to get selected value from drop down.
As it is at the moment a value of undefinedis returned.
How can i get this selected value(opl.Opl_Id) in Angular 2?
<form class="form-inline" novalidate>
<select class="form-control" (change)="onChange(opl)">
<option [selected] = "opl.OplDescription == selectedOpl" *ngFor="let opl of existingOpls" [ngValue]="opl.Opl_Id">{{opl.OplDescription}}</option>
</select
//component
onChange(value) {
console.log(value);
}