When clicking on the button below i pass the persons id through the URL but i also would like to pass a reference to the array being clicked ( in other words a index of which position it has ). How to i pass this variable to the next html page?
<div ng-repeat="x in person.test2">
<div ng-show="{{ x }}.length <= 3">
<p>{{ x }}</p>
<a href="/andring/{{ person._id }}">
<button type="button" class="btn btn-primary">Edit</button>
</a>
</div>
</div>