there is an array like this
[
{
id:1,
info: {name:"abc"}
show: true
},
{
id:2,
info: {name:"abc"}
show: true
},
{
id:3,
info: {name:"qq"}
show: true
}
]
<!-- HTML -->
<ng-container *ngFor="let tests of test;>
{{oddsTable.id}}
{{oddsTable.info.name}}
</ng-container>
then I hope that when I ngFor, the same info.name will only be displayed once. Do not repeat it. How can this be achieved?
finally shows, as follows:
1 abc
2
3 qq