I'm generating two lists for a roster.
One list to show the current members of that year, and a second list if people have been excused in that year.
I noticed that I have two of the same for loops except one prints out all of the true Boolean values, and one the false. Is there a better way (or a method of some sort) to print out the people who are excused and not excused?
<h2>Roster {{year-1}}-{{year}}</h2>
<div *ngFor="let k of peoples">
<div *ngFor="let a of k.people; let j = index">
<div *ngIf="k.year == year && k.people[j].excused == false">
{{k.people[j].firstName}} {{k.people[j].lastName}}
</div>
</div>
</div>
<h2>Excused</h2>
<div *ngFor="let k of peoples">
<div *ngFor="let a of k.people; let j = index">
<div *ngIf="k.year == year && k.people[j].excused == true">
{{k.people[j].firstName}} {{k.people[j].lastName}}
</div>
</div>
</div>