Does it have a built in pipe to do so?
data = [
{id: 5, name: 'Roger'},
{id: 5, name: 'Mark'},
{id: 5, name: 'Zach'},
{id: 5, name: 'Mark'},
{id: 5, name: 'Roger'},
];
<ul>
<li *ngFor="let datum of data">
{{datum.name}}
</li>
</ul>
Output
- Roger
- Mark
- Zach
- Mark
- Roger
Desired Output
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…