【发布时间】:2016-04-29 13:30:01
【问题描述】:
当我使用 concat 方法时,我的 $scope 没有更新
var anotherList = ["2", "3", "4"];
$scope.list = [];
$scope.list.concat(anotherList);
但是在循环中使用数组推送方法,我的 $scope 得到了更新
【问题讨论】:
标签: arrays angularjs angularjs-scope angularjs-ng-repeat