We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b85e1c1 commit ddeb19bCopy full SHA for ddeb19b
README.md
@@ -28,7 +28,7 @@ Vue.component('pagination', require('laravel-vue-pagination'));
28
Use the component:
29
30
```html
31
-<pagination ref="paginator" :data="laravelData"></pagination>
+<pagination :data="laravelData" v-on:pagination-change-page="getResults"></pagination>
32
```
33
34
```javascript
@@ -42,9 +42,6 @@ Vue.component('example-component', {
42
},
43
44
created() {
45
- // Set up the pagination event listener
46
- this.$refs.paginator.$on('pagination-change-page', this.getResults);
47
-
48
// Fetch initial results
49
this.getResults();
50
0 commit comments