I need to pass object to the function when I change option in select.
<select (change)="addToVisibility('type',$event.target.value)">
<option *ngFor="let type of selectedTypes" [ngValue]="type">
{{type.title}}
</option>
</select>
I try like this, but always in function pass type.title, but i need to pass type. Please help me) P.S. Sorry for my bad English