2 years ago

filter search requests

Posted 2 years ago by mohammad6006

I have a page to show resluts of search and some options to filter search results

I decide to use vuejs to show products and filters but I need to have url options for filters

for exaple if user filter results by date so this filter change url like this : url#sort=date

first question: Do I need to use Vue-router? or I can set filters to url without using vue-router?

2: which way is better? getting search result from api with axios and set filter client side (I mean witouht sending request)


set filters via sending new request to api to get new results


Please sign in or create an account to participate in this conversation.