lokyoung / vuejs-paginate

A Vue.js(v2.x+) component for creating pagination.
MIT License
779 stars 171 forks source link

Registering component #94

Closed kprkr closed 5 years ago

kprkr commented 5 years ago

Hi, new to Vue and not quite sure on how to get this working.

I use ES6 and have gone ahead and imported into a "pagination.vue" file by using the -

import Paginate from 'vuejs-paginate'

but not sure how I would go about adding in the "Vue.component('paginate', Paginate)" (as in, how do i enter it into my code? I am working on a basic, existing page with template, script, style. Just not sure if it goes into a method, or data or somewhere else completely?

Thanks!

lokyoung commented 5 years ago

@shiibbyy You can check the demo in this repo. Thanks! https://github.com/lokyoung/vuejs-paginate/blob/master/demo/demo.js