import {Component, Input, OnInit} from '@angular/core'; import {environment} from "../../../environments/environment"; import {KanbanEntry} from "../shared/kanban-entry.model"; @Component({ selector: 'app-kanban-entry-item', templateUrl: './kanban-entry-item.component.html', styleUrls: ['./kanban-entry-item.component.css'] }) export class KanbanEntryItemComponent implements OnInit { @Input() kanbanEntries: Array; constructor() {} ngOnInit() {} public avatarUrl(avatarPath: string): string { try { return environment.apiUri + avatarPath; } catch (e) { return ""; } } }