datas structure is similar to
[{"id":1,"name":"test"},{"id":13,"name":"test2"}]
Accurate filtering by id,
The following writing method will filter out all the data containing 1 in the id (for example, the above two will be filtered out), can precise filtering be done?
datas|filter:{id : 1}
The official has its own filtering specified attributes, which are included in the official examples
https://docs.angularjs.org/ap...
I agree with the above, just use the official ones. For example, the official filters cannot meet the requirements, such as | date: There is no filtering of dates into Chinese, so just use JS to write a .filter filter yourself