I've been developing a small frontend application that showcases a list of users in an HTML5 table using Bootstrap 3, Axios, and Vue.js 2. The user data is fetched from a JSON API and displayed in a paginated manner.
While implementing a search/filter functionality to the application, I encountered an issue with pagination not working properly for both the entire dataset and the search results. Here's a snippet of the code:
// Your Vue.js script goes here
// Your custom CSS styles go here
// Your HTML template goes here
After adding the search input field and updating the v-for
loop to iterate over either displayedUsers
or searchResults
, I implemented the filtering logic but faced challenges in integrating pagination with search functionality. The resulting application can be accessed HERE.
If you have any advice on how to resolve this issue and make the pagination work seamlessly with search functionality, I'd appreciate your input.