10.2/11 Dislikes


#1

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

{{product.dislikes}}

so here i is my code. It will not run, and the error is not helpful in allowing me to diagnose the problem myself. I was wondering if there was anyone out there who could help me out. Thanks so much!


#4

I feel like I'm going crazy!!!


#5

Hi Lbarbul1,

This exercise is really tricky! It got me too :)
You're increasing the number of dislikes, so even though it doesn't look right at first, you need to use:

$scope.products[index].dislikes += 1;
                             /* ↑ increasing the number */

#7