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:

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

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

Browser hangs tightly.

Here's the working example:
June 10th 19 at 16:58
1 answer
June 10th 19 at 17:00
The horror. Don't need any directives for the tree. Recursively attach the template and all. Fully customizable via HTML + CSS. 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