As shown in Figure 1, there are many, many data in a table,
Among them, the status is the following four:
1) 'issued': 'Published ',
2)'deleted': 'Deleted',
3)'reported': 'Reported',
4) 'masked': 'Blocked'
Tried<tr ng-repeat="post in filterPostList | filter:'status':'issued'||'masked'">
This way only the issued data can be displayed.
Now I want to display the data of issued and masked, what should I do?
Write a custom filter
HTML:
No need to write filters
Just write a function
Suddenly realized that I answered a question with a long history. . . .
Another way of thinking. No need to write filters or functions.