Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何使用angular显示“tags”对象的内容?_Javascript_Angular_Typescript - Fatal编程技术网

Javascript 如何使用angular显示“tags”对象的内容?

Javascript 如何使用angular显示“tags”对象的内容?,javascript,angular,typescript,Javascript,Angular,Typescript,如何使用angular显示标记对象的内容 我尝试使用{{gallery.tags.tag}}来完成它,但它不起作用 从./IPhoto导入{IPhoto}; 导出接口IGallery{ 条状:细绳; 标题:字符串; 创建日期:字符串; thumbUrl:字符串; 描述:字符串; 标签?:任何; 照片:IPhoto[]; } 你需要的是 {{gallery.dateCreated | polishDate |大写}} galleryId:{{gallery.galleryId} des:{{ga

如何使用angular显示标记对象的内容

我尝试使用{{gallery.tags.tag}}

来完成它,但它不起作用

从./IPhoto导入{IPhoto}; 导出接口IGallery{ 条状:细绳; 标题:字符串; 创建日期:字符串; thumbUrl:字符串; 描述:字符串; 标签?:任何; 照片:IPhoto[]; } 你需要的是

{{gallery.dateCreated | polishDate |大写}}

galleryId:{{gallery.galleryId} des:{{gallery.description}

{{tag.tag}
转到angular docs并查找NGFor我已经尝试了一些修改

{{gallery.tags.tag}}

,但它不起作用。你能告诉我一些事情吗?