Is possible to reach variable outside the ng-repeat scope?
jsfiddle: http://jsfiddle.net/zcbhubrw/
Here is the code:
HTML
You can create function in the controller to set the count or refer the parent scope from inside the ng-repeat
ng-click="$parent.count = $index"
using parent scope using function
using parent scope
using function