AngularJS smart-table strange behavior with nested objects and st-search

后端 未结 2 1279
时光说笑
时光说笑 2021-01-13 08:39

I\'m trying to implement the Smart Table module in my AngularJS app. I\'d prefer this over some others mainly because the others seemed require a lot of boilerplate code in

2条回答
  •  Happy的楠姐
    2021-01-13 09:24

    You need to use a copy of your collection, so instead of doing the direct assignment $scope.displayedProducts = $scope.products; you should do $scope.displayedProducts= $scope.displayedProducts.concat($scope.products);

提交回复
热议问题