{"size": 629, "ext": "js", "max_stars_repo_path": "layout-src/assets/js/directives/filter.js", "max_stars_repo_name": "ajandera/ugkagis", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "layout-src/assets/js/directives/filter.js", "max_issues_repo_name": "ajandera/ugkagis", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "layout-src/assets/js/directives/filter.js", "max_forks_repo_name": "ajandera/ugkagis", "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": 23.2962962963, "max_line_length": 83, "alphanum_fraction": 0.559618442}
/*
* AngularJS directive for TreeView
* @author Aleš Jandera <ajandera@ajandera.cz>
*/
app.directive('tree-view', ['$timeout','$interval', function($timeout, Sinterval) {
    var template = 'assets/views/treeView.tpl.html';
    var data = {
        restrict: 'E',
        replace: true,
        scope: {
            model: '@',
            output: '@'
        }
    };

    data.link = function (scope, elem, attrs, ctrl) {
        scope.model = JSON.parse(attrs.model);
        scope.output = parseInt(attrs.output);
    };

    data.templateUrl = function (elem, attrs) {
        return template;
    };

    return data;
}]);
