我將文字轉換成HTML元素從TS如何使用管道在TS不是HTML
這樣
this.legend.append('text')
.attr('x', legendRectSize + legendSpacing)
.attr('y', legendRectSize - legendSpacing)
.text(function(d) { return d; });
這個喜歡
<text>Data will come here</text>
將創建HTML我想用管將這些數據轉換成某種形式 我該如何從ts代碼中做到這一點?
,併爲我創建這個HTML動態我不能用管這樣
<text>{{Data will come here | pipename}} </text>
我找somethig像
this.legend.append('text')
.attr('x', legendRectSize + legendSpacing)
.attr('y', legendRectSize - legendSpacing)
.text(function(d) { return d; }).applypipe('pipename');
請澄清你的問題。我很難理解你在尋找什麼。 – MorKadosh
現在好嗎? @MorKadosh –
請添加完整的打字稿代碼。 –