Created
October 24, 2013 10:59
-
-
Save simkimsia/7135133 to your computer and use it in GitHub Desktop.
how to use $index in ng-repeat
This file contains hidden or 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
| <div ng-repeat='item in my_works.items'> | |
| <!-- if index mod 3 == 0 show <div>--> | |
| <!-- if index mod 3 == 2 show </div>--> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment