ng-include with varables

by Osama Qassar

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<div ng-app="">
<div ng-repeat="name in ['Osama']" ng-include="'your_template.html'"></div>
<div ng-repeat="name in ['Jhoem']" ng-include="'your_template.html'"></div>


  <script type="text/ng-template" id="your_template.html">
          {{name}}
  </script>
</div>