subicura / bb-ng Goto Github PK
View Code? Open in Web Editor NEWDEV_STUDY BudgetBook AngularJS
DEV_STUDY BudgetBook AngularJS
메시지가 undefiend 처럼 나오지 않게
https://github.com/subicura/bb-ng/blob/master/app/scripts/controllers/app/group/timeline/comment.js#L51 에서 idx는 view(https://github.com/subicura/bb-ng/blob/master/app/views/app/group/timeline/comment.html#L15) 의 ngRepeat에서 제공하는 $index(iterator offset of the repeated element)이 정확히 넘어오는데,
$scope.bookkeeping_comments.comments 배열이 view에서 보이는것과 똑같이 정렬된 상태가 아니라서 다른 객체가 삭제되는 버그가 있습니다.
n-1의 페이지를 모두 삭제했을때 n페이지를 불러오지 않는 현상
댓글이
1, 2, 3, 4, 5, 6이 있을때
최초에 페이지에 접속하면
1, 2, 3만 보이게 됩니다.(더보기 누르기 전)
그리고 더보기가 가리키는 next는 2를 가리키게 되죠.
이 상태에서 1, 2, 3을 모두 지우고
더보기를 누르면 4, 5, 6은 출력되지 않습니다.
그 이유는 더보기 할때마다 요청을 하는데,
1, 2, 3, 4, 5, 6이 있을때는 두개의 페이지였기때문에
최초에 페이지 로드시 더보기버튼의 next는 2로 세팅이 되었습니다.
하지만 1, 2, 3을 모두 지웠을땐 지움과 동시에 서버에도 반영되므로
서버엔 1페이지만 존재합니다.
하지만 더보기를 클릭했을때 2페이지를 요청하므로 아무런 데이터도 오지 않는 버그가 있네요...
오늘 내로 수정하겠습니다...
풀리퀘 날린지 몇초 됐다고 ㅡㅡ;;
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.