Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted() {
this.pagination = Pagination.create(this.$el);
this.pagination.element.addEventListener('pageChange', (e) => {
if (e.detail.direction === 'forward') {
this.value > 1 ? this.$emit('input', this.value - 1) : '';
} else {
this.$emit('input', this.value + 1);
}
});
},
methods: {