Skip to content

Commit ddeb19b

Browse files
committed
Update README.md
1 parent b85e1c1 commit ddeb19b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Vue.component('pagination', require('laravel-vue-pagination'));
2828
Use the component:
2929

3030
```html
31-
<pagination ref="paginator" :data="laravelData"></pagination>
31+
<pagination :data="laravelData" v-on:pagination-change-page="getResults"></pagination>
3232
```
3333

3434
```javascript
@@ -42,9 +42,6 @@ Vue.component('example-component', {
4242
},
4343

4444
created() {
45-
// Set up the pagination event listener
46-
this.$refs.paginator.$on('pagination-change-page', this.getResults);
47-
4845
// Fetch initial results
4946
this.getResults();
5047
},

0 commit comments

Comments
 (0)