jqx tree manual UL and ng-repeat

Creating <ul> list with ng-repeat

HTML

<link rel="stylesheet" href="http://www.jqwidgets.com/jquery-widgets-demo/jqwidgets/styles/jqx.base.css">
<script src="http://www.jqwidgets.com/jquery-widgets-demo/scripts/angular.min.js"></script>
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<div ng-app="demoApp"  ng-controller="demoController">
         <jqx-tree  jqx-settings="treeRoleSettings" jqx-on-initialized="onInitialized()"></jqx-tree>
   <a ng-href='#here' ng-click='go()' >click me</a>
</div>

JavaScript

//ng-model="gauge.currentValue"
 var demoApp = angular.module("demoApp", ["jqwidgets"]);
        demoApp.controller("demoController", function ($scope) { 
 
            var data = [
                {
                    "text": "Role Management",
                    "id": "1",
                    "parentid": "-1"
                }, {
                    "id": "2",
                    "parentid": "1",
                    "text": "Manage"
                }, {
                    "id": "3",
                    "parentid": "1",
                    "text": "View"
                }, {
                    "id": "4",
                    "parentid": "1",
                    "text": "Approve"
                }
                , {
                    "id": "6",
                    "text": "User Management",
                    "parentid": "-1"
                }, {
                    "id": "7",
                    "parentid": "6",
                    "text": "Manage"
                }, {
                    "id": "8",
                    "text": "View",
                    "parentid": "6"
                }, {
                    "id": "10",
                    "text": "Approve",
                    "parentid": "6"
                }
                , {
                    "id": "12",
                    "text": "Report Management",
                    "parentid": "-1"
                }, {
                    "id": "13",
                    "text": "Manage",
                    "parentid": "12"
                }, {
                    "id": "15",
                    "text": "View",
                    "parentid": "12"
                }, {
                    "id": "16",
                    "text": "Approve",
                    "parentid": "12"
                }
    ]

        var builddata = function () {
            var source = [];
            var items = [];
            // build hierarchical source.
            for (i = 0; i < data.length; i++) {
                item =...