I have a list of items that contains country and city names like following and I want to show the serial number for a specific type of item in list.
items = [
{'type': 'Country', 'title': 'Armenia', },
{'type': 'City', 'title': 'Kapan' },
{'type': 'City', 'title': 'Goris' },
{'type': 'City', 'title': 'Hats’avan' },
{'type': 'Country', 'title': 'Angola' },
{'type': 'City', 'title': 'Catabola' },
{'type': 'City', 'title': 'Camacupa' },
{'type': 'City', 'title': 'Caluquembe' },
{'type': 'Country', 'title': 'Argentina' },
{'type': 'City', 'title': 'San Vicente' },
{'type': 'City', 'title': 'Santa Elena' },
{'type': 'City', 'title': 'Retiro' },
];
<div>
<p *ngFor="let item of items; let i=index;">
<b>{{i+1}}.</b> {{item.title}} ({{item.type}})
</p>
</div>
it is showing like this:
1. Armenia (Country)
2. Kapan (City)
3. Goris (City)
4. Hats’avan (City)
5. Angola (Country)
6. Catabola (City)
7. Camacupa (City)
8. Caluquembe (City)
9. Argentina (Country)
10. San Vicente (City)
11. Santa Elena (City)
12. Retiro (City)
But I want to display like this: ( Serial number should display only with city name )
Armenia (Country)
1. Kapan (City)
2. Goris (City)
3. Hats’avan (City)
Angola (Country)
4. Catabola (City)
5. Camacupa (City)
6. Caluquembe (City)
Argentina (Country)
7. San Vicente (City)
8. Santa Elena (City)
9. Retiro (City)
Here is the stackblitz where I tried

