step-1: Increasing the Todo value with each click on the corresponding todo:
<li class="list-group-item" ng-repeat="todo in todos">
<span ng-click="count = count + 1" ng-init="count=0"> value= {{count}} </span>
</li>
step-2: How can I access 'count' and the todo's 'id' in my function on each click?
Question (issue here)
my attempt at code (I am aware it is incorrect)
<li class="list-group-item" ng-repeat="todo in todos">
<span ng-click="addLike(todo._id) (count = count + 1)" ng-init="count=0"> value= {{count}} </span>
</li>
function TodoCtrl($scope) {
$scope.todos = [
{text:'todo one'},
{text:'todo two', done:false}
]
};