http://stackoverflow.com/questions/36713060/nested-ng-repeat-with-dynamic-input

http://stackoverflow.com/questions/36713060/nested-ng-repeat-with-dynamic-input

by roscorcoran

HTML

<div ng-app="App" ng-controller="Ctrl1">
  <div ng-repeat="alert in alerts">
    <a ng-if="alert.Date">{{alert.Date}}</a>

    <p ng-repeat="val in alert.L.vals">
      <a ng-if="val && val.value">{{val.value}}</a>
    </p>
    
    <p ng-repeat="item in alert.List">
      <a ng-if="item && item.txt">{{item.txt}}</a>
    </p>
  </div>
</div>

JavaScript

angular.module('App', [
  'App.controllers'
]);

/* Controllers */
angular.module('App.controllers', [])
  .controller('Ctrl1', ['$scope', function($scope) {
    $scope.alerts = [{
      Date: '10/11/12',
      L: {
        vals: [{
          value: 1
        }, {
          value: 2
        }]
      },
      List: [{
        txt: 'List txt'
      }]
    }];

  }]);