标签: javascript angularjs
我有一个Angular应用程序,显示不同组中的玩家列表。 在每个集合中,我想每次随机显示列表。 我正在使用ng-repeat,我如何将它们随机化?
控制器: $scope.players = ["p1", "p2"];
$scope.players = ["p1", "p2"];
页: <dig ng-repeat="player in players">{{player}}<\div>
<dig ng-repeat="player in players">{{player}}<\div>