Skip to content

Instantly share code, notes, and snippets.

@kingpabel
Last active August 29, 2018 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kingpabel/38e03d372f88dccbfdb1e5981b3d44c5 to your computer and use it in GitHub Desktop.
Save kingpabel/38e03d372f88dccbfdb1e5981b3d44c5 to your computer and use it in GitHub Desktop.
import VuePagination from 'VuePagination-component.js';
new Vue ({
el : "#userTable",
data : {
users : {
current_page : 1
},
},
components: {
VuePagination
},
methods : {
allUser() {
axios.get('user/json', {
params: {
page: this.parcels.current_page
}
}).
then(response => this.users = response.data);
}
},
created() {
this.allUser();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment