【发布时间】:2020-09-28 06:58:07
【问题描述】:
我想知道如何在数组元素之间放置逗号,而行尾没有逗号。有类似的问题,但我的有点不同,因为我使用 *ngFor 指令来显示文本:
<span *ngFor="let style of styles">
{{style}} //If I put a comma after the text, there would be a comma at the end of the line after the
//last element was displayed
<span>
有什么方法可以解决我的问题?
【问题讨论】:
标签: javascript html angular typescript angular-directive