I have been working on a project with ionic recently and have encountered some questions. If I want to do a similar fuzzy query function on the mobile terminal, is it better to let Angular use filters to complete it or let the background write interface calls? The function is a list composed of a large amount of data. There is an input box on it. Enter any string to filter out matching data information
If the amount of data is not large, such as country list, city list and other fuzzy queries in cascading menus, Angular can be used to do it. After the data is obtained from the background, it is all saved in memory or local storage, and Angular can filter it by itself.
If the amount of data is large, such as bank statements, the list displayed on the front end itself uses background paging technology, then the only way is to return the fuzzy query results to the front end after back-end query.
So which method to use depends on the business scenario.
You must first consider how large the amount of data you are querying is, whether the client can save it completely, and whether the client can accept the time-consuming downloading of the entire data.
After all, it is better to do filtering on the client side than to request the server every time.
Dynamic data backend Static data frontend