{"size": 272, "ext": "js", "max_stars_repo_path": "app/modules/tree/tree.js", "max_stars_repo_name": "zhy19950705/3", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/modules/tree/tree.js", "max_issues_repo_name": "zhy19950705/3", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/modules/tree/tree.js", "max_forks_repo_name": "zhy19950705/3", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.9230769231, "max_line_length": 52, "alphanum_fraction": 0.6433823529}
//获取节点id
$scope.selectNode=function (node,selected,event) {
    if(selected.node.type===3){
        initData(selected.node.id);
    }
}

//获取该id的数据
var initData=function (id) {
    service.getDetailById(id).then(function (data) {
        $scope.bulidingData=data;
    })
}