I am trying to make a demo app with tweet-like list items and I have run into a problem. I have a h4 element to which I want to bind text and also have some span elements inside of it, but only the bound text is shown and the other elements inside the h4 element are overrided. This is the problematic part I want to make:
This is what I get the way I'm trying to implement it with knockout:
The shole item should look like this:
The specific part of template where I'm trying to implement this kind of heading:
<h4 class="media-heading" data-bind="text: name"><a><span>@</span><span data-bind="text: name"></span></a><span class="timeAgo"> 4 minutes ago</span></h4>
Fiddle with my application: fiddle
Since I'm doing it wrong in the template my question is - how would I implement the heading with account name and time ago part by using knockout?