Being new to Vue, I figured a good way to get acquainted with the library was by doing something I figure I'll end up doing if I use it: filtering and sorting a dataset. Normally, I figure the dataset would be loaded in via AJAX. There are quite a bit of items in the JS (100), but I tried to keep that part to the bottom of the file and include lots of comments. I couldn't find a great example of this with a quick Google search that used the newer version of Vue, so hopefully this'll help others out there!
Also uses the Fuse JS library for fuzzy searching.
ID | First | Last | Gender | IP | |
---|---|---|---|---|---|
{{ item.id }} | {{ item.first_name }} | {{ item.last_name }} | {{ item.email }} | {{ item.gender }} | {{ item.ip_address }} |