diff --git a/src/app/app.component.ts b/src/app/app.component.ts index bb0b73f..faac77c 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -111,6 +111,9 @@ export class AppComponent { enlargedWidth: i.width, enlargedHeight: i.height, title: i.description ? i.description : i.user.name, + caption: i.description + ? `A photo showing: ${i.description}` + : `A photo by ${i.user.name}`, }; }