I'm trying to catch any changes in the select tag and activate a function if an option is selected.
html code:
<select [(ngModel)]="newProcurement.supplierNumber">
<option (change)="findSupplierByNumber($event)" *ngFor="let supplier of
allSuppliers" value="{{supplier.suplierName}}">{{supplier.suplierName}}
</option>
</select>
I'm trying to select a supplier and activate this function:
findSupplierByNumber(ev){
debugger;
console.log(ev.target.value)
}
function hasn't been activated for some reason , any suggestions ?