50
rated 0 times
[
52]
[
2]
/ answers: 1 / hits: 58826
/ 8 Years ago, fri, september 23, 2016, 12:00:00
I adding text into html element from ts
like this
this.legend.append('text')
.attr('x', legendRectSize + legendSpacing)
.attr('y', legendRectSize - legendSpacing)
.text(function(d) { return d; });
this will create html like
<text>Data will come here</text>
I want to use pipe to convert this data into some form
how can I do that from ts code ?
and as I am creating this HTML dynamically I cannot use pipe like this
<text>{{Data will come here | pipename}} </text>
I am looking for somethig like
this.legend.append('text')
.attr('x', legendRectSize + legendSpacing)
.attr('y', legendRectSize - legendSpacing)
.text(function(d) { return d; }).applypipe('pipename');
More From » angular