Contacts
@if (contactsCount > 0) { {{ contactsCount }} } {{ contactsCount | i18nPlural : { '=0': 'No contacts', '=1': 'contact', other: 'contacts', } }}
@if (contacts$ | async; as contacts) { @if (contacts.length) { @for ( contact of contacts; track trackByFn(i, contact); let i = $index ) { @if ( i === 0 || contact.name.charAt(0) !== contacts[i - 1].name.charAt(0) ) {
{{ contact.name.charAt(0) }}
}
@if (contact.avatar) { } @if (!contact.avatar) {
{{ contact.name.charAt(0) }}
}
{{ contact.name }}
{{ contact.title }}
} } @else {
There are no contacts!
} }