搜尋

首頁  >  問答  >  主體

angular.js - Angular ng-repeat子級迴圈

我想循環顯示評論結果,但一直無法顯示。

  <ul>
  <li ng-repeat="dish in menuCtrl.dishes.comments ">
   <li ng-repeat="comments in dish.comments ">
   <p> {{comments.comment}}</p>
      </li>     
  </li>
</ul>

程式碼如下:

js: