Is there a way to show the content of the "tags" object using angular?
I attempted to achieve it using {{gallery.tags.tag}}
import {IPhoto} from "./iphoto";
export interface IGallery {
galleryId: string;
title: string;
dateCreated: string;
thumbUrl: string;
description: string;
tags?: any;
photos: IPhoto[];
}
export const Galleries = [{
'galleryId': '1',
'title': 'China',
'dateCreated': '2017-11-15T00:00:00+00:00',
'thumbUrl': './assets/img/gallery/D1.jpg',
'description': 'Vacation in China',
'tags': [{
'tag': 'Indonesia',
}, {
'tag': 'Water'
}],
gallery.component.html
<h2>Gallery: {{gallery.title}}
<p><small>{{gallery.dateCreated | polishDate | uppercase}}</small></p>
<br><small>galleryId: {{gallery.galleryId}}</small>
<p>description: {{gallery.description}}</p>
<img src="{{gallery.thumbUrl}}">