<div id="myScrollspy">
    <ul class="nav nav-pills nav-stacked" id="topMenu">
        <!--ko foreach:$root.menuItems-->
        <li data-bind="attr:{'id':($index()+1)},css:$index() == 0 ? 'active' : ''">
            <a data-bind="attr:{href:$data.target }"><span data-bind="text:$data.displayName"></span></a>
        </li>
        <!--/ko-->
    </ul>
</div>
