Variable text in links with knockout
- by Gepser
I'm generating a list of links and they have not the same text but I don't know how to put a text with knockout.
This is what I have:
<a data-bind="attr: { href: 'Controller/Method/' + Id, 'Title': CurrentTask }">
<!-- I need the name of the CurrentTask here-->
CurrentTask
</a>
So, the text I want to show appears…