angular.js - Is angular fuzzy query done on the front end or on the backend?
某草草
某草草 2017-05-15 16:59:35
0
3
818

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 ​

某草草
某草草

reply all(3)
漂亮男人

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template