My app is running in almost all browsers but when I use ie8 Expected Identifier happened.
$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 where ie8's console direct me when the error shows.
I don't know what's wrong with this.
Thanks!