Skip to content

Commit b85e1c1

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A Vue.js pagination component for Laravel paginators that works with Bootstrap.
1111

1212
## Install
1313

14-
```
14+
```bash
1515
npm install laravel-vue-pagination
1616
// or
1717
yarn add laravel-vue-pagination
@@ -21,17 +21,17 @@ yarn add laravel-vue-pagination
2121

2222
Register the component:
2323

24-
```
24+
```javascript
2525
Vue.component('pagination', require('laravel-vue-pagination'));
2626
```
2727

2828
Use the component:
2929

30-
```
30+
```html
3131
<pagination ref="paginator" :data="laravelData"></pagination>
3232
```
3333

34-
```
34+
```javascript
3535
Vue.component('example-component', {
3636

3737
data() {
@@ -77,7 +77,7 @@ Vue.component('example-component', {
7777
| --- | --- | --- |
7878
| `data` | Object | An object containing the structure of a [Laravel paginator](https://laravel.com/docs/5.3/pagination) response. See below for default value. |
7979

80-
```
80+
```javascript
8181
{
8282
current_page: 1,
8383
data: [],

0 commit comments

Comments
 (0)