strict props for easier re-use

This commit is contained in:
Regis 2016-12-15 10:28:17 -07:00
parent 2dfb7e8826
commit 40f433125e
1 changed files with 10 additions and 4 deletions

View File

@ -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;