<ul class="nav menu">
    <li ng-repeat="item in tree" ng-class="menu-item"><a href="{{base}}{{item.link.href}}">{{item.link.title}}</a>'
        <span ng-if="item.children.length > 0 && levels != 1 "><ul><li ng-repeat="item in item.children" ng-class="menu-item"><a ng-link="item.link.href">{{item.link.title}}</a></li></ul></span>
    </li>
</ul>