Your First APP 10/11


On the

element, make sure to use ng-click to call the minusOne() function.

Everything is set, but I still get the same error.

 $scope.minusOne = function(index) {
    $scope.products[index].dislikes -= 1;
  $scope.plusOne = function(index) { 
  	$scope.products[index].likes += 1; 

 <p class="dislikes" ng-click="minusOne($index)">



It should be +=1.

So that it counts upward. Your minus ( - ) sign in view will help display it as a dislike to your user.


Thank you!
i tried everything, but did not tink of that!!


You're welcome, @jfsene .

Have fun coding! :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.