Created
July 19, 2017 12:32
-
-
Save NishiGaba/14ba9cfc5599399a5a82ed0a0df4120b to your computer and use it in GitHub Desktop.
Return original index in an ng-repeat through indexOf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//indexOf always returns the original index in an ng-repeat | |
<div ng-repeat="image in images"> | |
{{images.indexOf(image)}} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment