JSFiddle - React, Tailwind, and code Playground

by imagio

HTML

<script type="text/ng-template" id="template.html">
    Value is {{child.value}}
    <div ng-repeat="child in child.children">
        <div ng-include="'template.html'">
        </div>
    </div>
</script>

<div ng-app ng-controller="Ctrl">    
    <div ng-include="'template.html'"></div>
</div>

JavaScript

function Ctrl($scope) {
  $scope.name = "angularjs"
  $scope.child = {
      value: 1,
      children: [{     
          value: 2,
          children: [{     
              value: 3,
              children: [{     
                  value: 4,
                  children: [{     
                      value: 5,
                      children: [{     
                          value: 6,
                          children: [{     
                              value: 7,
                              children: [{     
                                  value: 8,
                                  children: [{     
                                      value: 9,
                                      children: [{     
                                          value: 10
                                      }]
                                  }]
                              }]
                          }]
                      }]
                  }]
              }]
          }]
      }]
  };
}