Looking to filter a simple list I have.
For example:
<div *ngFor="let x of data"></div>
Example data:
data = [
{
"img" : "assets/img/photos/05.jpg",
"title" : "Denim Jeans",
"overview": "today"
},
{
"img" : "assets/img/photos/05.jpg",
"title" : "Denim jacket",
"overview": "month"
},
];
I only want to display items with the overview
field set to month
.
The expected implementation would be something like this:
*ngFor = "let x of data == overview"