My application runs smoothly on most browsers, but I encounter an issue with IE8 where an Expected Identifier error occurs.
$scope.delete = function (index) {
$scope.recipelists.splice(index, 1);
localStorage.setItem('markedRecipes', JSON.stringify($scope.recipelists))
if ($scope.recipelists == 0) {
$modalInstance.dismiss('cancel');
}
}
This is the specific location that IE8's console indicates when the error appears.
I am unsure of what is causing this problem.
Thank you for your help!