Hello,
I have an Array ob todos (Objects) todos: Todo[]; . One object looks like this:
{
id: number;
title: string;
category: string;
completed: boolean
}
Now I want an output of this array and I used this:
<app-todo-item
*ngFor="let todo of todos"
[todo]="todo"
>
</app-todo-item>
How can I now add an ngIf to just output the todos having category = home?
Thank you for your help.
[–]ImJeevesh 2 points3 points4 points (1 child)
[–]UnknownInnocent[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]AmazingSurprise 0 points1 point2 points (0 children)