<app-card></app-card>
是我app.component.html和显示卡组件的上方变化MD-卡冠军时,卡都有自己的分量
<md-card class="card" style="box-shadow: none;">
<md-card-header>
<md-card-title style="font-size:x-large;">
</md-card-title>
</md-card-header>
<md-card-content>
<p class="flow-text">
{{placeholder}} </p>
</md-card-content>
<md-card-actions>
<button md-button>LIKE</button>
<button md-button>SHARE</button>
</md-card-actions>
是我的卡
我想改变卡标题(也最终内容),而不必在我app.component.html卡的HTML代码的混乱。 我似乎无法弄清楚我有一个以上的字符串时,如何传递一个字符串从我card.component.ts到我的卡。
- 卡应该有标题{{TITLE1}} 2.nd卡应该有标题{{标题2}}
如何使用ngFor重复的显示的计卡的数量数组中的字符串,并因此将索引所在的字符串传递到卡片标题中?
所以基本上,你想有一个不同的标题和内容重复相同的卡? –