How to use the vue-pagination-2.PaginationEvent.$on function in vue-pagination-2

To help you get started, we’ve selected a few vue-pagination-2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Swastika-IO / sio.core / src / Swastika.UI.Spa / ClientApp / components / blog / paging-container / paging-container.ts View on Github external
mounted() {
        this.loadPage(0);
        var me = this;
        PaginationEvent.$on('vue-pagination::models', function (page) {
            // display the relevant records using the page param
            me.loadPage(page - 1);
        });

    }
}

vue-pagination-2

Vue.js 2 pagination component

MIT
Latest version published 7 months ago

Package Health Score

50 / 100
Full package analysis