AngularJS ng-repeat array of arrays

前端 未结 2 981
星月不相逢
星月不相逢 2020-12-18 21:31

Is it possible to use ng-repeat with an array of arrays?

Here\'s my view:

{{item}}<

2条回答
  •  情深已故
    2020-12-18 22:04

    Your problem lies with this line:

  • {{i}}
  • item.items is undefined because item is an array.

    You should enumerate item instead of item.items:

    
      
    • {{i}}

    Here's a working Plunk.

提交回复
热议问题