<div ng-click="item.subNodes.length === 0 && selectNode(item);">{{item.friendlyName}}</div>
<div>
    <a class="list-group-item"
       ng-class="{'active' : (item.settings === currentSettings && item.subNodes.length === 0)}"
       href=""
       ng-repeat="item in item.subNodes"
       wizdom-include="'/Base/Templates/treenode.html'">
    </a>
</div>
