Adding parameter to ng-click function inside ng-repeat doesn’t seem to work
I have a simple loop with ng-repeat like this: <li ng-repeat=”task in tasks”> <p> {{task.name}} <button ng-click=”removeTask({{task.id}})”>remove</button> </li> There is a function in the controller $scope.removeTask(taskID). As far as I know Angular will first render the view and replace interpolated {{task.id}} with a number, and then, on click event, will evaluate ng-click string. In this … Read more