I have the following code ...
<div data-bind="foreach:profiles">
<div class="form-group">
<div class="col-xs-3 col-md-1 no-padding-left">
<img class="img-circle text-center" src="\Content\images\fake_profile_pics\md.png" alt=".." style="opacity: 1.9" />
<h5 class="text-center"><span data-bind="text:Points"></span><span> points</span></h5>
</div>
<div class="col-xs-9 col-md-3">
<a href="#" class="profile_popover people-h2" data-bind="text:DisplayName"></a>
<span class="display-block" data-bind="text:Division"></span>
<span class="display-block"><span data-bind="text:NominationsWritten"></span><span> Nominations Written</span></span>
</div>
</div>
</div>
I am trying to create a series of objects, 3 objects wide, and they all start with the height of the lowest element of the line above it. The problem with this code is that the knockout cannot find the end tag for the first div and breaks without errors. If you put the end tag in the first ko if statement, everything works fine.
Can this be used using the knockout comment method, or is there a more acceptable way to solve this knockout problem?
source
share