AngularJS Directive create the tree. How to pass an object in ng-repeat?

Good day, I decided to write a Directive to display a tree but the experience in writing directives is not a lot, so it was decided to apply to the search.
The solution was found immediately: https://habrahabr.ru/sandbox/75566/

If to write so:
html:
ng-repeat="item in items"
js:
$scope.items = [/*items*/]
then it works,

and if so:
html:
ng-repeat="item in someObj.items"
js:
$scope.someObj = {
items: [/*objects*/]
};

Browser hangs tightly.

Here's the working example:
https://jsfiddle.net/xdevand/zvm7zwu1/
June 10th 19 at 16:58
1 answer
June 10th 19 at 17:00
Solution
The horror. Don't need any directives for the tree. Recursively attach the template and all. Fully customizable via HTML + CSS.

https://jsfiddle.net/mhfg8pc7/
https://jsfiddle.net/mhfg8pc7/1/ and someObj.items not hangs
Indeed, horror.
Thank you so much, never needed so never had this problem. - sierra72 commented on June 10th 19 at 17:03

Find more questions by tags AngularJavaScript