My list looks like this:
let chats: Chats[] = [
{id: 1, name: "James Anderson",read=false},
{id: 2, name: "James Anderson",read=true},
{id: 3, name: "James Anderson",read=true},
{id: 4, name: "James Anderson",read=true},
]
On my cshtml page, I have been using {{chats.length}} to get the total count. However, I now need to retrieve the count where the read value is set as false.
Therefore, I expect the count to be 1 instead of 4.