-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[나무] TodoList CRUD #23
Conversation
- 파일 끝 endline 추가 https://blog.coderifleman.com/2015/04/04/text-files-end-with-a-newline/ - 불필요 코드 삭제 - let -> const
- 지난 피드백 적용하면서 수정 덜된부분 수정 - TodoCount에서는 count만 받도록 수정
- handle conflict
js/TodoList.js
Outdated
@@ -58,7 +60,7 @@ function TodoList($todoList, data, removeItem){ | |||
this.render = () => { | |||
let result = '' | |||
this.data.map(({ text }, index) => { | |||
result += `<li class="todo-item" data-index="${index}"> | |||
result += `<li class="todo-item ${data[index].isCompleted == true? 'completed' : ''}" data-index="${index}"> | |||
<div class="view"> | |||
<input class="toggle" type="checkbox" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
63번째줄에서 isCompleted 체크한 것처럼 토글에서도 적용하면 삭제시 체크박스 해제를 방지할 수 있을 것 같습니다. 🐸
<input class="toggle" type="checkbox" ${data[index].isCompleted ? 'checked' : ''} />
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
악 감사합니다 ㅠㅠㅠㅠ 이걸 몰랐다니!! 바로 적용하겠씁니다 🥳
1주차 - TodoList CRUD
🎯 요구사항
🎯🎯 심화 요구사항
✨ 그냥 해보고싶어서 해본것
🐞버그
느낀점
더 효과적으로 참고하기 위해 돌려보면서 동작을 확인하는 방식으로 해보려 합니다!