vue - 무한 스크롤
프로젝트를 진행하며 무한 스크롤 기능이 필요하여 구현하였다. 다음에도 참고하고자 이곳에 기술한다. template script data: () => ({ // 10개의 리스트를 보여주기 위한 더미 데이터 pushList: [1,2,3,4,5,6,7,8,9,10] }), methods: { handleNotificationListScroll(e) { const { scrollHeight, scrollTop, clientHeight } = e.target; const isAtTheBottom = scrollHeight === scrollTop + clientHeight; // 일정 이상 밑으로 내려오면 함수 실행 / 반복된 호출을 막기위해 1초마다 스크롤 감지 후 실행 if(isAtTheBottom) { s..