Inflearn コミュニティ Q&A
삭제코드 잘못된거같네요.
作成
·
285
6
return item.id === todo.id 부분 잘못됬어요.
$scope.remove = function(todo) {
var idx = $scope.todos.findIndex(function(item) {
return item.title === todo.title;
})
if(idx > -1) {
$scope.todos.splice(idx, 1);
}
}
Angular





