Created
February 4, 2014 01:56
-
-
Save kazuph/8796156 to your computer and use it in GitHub Desktop.
子のng-repeatで親のng-repeatのindexを参照したい ref: http://qiita.com/kazuph/items/e625be063feb6b462af0
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
<div ng-repeat="(fIndex, f) in foos"> | |
<div> | |
<div ng-repeat="b in foos.bars"> | |
<a ng-click="addSomething(fIndex)">Add Something</a> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment