I have this page html
<div class="row">
<div class="col s12 m6">
<div class="card">
<div class="card-content black-text">
<h6><strong>Server</strong></h6>
<select id="serverSelectServer" [(ngModel)]="opcionSeleccionado" (change)="onSelectServer()">
<option value="All">All servers</option>
<option *ngFor="let xserver of serversCodifiers" value="{{ xserver.name }}">{{ xserver.name }}</option>
</select>
</div>
</div>
</div>
And this is the component.ts
onSelectServer(){
console.log("changed");
}
My problem is that I need to get the value of what is selected in the select, but for some strange reason the event does not run. I would greatly appreciate your help, thank you very much in advance