I am new is angularjs and i am trying to get the index value in ng-repeat means i want to set md-option value as index value my code is:
<md-input-container class="md-block" flex-gt-sm>
<label>Filterable Columns</label>
<md-select ng-model="visualization.filterable_columns" ng-change="drawFilters()" multiple="true" ng-init="index = 1">
<md-option ng-repeat="filterable_column in vm.filterable_columns" value="{{index++}}">
{{filterable_column.label}
</md-option>
</md-select>
</md-input-container>
can anyone help me about this?
$indexmay not be advisable, q.v. here.$indexissue may not be, here