chrislam's avatar

install vuejs-uib-pagination plugin for Vue.js on laravel 5.4

I'm trying to install vuejs-uib-pagination on laravel 5.4... (https://github.com/sant123/vuejs-uib-pagination)

  1. npm install vuejs-uib-pagination
  2. Added the following codes to /resources/assets/js/app.js

var pagination = require("vuejs-uib-pagination"); Vue.use(pagination);

  1. npm run dev
  2. Added HTML and scripts
var app = new Vue({ el: "#app", data: { pagination: { } } });

Error: On browser, I got an error: [Vue warn]: Unknown custom element: <uib-pagination> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

Question: Some codes located at /src/types/index.ts like Vue.component("uib-pagination",...

I think I need to import these stuffs, but I'm not familiar with 'webpack' or 'mix'. Where will be the proper way to import the codes?

0 likes
1 reply
chrislam's avatar

It has been solved after clear browsing data.

Please or to participate in this conversation.