Mayank Bhushan

Mayank Bhushan

  • NA
  • 40
  • 3.3k

How to get index value from div angucomplete in angular js.

Jun 8 2018 9:12 AM
<div angucomplete-alt id="ex5" placeholder="Search By Food Items" pause="100"
selected-object="SelectedItems" ng-model="items.itemSelected" local-data="arrItems" search-fields="ItemsName"
title-field="ItemsName" minlength="1" input-class="form-control" match-class="highlight" ng-required="true" input-changed="inputChanged" auto-match="true" ng-value="{{$index}}" ng-click="getMonthId($index)">
<input id='x' type='hidden' name='token' ng-model='items.token' value='{{$index++}}' />
</div>

Answers (3)