- 👋 I’m Junior Back-end Developer Jangwook Ryu.
- 👀 I’m interested in
Java
,Kotlin
,Spring
,Architecture
andOOP
- 📫 Mail: [email protected]
- 🏄🏻♂️ Log: blog
rxjw95 / vue-todo Goto Github PK
View Code? Open in Web Editor NEWvue assignment
vue assignment
Java
, Kotlin
,Spring
, Architecture
and OOP
더블 클릭시 상태값을 변경해서 input 태그로 렌더링했는데, 이렇게 되면 각 Item들이 중복해서 input 으로 렌더링된다.
그렇기 때문에 더블 클릭시 상위 컴포넌트로 emit하는 것이 좋을 것 같다.
#1 과 마찬가지로 수정 취소하는 이벤트도 TodoItem 에서 처리했지만, 상위 컴포넌트로 emit해서 재렌더링이 맞다고 생각한다.
변경 상태값를 원래 TodoItem에서 사용했지만, 더블 클릭 이벤트로 인해서 props로 사용할 것이며 read-only 상태가 된다.
그렇기 때문에 변경 상태값을 다시 초기화하기 위해선 emit으로 상위 컴포넌트에서 취소 이벤트를 처리하고 재렌더링해야 한다.
순차적으로 매번 요청하는 것보다는 새로운 api를 만드는 것이 효율적이라고 생각된다.
Todo Array 하나를 두고 데이터를 수정하기 때문에 filter를 사용하면 원본을 유지할 수 없다.
서버와 연결하기 전 임시 배열을 만들어 기능을 유지하도록 만들어야 한다.
TodoItem 수정 확정 시 emit으로 넘어온 이벤트로 tasks 배열 수정 로직 개발
create todo 추가 시(Press enter) 빈 공백이 아니어도 alert 발생하는 문제
active 상태에서 done Check button을 눌렀을 때 반응적으로 리스트에서 사라지지 않는 이슈가 발생
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.