ng-repeat's element not updated on array modification

前端 未结 3 1590
既然无缘
既然无缘 2020-12-31 15:12

When I trying to update my array on ng-click in order to update my ng-repeat\'s directive items:

  • 3条回答
    •  伪装坚强ぢ
      2020-12-31 15:16

      Have you tried changing the selectL2Menu function to:

      $scope.selectL2menu = function (itemL1name){
          $scope.mainMenuL2CurArr = $scope.mainMenuL2Obj[itemL1name];
      }
      

    提交回复
    热议问题