step-1- Todo value will increase every click on correspond 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 get 'count' and todo 'id' into my function on each click
Question (problem here)
my code (I know its wrong)
<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}
]
};