A
A
Alexander2017-03-28 14:11:29
JavaScript
Alexander, 2017-03-28 14:11:29

Filtering data in spa applications?

Hello! I wanted to ask the community: what is the best way to filter data? I am doing my thesis and faced the task of filtering data.
892d4990068d4239b39ac7520ed30776.PNG
For example, now if I click on the button with the choice of gender, how to filter the data better?
Send a request to the server again so that it returns new data or filter on the client, for example, through the "filter" function?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2017-03-28
@alex_p95

Data dependent.
If you can download all the data (that is, there are not very many of them) - do filtering on the client
. If the data is partially loaded, then yes, when changing the filter, you must execute the request.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question