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.
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