Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<infinite-scroll src="http://localhost:8000/users?page=" pagination-box=".paginated-items"></infinite-scroll>
// restante do arquivo
props: {
paginationBox: {
required: true
},
src: {
default: ''
},
margin: {
default: 0
}
},
// restante do arquivo
getMore() {
this.currentPage++;
this.onLoad = true;
this.load(this.src + '?page=' + this.currentPage, this.paginationBox).then((data) => {
const item = document.querySelector(this.paginationBox);
item.innerHTML += data;
this.onLoad = false;
});
},
// restante do arquivo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.