AngularJS ng-repeat tableau de tableaux

Est-il possible d'utiliser ng-repeat avec un tableau de tableaux?

Voici mon avis:

<div ng-repeat="item in items">
  <p>{{item}}</p>
  <ul>
    <li ng-repeat="i in item.items">{{i}}</li>
  </ul>
</div>

Voici mon controller:

  var app = angular.module('plunker', []);
  app.controller('MainCtrl', function($scope) {
    $scope.items = [
      [1, 2, 3],
      [4, 5, 6],
      [7, 8, 9]
    ]
  });

Voici mon Plunker:

http://plnkr.co/edit/b6vRVpUKkhPANNVXkkJL?p=preview

Comment puis-je sortie:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

OriginalL'auteur Ryan | 2015-07-31