@if (hasError) {
Error: Couldn't fetch articles!
} @else {
@if (articles$ | async; as articles) {
@if (articles.length === 0) {
{{ 'ARTICLES_NONE' | translate }}
} @else {
@for (article of articles.slice(); track article) {
{{ (article.title | slice:0:45) + (article.title.length > 40 ? '...' : '')}}
{{ truncateContent(article.content, 80) }}
By {{ article.authorName }} | {{ article.createdAt | date: 'dd/MM/yy, HH:mm' }}
}
}
}
}