Skip to content

Instantly share code, notes, and snippets.

@kazuph
Created February 4, 2014 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazuph/8796156 to your computer and use it in GitHub Desktop.
Save kazuph/8796156 to your computer and use it in GitHub Desktop.
子のng-repeatで親のng-repeatのindexを参照したい ref: http://qiita.com/kazuph/items/e625be063feb6b462af0
<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