I am trying to get the index of the selected item from an ng-options list. I have it in a model but it does not seem to work, I'm unsure what I am doing wrong here.
So I have the ng-options here -
<select class="select" ng-model="level.Selection" ng-options="data for data in dataHere track by data.id"></select>
which is bound a model, so right below it, I'm just trying to spit out he index of the selected item like so:
<p class="text-left">{{level.Selection.$index}}</p>
Can't seem to figuire out what I am doing wrong here. Thanks!!