I am trying to add the plusOne function exactly as it was given but get an error. Any ideas? Here is what I have in MainController.js:
$scope.plus.One = function(index) {
$scope.products[index].likes += 1;
};
I am trying to add the plusOne function exactly as it was given but get an error. Any ideas? Here is what I have in MainController.js:
$scope.plus.One = function(index) {
$scope.products[index].likes += 1;
};
You have ‘$scope.plus.One’; it should be ‘$scope.plusOne’