I have the following HTML which 2-way binds the option text to the newNumber instance variable.
<select id="inputState" [(ngModel)]="newNumber" name="newNumber" class="form-control">
<option data-value-x="192" data-value-y="108" selected="selected"> First</option>
<option data-value-x="128" data-value-y="72">Second </option>
<option data-value-x="108" data-value-y="108">Third </option>
<option data-value-x="72" data-value-y="72">Forth</option>
</select>
I would like to access data-value-x and data-value-y for the selected option. This can I do that the Angular way?