Commit 40f43312 authored by Regis's avatar Regis

strict props for easier re-use

parent 2dfb7e88
......@@ -12,10 +12,16 @@
const LAST = 'Last >>';
gl.VueGlPagination = Vue.extend({
props: [
'change',
'pageInfo',
],
props: {
change: {
type: Function,
required: true,
},
pageInfo: {
type: Object,
required: true,
},
},
methods: {
changePage(e) {
let pageNum = this.pageInfo.page;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment